Skip to content

Commit b718715

Browse files
committed
Updating adhoc networking to the latest version
1 parent 95ed957 commit b718715

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/azure-cli-core/azure/cli/core/profiles/_shared.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,7 @@ def default_api_version(self):
411411
'vm_default_target_network': '2018-01-01',
412412
'nw_connection_monitor': '2019-06-01',
413413
'container_network': '2018-08-01',
414-
'appservice_network': '2020-04-01',
415-
'appservice_ensure_subnet': '2019-02-01'
414+
'appservice_network': '2021-08-01'
416415
}
417416
}
418417

src/azure-cli/azure/cli/command_modules/appservice/access_restrictions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _ensure_subnet_service_endpoint(cli_ctx, subnet_id):
181181
' skip validation and manually verify service endpoint.')
182182

183183
vnet_client = network_client_factory(cli_ctx, api_version=AD_HOC_API_VERSIONS[ResourceType.MGMT_NETWORK]
184-
['appservice_ensure_subnet'])
184+
['appservice_network'])
185185
subnet_obj = vnet_client.subnets.get(subnet_resource_group, subnet_vnet_name, subnet_name)
186186
subnet_obj.service_endpoints = subnet_obj.service_endpoints or []
187187
service_endpoint_exists = False

0 commit comments

Comments
 (0)