Skip to content

Commit ad14ed5

Browse files
runefaHaroon Feisal
and
Haroon Feisal
authored
[App Service] Fix Azure#12090: az webapp create: Allow plan in different resource group from web app (Azure#21469)
* Loop through existing plans and match name to allow for plan being on a different resource group. * Fixed small bug. * Check resource group for plan before looking outside of rg. * Removed whitespace to pass style check. * Added updated test files from running --live. * Added simple test creating webapp in different group from plan. * Loop through existing plans and match name to allow for plan being on a different resource group. * Fixed small bug. * Check resource group for plan before looking outside of rg. * Removed whitespace to pass style check. * Added updated test files from running --live. * Reran tests. * Handle errors, reran failing tests live. Co-authored-by: Haroon Feisal <[email protected]>
1 parent 25ace8b commit ad14ed5

File tree

67 files changed

+12418
-6912
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+12418
-6912
lines changed

Diff for: src/azure-cli/azure/cli/command_modules/appservice/custom.py

+16-3
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def create_webapp(cmd, resource_group_name, name, plan, runtime=None, startup_fi
9292
using_webapp_up=False, language=None, assign_identities=None,
9393
role='Contributor', scope=None, vnet=None, subnet=None, https_only=False):
9494
from azure.mgmt.web.models import Site
95+
from azure.core.exceptions import ResourceNotFoundError as _ResourceNotFoundError
9596
SiteConfig, SkuDescription, NameValuePair = cmd.get_models(
9697
'SiteConfig', 'SkuDescription', 'NameValuePair')
9798

@@ -101,14 +102,26 @@ def create_webapp(cmd, resource_group_name, name, plan, runtime=None, startup_fi
101102
docker_registry_server_url = parse_docker_image_name(deployment_container_image_name)
102103

103104
client = web_client_factory(cmd.cli_ctx)
105+
plan_info = None
104106
if is_valid_resource_id(plan):
105107
parse_result = parse_resource_id(plan)
106108
plan_info = client.app_service_plans.get(parse_result['resource_group'], parse_result['name'])
107109
else:
108-
plan_info = client.app_service_plans.get(name=plan, resource_group_name=resource_group_name)
110+
try:
111+
plan_info = client.app_service_plans.get(name=plan, resource_group_name=resource_group_name)
112+
except _ResourceNotFoundError:
113+
plan_info = None
114+
if not plan_info:
115+
plans = list(client.app_service_plans.list(detailed=True))
116+
for user_plan in plans:
117+
if user_plan.name.lower() == plan.lower():
118+
if plan_info:
119+
raise InvalidArgumentValueError("There are multiple plans with name {}.".format(plan),
120+
"Try using the plan resource ID instead.")
121+
parse_result = parse_resource_id(user_plan.id)
122+
plan_info = client.app_service_plans.get(parse_result['resource_group'], parse_result['name'])
109123
if not plan_info:
110-
raise ResourceNotFoundError("The plan '{}' doesn't exist in the resource group '{}".format(plan,
111-
resource_group_name))
124+
raise ResourceNotFoundError("The plan '{}' doesn't exist.".format(plan))
112125
is_linux = plan_info.reserved
113126
helper = _StackRuntimeHelper(cmd, linux=is_linux, windows=not is_linux)
114127
location = plan_info.location

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_acr_integration.yaml

+114-114
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_auto_delete_plan.yaml

+42-42
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_backup_with_name.yaml

+86-86
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_container_webapp_docker_image_name.yaml

+49-47
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_container_webapp_long_server_url.yaml

+52-54
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_create_in_different_group.yaml

+37-37
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_create_in_different_group_name.yaml

+809
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_deploy_zip.yaml

+165-175
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_download_win_web_log.yaml

+347-374
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_linux_webapp.yaml

+135-135
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_linux_webapp_multicontainer_create.yaml

+49-49
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_linux_webapp_multicontainer_slot.yaml

+110-110
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_linux_webapp_quick_create.yaml

+58-58
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_linux_webapp_remote_ssh.yaml

+33-33
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_one_deploy.yaml

+101-143
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_retain_plan.yaml

+36-36
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_traffic_routing.yaml

+71-77
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_update_webapp_settings_thru_json.yaml

+73-73
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_add.yaml

+38-38
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_add_http_header.yaml

+78-78
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_add_ip_address_validation.yaml

+51-51
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_add_scm.yaml

+36-36
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_add_service_endpoint.yaml

+78-84
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_add_service_tag_validation.yaml

+58-58
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_mixed_remove.yaml

+119-168
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_remove.yaml

+42-42
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_remove_scm.yaml

+54-48
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_set_complex.yaml

+40-40
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_set_simple.yaml

+44-38
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_show.yaml

+42-48
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_access_restriction_slot.yaml

+52-52
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_authentication.yaml

+36-36
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_config.yaml

+161-161
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_config_appsettings.yaml

+101-94
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_cors.yaml

+69-69
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_create_vnetE2E.yaml

+168-143
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_create_with_vnet_by_subnet_rid.yaml

+169-153
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_create_with_vnet_by_vnet_rid.yaml

+168-143
Large diffs are not rendered by default.

Diff for: src/azure-cli/azure/cli/command_modules/appservice/tests/latest/recordings/test_webapp_create_with_vnet_no_subnet.yaml

+31-31
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ interactions:
1313
ParameterSetName:
1414
- -g -n --address-prefix --subnet-name --subnet-prefix
1515
User-Agent:
16-
- AZURECLI/2.33.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.2 (macOS-10.16-x86_64-i386-64bit)
16+
- AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
1717
method: GET
1818
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01
1919
response:
2020
body:
21-
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"japanwest","tags":{"product":"azurecli","cause":"automation","date":"2022-02-24T19:35:25Z"},"properties":{"provisioningState":"Succeeded"}}'
21+
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"japanwest","tags":{"product":"azurecli","cause":"automation","date":"2022-03-23T19:14:32Z"},"properties":{"provisioningState":"Succeeded"}}'
2222
headers:
2323
cache-control:
2424
- no-cache
@@ -27,7 +27,7 @@ interactions:
2727
content-type:
2828
- application/json; charset=utf-8
2929
date:
30-
- Thu, 24 Feb 2022 19:35:27 GMT
30+
- Wed, 23 Mar 2022 19:14:38 GMT
3131
expires:
3232
- '-1'
3333
pragma:
@@ -62,21 +62,21 @@ interactions:
6262
ParameterSetName:
6363
- -g -n --address-prefix --subnet-name --subnet-prefix
6464
User-Agent:
65-
- AZURECLI/2.33.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.2 (macOS-10.16-x86_64-i386-64bit)
65+
- AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
6666
method: PUT
6767
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vnet000005?api-version=2021-05-01
6868
response:
6969
body:
7070
string: "{\r\n \"name\": \"vnet000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vnet000005\",\r\n
71-
\ \"etag\": \"W/\\\"1e0f6676-6456-4922-ab1b-f307f8f53796\\\"\",\r\n \"type\":
71+
\ \"etag\": \"W/\\\"86af37e9-9a3a-40b7-8750-e719d60f2918\\\"\",\r\n \"type\":
7272
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"japanwest\",\r\n
7373
\ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
74-
\ \"resourceGuid\": \"d62c63d0-e39e-4d44-9a32-f928b368444e\",\r\n \"addressSpace\":
74+
\ \"resourceGuid\": \"abbca9c7-24b6-4ae4-9300-676cc2f9bd0f\",\r\n \"addressSpace\":
7575
{\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n
7676
\ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n
7777
\ \"subnets\": [\r\n {\r\n \"name\": \"subnet000004\",\r\n \"id\":
7878
\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vnet000005/subnets/subnet000004\",\r\n
79-
\ \"etag\": \"W/\\\"1e0f6676-6456-4922-ab1b-f307f8f53796\\\"\",\r\n
79+
\ \"etag\": \"W/\\\"86af37e9-9a3a-40b7-8750-e719d60f2918\\\"\",\r\n
8080
\ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n
8181
\ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\":
8282
[],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\":
@@ -87,15 +87,15 @@ interactions:
8787
azure-asyncnotification:
8888
- Enabled
8989
azure-asyncoperation:
90-
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/japanwest/operations/642544c4-fede-48f2-b285-f052d5c1c0e5?api-version=2021-05-01
90+
- https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/japanwest/operations/b5e779f1-6659-467c-aa9f-3a3524d2f1bc?api-version=2021-05-01
9191
cache-control:
9292
- no-cache
9393
content-length:
9494
- '1313'
9595
content-type:
9696
- application/json; charset=utf-8
9797
date:
98-
- Thu, 24 Feb 2022 19:35:30 GMT
98+
- Wed, 23 Mar 2022 19:14:47 GMT
9999
expires:
100100
- '-1'
101101
pragma:
@@ -108,9 +108,9 @@ interactions:
108108
x-content-type-options:
109109
- nosniff
110110
x-ms-arm-service-request-id:
111-
- 66d4f744-c388-471f-852c-3a84682be74d
111+
- 33cb0625-70af-4cbe-8def-525f8121e4ab
112112
x-ms-ratelimit-remaining-subscription-writes:
113-
- '1196'
113+
- '1199'
114114
status:
115115
code: 201
116116
message: Created
@@ -128,9 +128,9 @@ interactions:
128128
ParameterSetName:
129129
- -g -n --address-prefix --subnet-name --subnet-prefix
130130
User-Agent:
131-
- AZURECLI/2.33.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.2 (macOS-10.16-x86_64-i386-64bit)
131+
- AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
132132
method: GET
133-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/japanwest/operations/642544c4-fede-48f2-b285-f052d5c1c0e5?api-version=2021-05-01
133+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/japanwest/operations/b5e779f1-6659-467c-aa9f-3a3524d2f1bc?api-version=2021-05-01
134134
response:
135135
body:
136136
string: "{\r\n \"status\": \"Succeeded\"\r\n}"
@@ -142,7 +142,7 @@ interactions:
142142
content-type:
143143
- application/json; charset=utf-8
144144
date:
145-
- Thu, 24 Feb 2022 19:35:34 GMT
145+
- Wed, 23 Mar 2022 19:14:50 GMT
146146
expires:
147147
- '-1'
148148
pragma:
@@ -159,7 +159,7 @@ interactions:
159159
x-content-type-options:
160160
- nosniff
161161
x-ms-arm-service-request-id:
162-
- b3734020-78d9-4ed9-8fb4-42311eda3c2d
162+
- 3f675fa2-3fe7-4be2-b9e0-2cb4f3256ab2
163163
status:
164164
code: 200
165165
message: OK
@@ -177,21 +177,21 @@ interactions:
177177
ParameterSetName:
178178
- -g -n --address-prefix --subnet-name --subnet-prefix
179179
User-Agent:
180-
- AZURECLI/2.33.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.2 (macOS-10.16-x86_64-i386-64bit)
180+
- AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
181181
method: GET
182182
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vnet000005?api-version=2021-05-01
183183
response:
184184
body:
185185
string: "{\r\n \"name\": \"vnet000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vnet000005\",\r\n
186-
\ \"etag\": \"W/\\\"aeefa564-adcd-4361-89cf-ac6dccee8bc4\\\"\",\r\n \"type\":
186+
\ \"etag\": \"W/\\\"67849aab-4186-4e01-a389-0d307fd118af\\\"\",\r\n \"type\":
187187
\"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"japanwest\",\r\n
188188
\ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
189-
\ \"resourceGuid\": \"d62c63d0-e39e-4d44-9a32-f928b368444e\",\r\n \"addressSpace\":
189+
\ \"resourceGuid\": \"abbca9c7-24b6-4ae4-9300-676cc2f9bd0f\",\r\n \"addressSpace\":
190190
{\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n ]\r\n
191191
\ },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": []\r\n },\r\n
192192
\ \"subnets\": [\r\n {\r\n \"name\": \"subnet000004\",\r\n \"id\":
193193
\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vnet000005/subnets/subnet000004\",\r\n
194-
\ \"etag\": \"W/\\\"aeefa564-adcd-4361-89cf-ac6dccee8bc4\\\"\",\r\n
194+
\ \"etag\": \"W/\\\"67849aab-4186-4e01-a389-0d307fd118af\\\"\",\r\n
195195
\ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n
196196
\ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\":
197197
[],\r\n \"privateEndpointNetworkPolicies\": \"Enabled\",\r\n \"privateLinkServiceNetworkPolicies\":
@@ -206,9 +206,9 @@ interactions:
206206
content-type:
207207
- application/json; charset=utf-8
208208
date:
209-
- Thu, 24 Feb 2022 19:35:34 GMT
209+
- Wed, 23 Mar 2022 19:14:50 GMT
210210
etag:
211-
- W/"aeefa564-adcd-4361-89cf-ac6dccee8bc4"
211+
- W/"67849aab-4186-4e01-a389-0d307fd118af"
212212
expires:
213213
- '-1'
214214
pragma:
@@ -225,7 +225,7 @@ interactions:
225225
x-content-type-options:
226226
- nosniff
227227
x-ms-arm-service-request-id:
228-
- 74b2e305-7a7e-4164-80a6-13416f6234af
228+
- 90e2052f-5aff-4bbf-8cab-0270a89629c3
229229
status:
230230
code: 200
231231
message: OK
@@ -243,12 +243,12 @@ interactions:
243243
ParameterSetName:
244244
- -g -n --sku
245245
User-Agent:
246-
- AZURECLI/2.33.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.2 (macOS-10.16-x86_64-i386-64bit)
246+
- AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
247247
method: GET
248248
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01
249249
response:
250250
body:
251-
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"japanwest","tags":{"product":"azurecli","cause":"automation","date":"2022-02-24T19:35:25Z"},"properties":{"provisioningState":"Succeeded"}}'
251+
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"japanwest","tags":{"product":"azurecli","cause":"automation","date":"2022-03-23T19:14:32Z"},"properties":{"provisioningState":"Succeeded"}}'
252252
headers:
253253
cache-control:
254254
- no-cache
@@ -257,7 +257,7 @@ interactions:
257257
content-type:
258258
- application/json; charset=utf-8
259259
date:
260-
- Thu, 24 Feb 2022 19:35:34 GMT
260+
- Wed, 23 Mar 2022 19:14:50 GMT
261261
expires:
262262
- '-1'
263263
pragma:
@@ -291,13 +291,13 @@ interactions:
291291
ParameterSetName:
292292
- -g -n --sku
293293
User-Agent:
294-
- AZURECLI/2.33.1 azsdk-python-azure-mgmt-web/6.1.0 Python/3.8.2 (macOS-10.16-x86_64-i386-64bit)
294+
- AZURECLI/2.34.1 azsdk-python-azure-mgmt-web/6.1.0 Python/3.8.10 (Windows-10-10.0.19044-SP0)
295295
method: PUT
296296
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/vnetplan000003?api-version=2021-03-01
297297
response:
298298
body:
299-
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/vnetplan000003","name":"vnetplan000003","type":"Microsoft.Web/serverfarms","kind":"app","location":"japanwest","properties":{"serverFarmId":35356,"name":"vnetplan000003","sku":{"name":"P1v2","tier":"PremiumV2","size":"P1v2","family":"Pv2","capacity":1},"workerSize":"D1","workerSizeId":3,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"D1","currentWorkerSizeId":3,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"clitest.rg000001-JapanWestwebspace","subscription":"e483435e-282d-4ac1-92b5-d6123f2aa360","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":0,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"Japan
300-
West","perSiteScaling":false,"elasticScaleEnabled":false,"maximumElasticWorkerCount":1,"numberOfSites":0,"hostingEnvironmentId":null,"isSpot":false,"spotExpirationTime":null,"freeOfferExpirationTime":null,"tags":null,"kind":"app","resourceGroup":"clitest.rg000001","reserved":false,"isXenon":false,"hyperV":false,"mdmId":"waws-prod-os1-027_35356","targetWorkerCount":0,"targetWorkerSizeId":0,"provisioningState":"Succeeded","webSiteId":null,"existingServerFarmIds":null,"kubeEnvironmentProfile":null,"zoneRedundant":false},"sku":{"name":"P1v2","tier":"PremiumV2","size":"P1v2","family":"Pv2","capacity":1}}'
299+
string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Web/serverfarms/vnetplan000003","name":"vnetplan000003","type":"Microsoft.Web/serverfarms","kind":"app","location":"japanwest","properties":{"serverFarmId":35106,"name":"vnetplan000003","sku":{"name":"P1v2","tier":"PremiumV2","size":"P1v2","family":"Pv2","capacity":1},"workerSize":"D1","workerSizeId":3,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"D1","currentWorkerSizeId":3,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"clitest.rg000001-JapanWestwebspace","subscription":"9b345226-dedc-4977-baeb-ea15d01b863d","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":0,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"Japan
300+
West","perSiteScaling":false,"elasticScaleEnabled":false,"maximumElasticWorkerCount":1,"numberOfSites":0,"hostingEnvironmentId":null,"isSpot":false,"spotExpirationTime":null,"freeOfferExpirationTime":null,"tags":null,"kind":"app","resourceGroup":"clitest.rg000001","reserved":false,"isXenon":false,"hyperV":false,"mdmId":"waws-prod-os1-013_35106","targetWorkerCount":0,"targetWorkerSizeId":0,"provisioningState":"Succeeded","webSiteId":null,"existingServerFarmIds":null,"kubeEnvironmentProfile":null,"zoneRedundant":false},"sku":{"name":"P1v2","tier":"PremiumV2","size":"P1v2","family":"Pv2","capacity":1}}'
301301
headers:
302302
cache-control:
303303
- no-cache
@@ -306,9 +306,9 @@ interactions:
306306
content-type:
307307
- application/json
308308
date:
309-
- Thu, 24 Feb 2022 19:35:45 GMT
309+
- Wed, 23 Mar 2022 19:15:06 GMT
310310
etag:
311-
- '"1D829B5B68C5860"'
311+
- '"1D83EEA4CAD6E15"'
312312
expires:
313313
- '-1'
314314
pragma:
@@ -326,7 +326,7 @@ interactions:
326326
x-content-type-options:
327327
- nosniff
328328
x-ms-ratelimit-remaining-subscription-writes:
329-
- '1196'
329+
- '1199'
330330
x-powered-by:
331331
- ASP.NET
332332
status:

0 commit comments

Comments
 (0)