-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[App Service]az appservice plan create: Add default OS as Linux
#33395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,7 +66,6 @@ | |
| retryable_method, | ||
| raise_missing_token_suggestion, | ||
| _get_location_from_resource_group, | ||
| _list_app, | ||
| is_functionapp, | ||
| is_linux_webapp, | ||
| _rename_server_farm_props, | ||
|
|
@@ -4921,6 +4920,13 @@ def create_app_service_plan(cmd, resource_group_name, name, is_linux, hyper_v, p | |
| is_managed_instance=None, mi_system_assigned=None, mi_user_assigned=None, | ||
| default_identity=None, rdp_enabled=None, vnet=None, subnet=None, | ||
| registry_adapters=None, install_scripts=None, storage_mounts=None): | ||
| if is_linux is None: | ||
| is_linux = not hyper_v | ||
| elif is_linux and hyper_v: | ||
| raise MutuallyExclusiveArgumentError('--hyper-v creates a Windows container plan and cannot be combined ' | ||
| 'with --is-linux. Use "--is-linux false --hyper-v" to create a ' | ||
| 'Windows container plan.') | ||
|
|
||
| if sku is None: | ||
| sku = 'P0V3' if is_linux else 'B1' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: because we are changing the default behavior, we might want to log warning about the OS and Sku of the app service plan before actually requesting and starting the app service plan creation (around line 5018? AppServicePlanCreateWithNoWait()) |
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be confusing. It says "--hyper-v ... cannot be combined with --is-linux" and then instructs the user to combine them ("--is-linux false --hyper-v").
Two options:
Non blocking, feel free to resolve!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing it Vandana. Making it to something like below (as suggested in point 1)
"--hyper-v creates a Windows container plan and cannot be combined with --is-linux true."