From 518fdfa76f318b67a8f77aae2863f33acc83c4e7 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Wed, 13 Jan 2021 15:07:59 -0800 Subject: [PATCH 1/7] Dont allow using space as delimiter --- src/azure-cli/azure/cli/command_modules/appservice/_params.py | 4 ++-- src/azure-cli/azure/cli/command_modules/appservice/custom.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/appservice/_params.py b/src/azure-cli/azure/cli/command_modules/appservice/_params.py index b2279200c68..502282e7b5f 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/_params.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/_params.py @@ -131,7 +131,7 @@ def load_arguments(self, _): c.argument('docker_registry_server_password', options_list=['--docker-registry-server-password', '-w'], help='The container registry server password. Required for private registries.') c.argument('multicontainer_config_type', options_list=['--multicontainer-config-type'], help="Linux only.", arg_type=get_enum_type(MULTI_CONTAINER_TYPES)) c.argument('multicontainer_config_file', options_list=['--multicontainer-config-file'], help="Linux only. Config file for multicontainer apps. (local or remote)") - c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \" \", \":\". " + c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \":\". " "Use `az webapp list-runtimes` for available list") # TODO ADD completer c.argument('plan', options_list=['--plan', '-p'], configured_default='appserviceplan', completer=get_resource_name_completion_list('Microsoft.Web/serverFarms'), @@ -609,7 +609,7 @@ def load_arguments(self, _): local_context_attribute=LocalContextAttribute(name='plan_name', actions=[LocalContextAction.GET])) c.argument('sku', arg_type=sku_arg_type) c.argument('os_type', options_list=['--os-type'], arg_type=get_enum_type(OS_TYPES), help="Set the OS type for the app to be created.") - c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \" \", \":\". " + c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \":\". " "Use `az webapp list-runtimes` for available list.") c.argument('dryrun', help="show summary of the create and deploy operation instead of executing it", default=False, action='store_true') diff --git a/src/azure-cli/azure/cli/command_modules/appservice/custom.py b/src/azure-cli/azure/cli/command_modules/appservice/custom.py index c2b42e5801a..df6ec40531e 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/custom.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/custom.py @@ -2619,7 +2619,7 @@ def __init__(self, cmd, client, linux=False): @staticmethod def remove_delimiters(runtime): import re - runtime = re.split('[| :]', runtime) # delimiters allowed: '|', ' ', ':' + runtime = re.split('[|:]', runtime) # delimiters allowed: '|', ':' return '|'.join(filter(None, runtime)) def resolve(self, display_name): From 7ddb19baaa88651dde9e590046f6210638af5458 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Wed, 13 Jan 2021 17:01:20 -0800 Subject: [PATCH 2/7] Use 2020-06-01 apiversion, allow space as delimiter if runtime doesn't already contain spaces --- .../azure/cli/command_modules/appservice/_create_util.py | 2 +- .../azure/cli/command_modules/appservice/_params.py | 4 ++-- .../azure/cli/command_modules/appservice/custom.py | 8 +++++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/appservice/_create_util.py b/src/azure-cli/azure/cli/command_modules/appservice/_create_util.py index c7709fd2a66..614a2854fe2 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/_create_util.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/_create_util.py @@ -23,7 +23,7 @@ def _resource_client_factory(cli_ctx, **_): from azure.cli.core.profiles import ResourceType - return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES) + return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES, None, "2020-06-01") def web_client_factory(cli_ctx, **_): diff --git a/src/azure-cli/azure/cli/command_modules/appservice/_params.py b/src/azure-cli/azure/cli/command_modules/appservice/_params.py index 502282e7b5f..b2279200c68 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/_params.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/_params.py @@ -131,7 +131,7 @@ def load_arguments(self, _): c.argument('docker_registry_server_password', options_list=['--docker-registry-server-password', '-w'], help='The container registry server password. Required for private registries.') c.argument('multicontainer_config_type', options_list=['--multicontainer-config-type'], help="Linux only.", arg_type=get_enum_type(MULTI_CONTAINER_TYPES)) c.argument('multicontainer_config_file', options_list=['--multicontainer-config-file'], help="Linux only. Config file for multicontainer apps. (local or remote)") - c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \":\". " + c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \" \", \":\". " "Use `az webapp list-runtimes` for available list") # TODO ADD completer c.argument('plan', options_list=['--plan', '-p'], configured_default='appserviceplan', completer=get_resource_name_completion_list('Microsoft.Web/serverFarms'), @@ -609,7 +609,7 @@ def load_arguments(self, _): local_context_attribute=LocalContextAttribute(name='plan_name', actions=[LocalContextAction.GET])) c.argument('sku', arg_type=sku_arg_type) c.argument('os_type', options_list=['--os-type'], arg_type=get_enum_type(OS_TYPES), help="Set the OS type for the app to be created.") - c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \":\". " + c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \" \", \":\". " "Use `az webapp list-runtimes` for available list.") c.argument('dryrun', help="show summary of the create and deploy operation instead of executing it", default=False, action='store_true') diff --git a/src/azure-cli/azure/cli/command_modules/appservice/custom.py b/src/azure-cli/azure/cli/command_modules/appservice/custom.py index df6ec40531e..ea143a65dbb 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/custom.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/custom.py @@ -2619,7 +2619,13 @@ def __init__(self, cmd, client, linux=False): @staticmethod def remove_delimiters(runtime): import re - runtime = re.split('[|:]', runtime) # delimiters allowed: '|', ':' + # delimiters allowed: '|', ':', ' ' + if '|' in runtime: + runtime = re.split('[|]', runtime) + elif ':' in runtime: + runtime = re.split('[:]', runtime) + else: + runtime = re.split('[ ]', runtime) return '|'.join(filter(None, runtime)) def resolve(self, display_name): From 76bd5f83d5014dc4411befc4fa637c355d484cbb Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Wed, 13 Jan 2021 17:21:15 -0800 Subject: [PATCH 3/7] Added test, reverted MGMT_RESOURCE_RESOURCES version to 2020-06-01 for test to succeed --- .../azure/cli/core/profiles/_shared.py | 2 +- .../appservice/_create_util.py | 2 +- .../test_webapp_up_runtime_delimiters.yaml | 429 +++++++++++++++++- .../tests/latest/test_webapp_up_commands.py | 17 +- 4 files changed, 419 insertions(+), 31 deletions(-) diff --git a/src/azure-cli-core/azure/cli/core/profiles/_shared.py b/src/azure-cli-core/azure/cli/core/profiles/_shared.py index 083481570df..cd1ca775cd5 100644 --- a/src/azure-cli-core/azure/cli/core/profiles/_shared.py +++ b/src/azure-cli-core/azure/cli/core/profiles/_shared.py @@ -152,7 +152,7 @@ def default_api_version(self): ResourceType.MGMT_RESOURCE_LINKS: '2016-09-01', ResourceType.MGMT_RESOURCE_LOCKS: '2016-09-01', ResourceType.MGMT_RESOURCE_POLICY: '2019-09-01', - ResourceType.MGMT_RESOURCE_RESOURCES: '2020-10-01', + ResourceType.MGMT_RESOURCE_RESOURCES: '2020-06-01', ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: '2019-11-01', ResourceType.MGMT_RESOURCE_DEPLOYMENTSCRIPTS: '2020-10-01', ResourceType.MGMT_RESOURCE_TEMPLATESPECS: '2019-06-01-preview', diff --git a/src/azure-cli/azure/cli/command_modules/appservice/_create_util.py b/src/azure-cli/azure/cli/command_modules/appservice/_create_util.py index 614a2854fe2..c7709fd2a66 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/_create_util.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/_create_util.py @@ -23,7 +23,7 @@ def _resource_client_factory(cli_ctx, **_): from azure.cli.core.profiles import ResourceType - return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES, None, "2020-06-01") + return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES) def web_client_factory(cli_ctx, **_): diff --git a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml index 4ab83e4e8f9..21cffb7910c 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml +++ b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml @@ -18,7 +18,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: POST @@ -34,7 +34,7 @@ interactions: content-type: - application/json date: - - Mon, 14 Dec 2020 20:59:08 GMT + - Thu, 14 Jan 2021 01:19:52 GMT expires: - '-1' pragma: @@ -71,7 +71,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: GET @@ -186,7 +186,7 @@ interactions: content-type: - application/json date: - - Mon, 14 Dec 2020 20:59:09 GMT + - Thu, 14 Jan 2021 01:19:52 GMT expires: - '-1' pragma: @@ -223,7 +223,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD @@ -237,7 +237,7 @@ interactions: content-length: - '0' date: - - Mon, 14 Dec 2020 20:59:09 GMT + - Thu, 14 Jan 2021 01:19:52 GMT expires: - '-1' pragma: @@ -264,7 +264,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: GET @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Dec 2020 20:59:09 GMT + - Thu, 14 Jan 2021 01:19:53 GMT expires: - '-1' pragma: @@ -309,7 +309,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD @@ -323,7 +323,7 @@ interactions: content-length: - '0' date: - - Mon, 14 Dec 2020 20:59:10 GMT + - Thu, 14 Jan 2021 01:19:53 GMT expires: - '-1' pragma: @@ -350,7 +350,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: GET @@ -366,7 +366,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Dec 2020 20:59:11 GMT + - Thu, 14 Jan 2021 01:19:54 GMT expires: - '-1' pragma: @@ -399,7 +399,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: POST @@ -415,7 +415,7 @@ interactions: content-type: - application/json date: - - Mon, 14 Dec 2020 20:59:11 GMT + - Thu, 14 Jan 2021 01:19:54 GMT expires: - '-1' pragma: @@ -452,7 +452,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: GET @@ -567,7 +567,7 @@ interactions: content-type: - application/json date: - - Mon, 14 Dec 2020 20:59:11 GMT + - Thu, 14 Jan 2021 01:19:55 GMT expires: - '-1' pragma: @@ -604,7 +604,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD @@ -618,7 +618,7 @@ interactions: content-length: - '0' date: - - Mon, 14 Dec 2020 20:59:12 GMT + - Thu, 14 Jan 2021 01:19:55 GMT expires: - '-1' pragma: @@ -645,7 +645,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: GET @@ -661,7 +661,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Dec 2020 20:59:13 GMT + - Thu, 14 Jan 2021 01:19:56 GMT expires: - '-1' pragma: @@ -690,7 +690,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.2.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD @@ -704,7 +704,7 @@ interactions: content-length: - '0' date: - - Mon, 14 Dec 2020 20:59:13 GMT + - Thu, 14 Jan 2021 01:19:56 GMT expires: - '-1' pragma: @@ -731,7 +731,7 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.16.0 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: GET @@ -747,7 +747,388 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Dec 2020 20:59:14 GMT + - Thu, 14 Jan 2021 01:19:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"name": "up-nodeapp000003", "type": "Microsoft.Web/sites"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - webapp up + Connection: + - keep-alive + Content-Length: + - '67' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n -g --plan --os --runtime --sku --dryrun + User-Agent: + - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2019-08-01 + response: + body: + string: '{"nameAvailable":true,"reason":"","message":""}' + headers: + cache-control: + - no-cache + content-length: + - '47' + content-type: + - application/json + date: + - Thu, 14 Jan 2021 01:19:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - webapp up + Connection: + - keep-alive + ParameterSetName: + - -n -g --plan --os --runtime --sku --dryrun + User-Agent: + - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions?sku=S1&linuxWorkersEnabled=true&api-version=2019-08-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Central + US","name":"Central US","type":"Microsoft.Web/geoRegions","properties":{"name":"Central + US","description":null,"sortOrder":0,"displayName":"Central US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/North + Europe","name":"North Europe","type":"Microsoft.Web/geoRegions","properties":{"name":"North + Europe","description":null,"sortOrder":1,"displayName":"North Europe","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;XENON;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;LINUXDYNAMIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West + Europe","name":"West Europe","type":"Microsoft.Web/geoRegions","properties":{"name":"West + Europe","description":null,"sortOrder":2,"displayName":"West Europe","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;XENON;SFCONTAINERS;LINUXDYNAMIC;ELASTICPREMIUM;ELASTICLINUX;LINUXFREE;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Southeast + Asia","name":"Southeast Asia","type":"Microsoft.Web/geoRegions","properties":{"name":"Southeast + Asia","description":null,"sortOrder":3,"displayName":"Southeast Asia","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;XENON;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;LINUXDYNAMIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East + Asia","name":"East Asia","type":"Microsoft.Web/geoRegions","properties":{"name":"East + Asia","description":null,"sortOrder":4,"displayName":"East Asia","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;SFCONTAINERS;LINUXDYNAMIC;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West + US","name":"West US","type":"Microsoft.Web/geoRegions","properties":{"name":"West + US","description":null,"sortOrder":5,"displayName":"West US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;XENON;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;LINUXDYNAMIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East + US","name":"East US","type":"Microsoft.Web/geoRegions","properties":{"name":"East + US","description":null,"sortOrder":6,"displayName":"East US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;FAKEORG;LINUXDSERIES;XENON;SFCONTAINERS;LINUXDYNAMIC;LINUXFREE;ELASTICLINUX;ELASTICPREMIUM;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Japan + West","name":"Japan West","type":"Microsoft.Web/geoRegions","properties":{"name":"Japan + West","description":null,"sortOrder":7,"displayName":"Japan West","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Japan + East","name":"Japan East","type":"Microsoft.Web/geoRegions","properties":{"name":"Japan + East","description":null,"sortOrder":8,"displayName":"Japan East","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXFREE;ELASTICLINUX;ELASTICPREMIUM;LINUXDYNAMIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East + US 2","name":"East US 2","type":"Microsoft.Web/geoRegions","properties":{"name":"East + US 2","description":null,"sortOrder":9,"displayName":"East US 2","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/North + Central US","name":"North Central US","type":"Microsoft.Web/geoRegions","properties":{"name":"North + Central US","description":null,"sortOrder":10,"displayName":"North Central + US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXFREE;ELASTICPREMIUM;ELASTICLINUX;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/South + Central US","name":"South Central US","type":"Microsoft.Web/geoRegions","properties":{"name":"South + Central US","description":null,"sortOrder":11,"displayName":"South Central + US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Brazil + South","name":"Brazil South","type":"Microsoft.Web/geoRegions","properties":{"name":"Brazil + South","description":null,"sortOrder":12,"displayName":"Brazil South","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXFREE;ELASTICPREMIUM;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Australia + East","name":"Australia East","type":"Microsoft.Web/geoRegions","properties":{"name":"Australia + East","description":null,"sortOrder":13,"displayName":"Australia East","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;XENON;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Australia + Southeast","name":"Australia Southeast","type":"Microsoft.Web/geoRegions","properties":{"name":"Australia + Southeast","description":null,"sortOrder":14,"displayName":"Australia Southeast","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East + Asia (Stage)","name":"East Asia (Stage)","type":"Microsoft.Web/geoRegions","properties":{"name":"East + Asia (Stage)","description":null,"sortOrder":2147483647,"displayName":"East + Asia (Stage)","orgDomain":"MSFTINT;DSERIES;ELASTICPREMIUM;FUNCTIONS;DYNAMIC;XENON;LINUX;LINUXFREE;LINUXDYNAMIC;XENONV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/North + Central US (Stage)","name":"North Central US (Stage)","type":"Microsoft.Web/geoRegions","properties":{"name":"North + Central US (Stage)","description":null,"sortOrder":2147483647,"displayName":"North + Central US (Stage)","orgDomain":"MSFTINT;LINUX;LINUXFREE;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Central + India","name":"Central India","type":"Microsoft.Web/geoRegions","properties":{"name":"Central + India","description":null,"sortOrder":2147483647,"displayName":"Central India","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West + India","name":"West India","type":"Microsoft.Web/geoRegions","properties":{"name":"West + India","description":null,"sortOrder":2147483647,"displayName":"West India","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;ELASTICPREMIUM;LINUXDYNAMIC;ELASTICLINUX"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/South + India","name":"South India","type":"Microsoft.Web/geoRegions","properties":{"name":"South + India","description":null,"sortOrder":2147483647,"displayName":"South India","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Canada + Central","name":"Canada Central","type":"Microsoft.Web/geoRegions","properties":{"name":"Canada + Central","description":null,"sortOrder":2147483647,"displayName":"Canada Central","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Canada + East","name":"Canada East","type":"Microsoft.Web/geoRegions","properties":{"name":"Canada + East","description":null,"sortOrder":2147483647,"displayName":"Canada East","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West + Central US","name":"West Central US","type":"Microsoft.Web/geoRegions","properties":{"name":"West + Central US","description":null,"sortOrder":2147483647,"displayName":"West + Central US","orgDomain":"PUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;ELASTICLINUX;ELASTICPREMIUM;MSFTPUBLIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West + US 2","name":"West US 2","type":"Microsoft.Web/geoRegions","properties":{"name":"West + US 2","description":null,"sortOrder":2147483647,"displayName":"West US 2","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXFREE;LINUXDYNAMIC;ELASTICPREMIUM;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/UK + West","name":"UK West","type":"Microsoft.Web/geoRegions","properties":{"name":"UK + West","description":null,"sortOrder":2147483647,"displayName":"UK West","orgDomain":"PUBLIC;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/UK + South","name":"UK South","type":"Microsoft.Web/geoRegions","properties":{"name":"UK + South","description":null,"sortOrder":2147483647,"displayName":"UK South","orgDomain":"PUBLIC;MSFTPUBLIC;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;LINUXDYNAMIC;ELASTICPREMIUM;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East + US 2 EUAP","name":"East US 2 EUAP","type":"Microsoft.Web/geoRegions","properties":{"name":"East + US 2 EUAP","description":null,"sortOrder":2147483647,"displayName":"East US + 2 EUAP","orgDomain":"EUAP;XENON;DSERIES;ELASTICPREMIUM;FUNCTIONS;DYNAMIC;LINUX;LINUXFREE;ELASTICLINUX;WINDOWSV3;XENONV3;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Central + US EUAP","name":"Central US EUAP","type":"Microsoft.Web/geoRegions","properties":{"name":"Central + US EUAP","description":null,"sortOrder":2147483647,"displayName":"Central + US EUAP","orgDomain":"EUAP;LINUX;DSERIES;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;LINUXDYNAMIC;DYNAMIC;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Korea + South","name":"Korea South","type":"Microsoft.Web/geoRegions","properties":{"name":"Korea + South","description":null,"sortOrder":2147483647,"displayName":"Korea South","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;LINUX;LINUXDSERIES;LINUXFREE;DSERIES"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Korea + Central","name":"Korea Central","type":"Microsoft.Web/geoRegions","properties":{"name":"Korea + Central","description":null,"sortOrder":2147483647,"displayName":"Korea Central","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;DSERIES;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/France + Central","name":"France Central","type":"Microsoft.Web/geoRegions","properties":{"name":"France + Central","description":null,"sortOrder":2147483647,"displayName":"France Central","orgDomain":"PUBLIC;MSFTPUBLIC;DSERIES;DYNAMIC;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Australia + Central 2","name":"Australia Central 2","type":"Microsoft.Web/geoRegions","properties":{"name":"Australia + Central 2","description":null,"sortOrder":2147483647,"displayName":"Australia + Central 2","orgDomain":"PUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;ELASTICPREMIUM"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Australia + Central","name":"Australia Central","type":"Microsoft.Web/geoRegions","properties":{"name":"Australia + Central","description":null,"sortOrder":2147483647,"displayName":"Australia + Central","orgDomain":"PUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;ELASTICPREMIUM"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/South + Africa North","name":"South Africa North","type":"Microsoft.Web/geoRegions","properties":{"name":"South + Africa North","description":null,"sortOrder":2147483647,"displayName":"South + Africa North","orgDomain":"PUBLIC;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;LINUXDSERIES;DSERIES"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/South + Africa West","name":"South Africa West","type":"Microsoft.Web/geoRegions","properties":{"name":"South + Africa West","description":null,"sortOrder":2147483647,"displayName":"South + Africa West","orgDomain":"PUBLIC;LINUX;LINUXDSERIES;DSERIES"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Switzerland + North","name":"Switzerland North","type":"Microsoft.Web/geoRegions","properties":{"name":"Switzerland + North","description":null,"sortOrder":2147483647,"displayName":"Switzerland + North","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;FUNCTIONS;DYNAMIC;LINUXDYNAMIC;ELASTICPREMIUM;ELASTICLINUX"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Germany + West Central","name":"Germany West Central","type":"Microsoft.Web/geoRegions","properties":{"name":"Germany + West Central","description":null,"sortOrder":2147483647,"displayName":"Germany + West Central","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;FUNCTIONS;DYNAMIC;ELASTICLINUX;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Switzerland + West","name":"Switzerland West","type":"Microsoft.Web/geoRegions","properties":{"name":"Switzerland + West","description":null,"sortOrder":2147483647,"displayName":"Switzerland + West","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;FUNCTIONS;DYNAMIC;ELASTICPREMIUM"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/UAE + Central","name":"UAE Central","type":"Microsoft.Web/geoRegions","properties":{"name":"UAE + Central","description":null,"sortOrder":2147483647,"displayName":"UAE Central","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/UAE + North","name":"UAE North","type":"Microsoft.Web/geoRegions","properties":{"name":"UAE + North","description":null,"sortOrder":2147483647,"displayName":"UAE North","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;FUNCTIONS;DYNAMIC;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Norway + East","name":"Norway East","type":"Microsoft.Web/geoRegions","properties":{"name":"Norway + East","description":null,"sortOrder":2147483647,"displayName":"Norway East","orgDomain":"PUBLIC;LINUX;LINUXDSERIES;DSERIES;ELASTICLINUX;ELASTICPREMIUM;FUNCTIONS;DYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Brazil + Southeast","name":"Brazil Southeast","type":"Microsoft.Web/geoRegions","properties":{"name":"Brazil + Southeast","description":null,"sortOrder":2147483647,"displayName":"Brazil + Southeast","orgDomain":"PUBLIC;LINUX;LINUXDSERIES;DSERIES;LINUXFREE;FUNCTIONS;DYNAMIC"}}],"nextLink":null,"id":null}' + headers: + cache-control: + - no-cache + content-length: + - '17037' + content-type: + - application/json + date: + - Thu, 14 Jan 2021 01:19:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - webapp up + Connection: + - keep-alive + ParameterSetName: + - -n -g --plan --os --runtime --sku --dryrun + User-Agent: + - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 14 Jan 2021 01:19:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - webapp up + Connection: + - keep-alive + ParameterSetName: + - -n -g --plan --os --runtime --sku --dryrun + User-Agent: + - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Web/serverfarms?api-version=2019-08-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Jan 2021 01:19:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - webapp up + Connection: + - keep-alive + ParameterSetName: + - -n -g --plan --os --runtime --sku --dryrun + User-Agent: + - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: HEAD + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 14 Jan 2021 01:19:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + status: + code: 204 + message: No Content +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - webapp up + Connection: + - keep-alive + ParameterSetName: + - -n -g --plan --os --runtime --sku --dryrun + User-Agent: + - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 + azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Web/serverfarms?api-version=2019-08-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 14 Jan 2021 01:19:58 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py index 4560b7a5e30..f330b7145f9 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py @@ -627,23 +627,30 @@ def test_webapp_up_runtime_delimiters(self, resource_group): # test dryrun operation result = self.cmd( - 'webapp up -n {} -g {} --plan {} --os "linux" --runtime "node 10.6" --sku "S1" --dryrun'.format(webapp_name, resource_group, plan)).get_output_in_json() + 'webapp up -n {} -g {} --plan {} --os "windows" --runtime "java|1.8|Java SE|8" --sku "S1" --dryrun'.format(webapp_name, resource_group, plan)).get_output_in_json() self.assertTrue(result['sku'].lower() == 'standard') self.assertTrue(result['name'].startswith(webapp_name)) self.assertTrue(result['src_path'].replace( os.sep + os.sep, os.sep), up_working_dir) - self.assertTrue(result['runtime_version'] == 'node|10.6') - self.assertTrue(result['os'].lower() == 'linux') + self.assertTrue(result['runtime_version'] == 'java|1.8|Java SE|8') # test dryrun operation result = self.cmd( - 'webapp up -n {} -g {} --plan {} --os "linux" --runtime "node:10.1" --sku "S1" --dryrun'.format(webapp_name, resource_group, plan)).get_output_in_json() + 'webapp up -n {} -g {} --plan {} --os "linux" --runtime "node 10.1" --sku "S1" --dryrun'.format(webapp_name, resource_group, plan)).get_output_in_json() self.assertTrue(result['sku'].lower() == 'standard') self.assertTrue(result['name'].startswith(webapp_name)) self.assertTrue(result['src_path'].replace( os.sep + os.sep, os.sep), up_working_dir) self.assertTrue(result['runtime_version'] == 'node|10.1') - self.assertTrue(result['os'].lower() == 'linux') + + # test dryrun operation + result = self.cmd( + 'webapp up -n {} -g {} --plan {} --os "windows" --runtime "java:1.8:Java SE:8" --sku "S1" --dryrun'.format(webapp_name, resource_group, plan)).get_output_in_json() + self.assertTrue(result['sku'].lower() == 'standard') + self.assertTrue(result['name'].startswith(webapp_name)) + self.assertTrue(result['src_path'].replace( + os.sep + os.sep, os.sep), up_working_dir) + self.assertTrue(result['runtime_version'] == 'java|1.8|Java SE|8') # cleanup # switch back the working dir From 2f158ff5af33c005acdb144f15ef873173d06b47 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Wed, 13 Jan 2021 17:38:59 -0800 Subject: [PATCH 4/7] Add examples --- .../azure/cli/command_modules/appservice/_help.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/appservice/_help.py b/src/azure-cli/azure/cli/command_modules/appservice/_help.py index cd5519fff1d..a6ebf00cd91 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/_help.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/_help.py @@ -1434,6 +1434,12 @@ - name: Create a web app with the default configuration. text: > az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName + - name: Create a web app with a java|11|Java SE|8 runtime using '|' delimiter. + text: > + az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --runtime "java|11|Java SE|8" + - name: Create a web app with a java|11|Java SE|8 runtime using ':' delimiter. + text: > + az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --runtime "java:11:Java SE:8" - name: Create a web app with a NodeJS 10.14 runtime and deployed from a local git repository. text: > az webapp create -g MyResourceGroup -p MyPlan -n MyUniqueAppName --runtime "node|10.14" --deployment-local-git @@ -1958,6 +1964,12 @@ - name: Create a web app with a specified name text: > az webapp up -n MyUniqueAppName + - name: Create a web app with a specified name and a java|11|Java SE|8 runtime using '|' delimiter + text: > + az webapp up -n MyUniqueAppName --runtime "java|11|Java SE|8" + - name: Create a web app with a specified name and a java|11|Java SE|8 runtime using ':' delimiter + text: > + az webapp up -n MyUniqueAppName --runtime "java:11:Java SE:8" - name: Create a web app in a specific region, by running the command from the folder where the code to be deployed exists. text: > az webapp up -l locationName From 1aa6fc88eeee6e97a1976283ddd0367e816bf23a Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Wed, 13 Jan 2021 19:30:15 -0800 Subject: [PATCH 5/7] Change back api version --- .../azure/cli/core/profiles/_shared.py | 2 +- .../test_webapp_up_runtime_delimiters.yaml | 60 +++++++++---------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/azure-cli-core/azure/cli/core/profiles/_shared.py b/src/azure-cli-core/azure/cli/core/profiles/_shared.py index cd1ca775cd5..083481570df 100644 --- a/src/azure-cli-core/azure/cli/core/profiles/_shared.py +++ b/src/azure-cli-core/azure/cli/core/profiles/_shared.py @@ -152,7 +152,7 @@ def default_api_version(self): ResourceType.MGMT_RESOURCE_LINKS: '2016-09-01', ResourceType.MGMT_RESOURCE_LOCKS: '2016-09-01', ResourceType.MGMT_RESOURCE_POLICY: '2019-09-01', - ResourceType.MGMT_RESOURCE_RESOURCES: '2020-06-01', + ResourceType.MGMT_RESOURCE_RESOURCES: '2020-10-01', ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: '2019-11-01', ResourceType.MGMT_RESOURCE_DEPLOYMENTSCRIPTS: '2020-10-01', ResourceType.MGMT_RESOURCE_TEMPLATESPECS: '2019-06-01-preview', diff --git a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml index 21cffb7910c..f069e087675 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml +++ b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml @@ -34,7 +34,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 01:19:52 GMT + - Thu, 14 Jan 2021 03:28:44 GMT expires: - '-1' pragma: @@ -186,7 +186,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 01:19:52 GMT + - Thu, 14 Jan 2021 03:28:44 GMT expires: - '-1' pragma: @@ -223,11 +223,11 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 response: body: string: '' @@ -237,7 +237,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 01:19:52 GMT + - Thu, 14 Jan 2021 03:28:45 GMT expires: - '-1' pragma: @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 01:19:53 GMT + - Thu, 14 Jan 2021 03:28:45 GMT expires: - '-1' pragma: @@ -309,11 +309,11 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 response: body: string: '' @@ -323,7 +323,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 01:19:53 GMT + - Thu, 14 Jan 2021 03:28:45 GMT expires: - '-1' pragma: @@ -366,7 +366,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 01:19:54 GMT + - Thu, 14 Jan 2021 03:28:46 GMT expires: - '-1' pragma: @@ -415,7 +415,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 01:19:54 GMT + - Thu, 14 Jan 2021 03:28:46 GMT expires: - '-1' pragma: @@ -567,7 +567,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 01:19:55 GMT + - Thu, 14 Jan 2021 03:28:47 GMT expires: - '-1' pragma: @@ -604,11 +604,11 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 response: body: string: '' @@ -618,7 +618,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 01:19:55 GMT + - Thu, 14 Jan 2021 03:28:47 GMT expires: - '-1' pragma: @@ -661,7 +661,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 01:19:56 GMT + - Thu, 14 Jan 2021 03:28:47 GMT expires: - '-1' pragma: @@ -690,11 +690,11 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 response: body: string: '' @@ -704,7 +704,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 01:19:56 GMT + - Thu, 14 Jan 2021 03:28:47 GMT expires: - '-1' pragma: @@ -747,7 +747,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 01:19:56 GMT + - Thu, 14 Jan 2021 03:28:48 GMT expires: - '-1' pragma: @@ -796,7 +796,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 01:19:56 GMT + - Thu, 14 Jan 2021 03:28:48 GMT expires: - '-1' pragma: @@ -948,7 +948,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 01:19:56 GMT + - Thu, 14 Jan 2021 03:28:48 GMT expires: - '-1' pragma: @@ -985,11 +985,11 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 response: body: string: '' @@ -999,7 +999,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 01:19:57 GMT + - Thu, 14 Jan 2021 03:28:49 GMT expires: - '-1' pragma: @@ -1042,7 +1042,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 01:19:57 GMT + - Thu, 14 Jan 2021 03:28:49 GMT expires: - '-1' pragma: @@ -1071,11 +1071,11 @@ interactions: - -n -g --plan --os --runtime --sku --dryrun User-Agent: - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/10.3.0 Azure-SDK-For-Python AZURECLI/2.17.1 + azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 accept-language: - en-US method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 response: body: string: '' @@ -1085,7 +1085,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 01:19:57 GMT + - Thu, 14 Jan 2021 03:28:49 GMT expires: - '-1' pragma: @@ -1128,7 +1128,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 01:19:58 GMT + - Thu, 14 Jan 2021 03:28:50 GMT expires: - '-1' pragma: From cb1a2175020b22993dd1faaae74ffb8c8fecd9c9 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Wed, 13 Jan 2021 19:44:39 -0800 Subject: [PATCH 6/7] Remove space as a delimiter --- .../cli/command_modules/appservice/_params.py | 4 +- .../cli/command_modules/appservice/custom.py | 4 +- .../test_webapp_up_runtime_delimiters.yaml | 405 +----------------- .../tests/latest/test_webapp_up_commands.py | 9 - 4 files changed, 16 insertions(+), 406 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/appservice/_params.py b/src/azure-cli/azure/cli/command_modules/appservice/_params.py index b2279200c68..a69f84ee9c5 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/_params.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/_params.py @@ -131,7 +131,7 @@ def load_arguments(self, _): c.argument('docker_registry_server_password', options_list=['--docker-registry-server-password', '-w'], help='The container registry server password. Required for private registries.') c.argument('multicontainer_config_type', options_list=['--multicontainer-config-type'], help="Linux only.", arg_type=get_enum_type(MULTI_CONTAINER_TYPES)) c.argument('multicontainer_config_file', options_list=['--multicontainer-config-file'], help="Linux only. Config file for multicontainer apps. (local or remote)") - c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \" \", \":\". " + c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\" or \":\". " "Use `az webapp list-runtimes` for available list") # TODO ADD completer c.argument('plan', options_list=['--plan', '-p'], configured_default='appserviceplan', completer=get_resource_name_completion_list('Microsoft.Web/serverFarms'), @@ -609,7 +609,7 @@ def load_arguments(self, _): local_context_attribute=LocalContextAttribute(name='plan_name', actions=[LocalContextAction.GET])) c.argument('sku', arg_type=sku_arg_type) c.argument('os_type', options_list=['--os-type'], arg_type=get_enum_type(OS_TYPES), help="Set the OS type for the app to be created.") - c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\", \" \", \":\". " + c.argument('runtime', options_list=['--runtime', '-r'], help="canonicalized web runtime in the format of Framework|Version, e.g. \"PHP|7.2\". Allowed delimiters: \"|\" or \":\". " "Use `az webapp list-runtimes` for available list.") c.argument('dryrun', help="show summary of the create and deploy operation instead of executing it", default=False, action='store_true') diff --git a/src/azure-cli/azure/cli/command_modules/appservice/custom.py b/src/azure-cli/azure/cli/command_modules/appservice/custom.py index ea143a65dbb..b8f556141a6 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/custom.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/custom.py @@ -2619,13 +2619,13 @@ def __init__(self, cmd, client, linux=False): @staticmethod def remove_delimiters(runtime): import re - # delimiters allowed: '|', ':', ' ' + # delimiters allowed: '|', ':' if '|' in runtime: runtime = re.split('[|]', runtime) elif ':' in runtime: runtime = re.split('[:]', runtime) else: - runtime = re.split('[ ]', runtime) + runtime = [runtime] return '|'.join(filter(None, runtime)) def resolve(self, display_name): diff --git a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml index f069e087675..a983056f353 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml +++ b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_up_runtime_delimiters.yaml @@ -34,7 +34,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 03:28:44 GMT + - Thu, 14 Jan 2021 03:44:23 GMT expires: - '-1' pragma: @@ -186,7 +186,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 03:28:44 GMT + - Thu, 14 Jan 2021 03:44:23 GMT expires: - '-1' pragma: @@ -237,7 +237,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 03:28:45 GMT + - Thu, 14 Jan 2021 03:44:23 GMT expires: - '-1' pragma: @@ -280,7 +280,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 03:28:45 GMT + - Thu, 14 Jan 2021 03:44:23 GMT expires: - '-1' pragma: @@ -323,7 +323,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 03:28:45 GMT + - Thu, 14 Jan 2021 03:44:24 GMT expires: - '-1' pragma: @@ -366,7 +366,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 03:28:46 GMT + - Thu, 14 Jan 2021 03:44:24 GMT expires: - '-1' pragma: @@ -415,7 +415,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 03:28:46 GMT + - Thu, 14 Jan 2021 03:44:25 GMT expires: - '-1' pragma: @@ -567,7 +567,7 @@ interactions: content-type: - application/json date: - - Thu, 14 Jan 2021 03:28:47 GMT + - Thu, 14 Jan 2021 03:44:25 GMT expires: - '-1' pragma: @@ -618,7 +618,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 03:28:47 GMT + - Thu, 14 Jan 2021 03:44:25 GMT expires: - '-1' pragma: @@ -661,7 +661,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 03:28:47 GMT + - Thu, 14 Jan 2021 03:44:26 GMT expires: - '-1' pragma: @@ -704,7 +704,7 @@ interactions: content-length: - '0' date: - - Thu, 14 Jan 2021 03:28:47 GMT + - Thu, 14 Jan 2021 03:44:26 GMT expires: - '-1' pragma: @@ -747,388 +747,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 14 Jan 2021 03:28:48 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "up-nodeapp000003", "type": "Microsoft.Web/sites"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - webapp up - Connection: - - keep-alive - Content-Length: - - '67' - Content-Type: - - application/json; charset=utf-8 - ParameterSetName: - - -n -g --plan --os --runtime --sku --dryrun - User-Agent: - - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2019-08-01 - response: - body: - string: '{"nameAvailable":true,"reason":"","message":""}' - headers: - cache-control: - - no-cache - content-length: - - '47' - content-type: - - application/json - date: - - Thu, 14 Jan 2021 03:28:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - webapp up - Connection: - - keep-alive - ParameterSetName: - - -n -g --plan --os --runtime --sku --dryrun - User-Agent: - - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions?sku=S1&linuxWorkersEnabled=true&api-version=2019-08-01 - response: - body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Central - US","name":"Central US","type":"Microsoft.Web/geoRegions","properties":{"name":"Central - US","description":null,"sortOrder":0,"displayName":"Central US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/North - Europe","name":"North Europe","type":"Microsoft.Web/geoRegions","properties":{"name":"North - Europe","description":null,"sortOrder":1,"displayName":"North Europe","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;XENON;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;LINUXDYNAMIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West - Europe","name":"West Europe","type":"Microsoft.Web/geoRegions","properties":{"name":"West - Europe","description":null,"sortOrder":2,"displayName":"West Europe","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;XENON;SFCONTAINERS;LINUXDYNAMIC;ELASTICPREMIUM;ELASTICLINUX;LINUXFREE;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Southeast - Asia","name":"Southeast Asia","type":"Microsoft.Web/geoRegions","properties":{"name":"Southeast - Asia","description":null,"sortOrder":3,"displayName":"Southeast Asia","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;XENON;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;LINUXDYNAMIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East - Asia","name":"East Asia","type":"Microsoft.Web/geoRegions","properties":{"name":"East - Asia","description":null,"sortOrder":4,"displayName":"East Asia","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;SFCONTAINERS;LINUXDYNAMIC;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West - US","name":"West US","type":"Microsoft.Web/geoRegions","properties":{"name":"West - US","description":null,"sortOrder":5,"displayName":"West US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;XENON;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;LINUXDYNAMIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East - US","name":"East US","type":"Microsoft.Web/geoRegions","properties":{"name":"East - US","description":null,"sortOrder":6,"displayName":"East US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;FAKEORG;LINUXDSERIES;XENON;SFCONTAINERS;LINUXDYNAMIC;LINUXFREE;ELASTICLINUX;ELASTICPREMIUM;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Japan - West","name":"Japan West","type":"Microsoft.Web/geoRegions","properties":{"name":"Japan - West","description":null,"sortOrder":7,"displayName":"Japan West","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Japan - East","name":"Japan East","type":"Microsoft.Web/geoRegions","properties":{"name":"Japan - East","description":null,"sortOrder":8,"displayName":"Japan East","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXFREE;ELASTICLINUX;ELASTICPREMIUM;LINUXDYNAMIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East - US 2","name":"East US 2","type":"Microsoft.Web/geoRegions","properties":{"name":"East - US 2","description":null,"sortOrder":9,"displayName":"East US 2","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/North - Central US","name":"North Central US","type":"Microsoft.Web/geoRegions","properties":{"name":"North - Central US","description":null,"sortOrder":10,"displayName":"North Central - US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXFREE;ELASTICPREMIUM;ELASTICLINUX;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/South - Central US","name":"South Central US","type":"Microsoft.Web/geoRegions","properties":{"name":"South - Central US","description":null,"sortOrder":11,"displayName":"South Central - US","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Brazil - South","name":"Brazil South","type":"Microsoft.Web/geoRegions","properties":{"name":"Brazil - South","description":null,"sortOrder":12,"displayName":"Brazil South","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXFREE;ELASTICPREMIUM;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Australia - East","name":"Australia East","type":"Microsoft.Web/geoRegions","properties":{"name":"Australia - East","description":null,"sortOrder":13,"displayName":"Australia East","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;XENON;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Australia - Southeast","name":"Australia Southeast","type":"Microsoft.Web/geoRegions","properties":{"name":"Australia - Southeast","description":null,"sortOrder":14,"displayName":"Australia Southeast","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East - Asia (Stage)","name":"East Asia (Stage)","type":"Microsoft.Web/geoRegions","properties":{"name":"East - Asia (Stage)","description":null,"sortOrder":2147483647,"displayName":"East - Asia (Stage)","orgDomain":"MSFTINT;DSERIES;ELASTICPREMIUM;FUNCTIONS;DYNAMIC;XENON;LINUX;LINUXFREE;LINUXDYNAMIC;XENONV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/North - Central US (Stage)","name":"North Central US (Stage)","type":"Microsoft.Web/geoRegions","properties":{"name":"North - Central US (Stage)","description":null,"sortOrder":2147483647,"displayName":"North - Central US (Stage)","orgDomain":"MSFTINT;LINUX;LINUXFREE;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Central - India","name":"Central India","type":"Microsoft.Web/geoRegions","properties":{"name":"Central - India","description":null,"sortOrder":2147483647,"displayName":"Central India","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West - India","name":"West India","type":"Microsoft.Web/geoRegions","properties":{"name":"West - India","description":null,"sortOrder":2147483647,"displayName":"West India","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;ELASTICPREMIUM;LINUXDYNAMIC;ELASTICLINUX"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/South - India","name":"South India","type":"Microsoft.Web/geoRegions","properties":{"name":"South - India","description":null,"sortOrder":2147483647,"displayName":"South India","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Canada - Central","name":"Canada Central","type":"Microsoft.Web/geoRegions","properties":{"name":"Canada - Central","description":null,"sortOrder":2147483647,"displayName":"Canada Central","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Canada - East","name":"Canada East","type":"Microsoft.Web/geoRegions","properties":{"name":"Canada - East","description":null,"sortOrder":2147483647,"displayName":"Canada East","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West - Central US","name":"West Central US","type":"Microsoft.Web/geoRegions","properties":{"name":"West - Central US","description":null,"sortOrder":2147483647,"displayName":"West - Central US","orgDomain":"PUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;ELASTICLINUX;ELASTICPREMIUM;MSFTPUBLIC;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/West - US 2","name":"West US 2","type":"Microsoft.Web/geoRegions","properties":{"name":"West - US 2","description":null,"sortOrder":2147483647,"displayName":"West US 2","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;DSERIES;LINUXDSERIES;LINUXFREE;LINUXDYNAMIC;ELASTICPREMIUM;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/UK - West","name":"UK West","type":"Microsoft.Web/geoRegions","properties":{"name":"UK - West","description":null,"sortOrder":2147483647,"displayName":"UK West","orgDomain":"PUBLIC;MSFTPUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/UK - South","name":"UK South","type":"Microsoft.Web/geoRegions","properties":{"name":"UK - South","description":null,"sortOrder":2147483647,"displayName":"UK South","orgDomain":"PUBLIC;MSFTPUBLIC;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;LINUXDYNAMIC;ELASTICPREMIUM;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/East - US 2 EUAP","name":"East US 2 EUAP","type":"Microsoft.Web/geoRegions","properties":{"name":"East - US 2 EUAP","description":null,"sortOrder":2147483647,"displayName":"East US - 2 EUAP","orgDomain":"EUAP;XENON;DSERIES;ELASTICPREMIUM;FUNCTIONS;DYNAMIC;LINUX;LINUXFREE;ELASTICLINUX;WINDOWSV3;XENONV3;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Central - US EUAP","name":"Central US EUAP","type":"Microsoft.Web/geoRegions","properties":{"name":"Central - US EUAP","description":null,"sortOrder":2147483647,"displayName":"Central - US EUAP","orgDomain":"EUAP;LINUX;DSERIES;ELASTICPREMIUM;LINUXFREE;ELASTICLINUX;LINUXDYNAMIC;DYNAMIC;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Korea - South","name":"Korea South","type":"Microsoft.Web/geoRegions","properties":{"name":"Korea - South","description":null,"sortOrder":2147483647,"displayName":"Korea South","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;LINUX;LINUXDSERIES;LINUXFREE;DSERIES"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Korea - Central","name":"Korea Central","type":"Microsoft.Web/geoRegions","properties":{"name":"Korea - Central","description":null,"sortOrder":2147483647,"displayName":"Korea Central","orgDomain":"PUBLIC;DREAMSPARK;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;DSERIES;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/France - Central","name":"France Central","type":"Microsoft.Web/geoRegions","properties":{"name":"France - Central","description":null,"sortOrder":2147483647,"displayName":"France Central","orgDomain":"PUBLIC;MSFTPUBLIC;DSERIES;DYNAMIC;LINUX;LINUXDSERIES;ELASTICPREMIUM;LINUXFREE;LINUXDYNAMIC;ELASTICLINUX;XENON;XENONV3;WINDOWSV3;LINUXV3"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Australia - Central 2","name":"Australia Central 2","type":"Microsoft.Web/geoRegions","properties":{"name":"Australia - Central 2","description":null,"sortOrder":2147483647,"displayName":"Australia - Central 2","orgDomain":"PUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;ELASTICPREMIUM"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Australia - Central","name":"Australia Central","type":"Microsoft.Web/geoRegions","properties":{"name":"Australia - Central","description":null,"sortOrder":2147483647,"displayName":"Australia - Central","orgDomain":"PUBLIC;FUNCTIONS;DYNAMIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;ELASTICPREMIUM"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/South - Africa North","name":"South Africa North","type":"Microsoft.Web/geoRegions","properties":{"name":"South - Africa North","description":null,"sortOrder":2147483647,"displayName":"South - Africa North","orgDomain":"PUBLIC;MSFTPUBLIC;FUNCTIONS;DYNAMIC;LINUX;LINUXDSERIES;DSERIES"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/South - Africa West","name":"South Africa West","type":"Microsoft.Web/geoRegions","properties":{"name":"South - Africa West","description":null,"sortOrder":2147483647,"displayName":"South - Africa West","orgDomain":"PUBLIC;LINUX;LINUXDSERIES;DSERIES"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Switzerland - North","name":"Switzerland North","type":"Microsoft.Web/geoRegions","properties":{"name":"Switzerland - North","description":null,"sortOrder":2147483647,"displayName":"Switzerland - North","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;FUNCTIONS;DYNAMIC;LINUXDYNAMIC;ELASTICPREMIUM;ELASTICLINUX"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Germany - West Central","name":"Germany West Central","type":"Microsoft.Web/geoRegions","properties":{"name":"Germany - West Central","description":null,"sortOrder":2147483647,"displayName":"Germany - West Central","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;ELASTICPREMIUM;FUNCTIONS;DYNAMIC;ELASTICLINUX;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Switzerland - West","name":"Switzerland West","type":"Microsoft.Web/geoRegions","properties":{"name":"Switzerland - West","description":null,"sortOrder":2147483647,"displayName":"Switzerland - West","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;FUNCTIONS;DYNAMIC;ELASTICPREMIUM"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/UAE - Central","name":"UAE Central","type":"Microsoft.Web/geoRegions","properties":{"name":"UAE - Central","description":null,"sortOrder":2147483647,"displayName":"UAE Central","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/UAE - North","name":"UAE North","type":"Microsoft.Web/geoRegions","properties":{"name":"UAE - North","description":null,"sortOrder":2147483647,"displayName":"UAE North","orgDomain":"PUBLIC;DSERIES;LINUX;LINUXDSERIES;LINUXFREE;FUNCTIONS;DYNAMIC;LINUXDYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Norway - East","name":"Norway East","type":"Microsoft.Web/geoRegions","properties":{"name":"Norway - East","description":null,"sortOrder":2147483647,"displayName":"Norway East","orgDomain":"PUBLIC;LINUX;LINUXDSERIES;DSERIES;ELASTICLINUX;ELASTICPREMIUM;FUNCTIONS;DYNAMIC"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/geoRegions/Brazil - Southeast","name":"Brazil Southeast","type":"Microsoft.Web/geoRegions","properties":{"name":"Brazil - Southeast","description":null,"sortOrder":2147483647,"displayName":"Brazil - Southeast","orgDomain":"PUBLIC;LINUX;LINUXDSERIES;DSERIES;LINUXFREE;FUNCTIONS;DYNAMIC"}}],"nextLink":null,"id":null}' - headers: - cache-control: - - no-cache - content-length: - - '17037' - content-type: - - application/json - date: - - Thu, 14 Jan 2021 03:28:48 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-IIS/10.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-aspnet-version: - - 4.0.30319 - x-content-type-options: - - nosniff - x-powered-by: - - ASP.NET - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - webapp up - Connection: - - keep-alive - ParameterSetName: - - -n -g --plan --os --runtime --sku --dryrun - User-Agent: - - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 - accept-language: - - en-US - method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Thu, 14 Jan 2021 03:28:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - webapp up - Connection: - - keep-alive - ParameterSetName: - - -n -g --plan --os --runtime --sku --dryrun - User-Agent: - - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Web/serverfarms?api-version=2019-08-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 14 Jan 2021 03:28:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - webapp up - Connection: - - keep-alive - ParameterSetName: - - -n -g --plan --os --runtime --sku --dryrun - User-Agent: - - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-resource/12.0.0 Azure-SDK-For-Python AZURECLI/2.17.1 - accept-language: - - en-US - method: HEAD - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest000001?api-version=2020-10-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Thu, 14 Jan 2021 03:28:49 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 204 - message: No Content -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - webapp up - Connection: - - keep-alive - ParameterSetName: - - -n -g --plan --os --runtime --sku --dryrun - User-Agent: - - python/3.6.7 (Windows-10-10.0.19041-SP0) msrest/0.6.18 msrest_azure/0.6.3 - azure-mgmt-web/0.48.0 Azure-SDK-For-Python AZURECLI/2.17.1 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Web/serverfarms?api-version=2019-08-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 14 Jan 2021 03:28:50 GMT + - Thu, 14 Jan 2021 03:44:26 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py index f330b7145f9..d5025cde26a 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_up_commands.py @@ -634,15 +634,6 @@ def test_webapp_up_runtime_delimiters(self, resource_group): os.sep + os.sep, os.sep), up_working_dir) self.assertTrue(result['runtime_version'] == 'java|1.8|Java SE|8') - # test dryrun operation - result = self.cmd( - 'webapp up -n {} -g {} --plan {} --os "linux" --runtime "node 10.1" --sku "S1" --dryrun'.format(webapp_name, resource_group, plan)).get_output_in_json() - self.assertTrue(result['sku'].lower() == 'standard') - self.assertTrue(result['name'].startswith(webapp_name)) - self.assertTrue(result['src_path'].replace( - os.sep + os.sep, os.sep), up_working_dir) - self.assertTrue(result['runtime_version'] == 'node|10.1') - # test dryrun operation result = self.cmd( 'webapp up -n {} -g {} --plan {} --os "windows" --runtime "java:1.8:Java SE:8" --sku "S1" --dryrun'.format(webapp_name, resource_group, plan)).get_output_in_json() From 1d9f942ae9e797e77a8c5f586139c0aa41052855 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Thu, 14 Jan 2021 16:31:11 -0800 Subject: [PATCH 7/7] Change example to use a cheaper SKUto avoid customer sticker shock --- src/azure-cli/azure/cli/command_modules/appservice/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/appservice/_help.py b/src/azure-cli/azure/cli/command_modules/appservice/_help.py index a6ebf00cd91..c66b5834aa8 100644 --- a/src/azure-cli/azure/cli/command_modules/appservice/_help.py +++ b/src/azure-cli/azure/cli/command_modules/appservice/_help.py @@ -53,7 +53,7 @@ - name: Create a Windows container app service plan. text: > az appservice plan create -g MyResourceGroup -n MyPlan \\ - --hyper-v --sku P3V3 + --hyper-v --sku P1V3 - name: Create an app service plan for app service environment. text: > az appservice plan create -g MyResourceGroup -n MyPlan \\