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 662ed9bae72..c52cfbe41b7 100644 --- a/src/azure-cli-core/azure/cli/core/profiles/_shared.py +++ b/src/azure-cli-core/azure/cli/core/profiles/_shared.py @@ -49,6 +49,7 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods MGMT_RESOURCE_SUBSCRIPTIONS = ('azure.mgmt.resource.subscriptions', 'SubscriptionClient') DATA_KEYVAULT = ('azure.keyvault', 'KeyVaultClient') MGMT_EVENTHUB = ('azure.mgmt.eventhub', 'EventHubManagementClient') + MGMT_APPSERVICE = ('azure.mgmt.web', 'WebSiteManagementClient') # the "None" below will stay till a command module fills in the type so "get_mgmt_service_client" # can be provided with "ResourceType.XXX" to initialize the client object. This usually happens # when related commands start to support Multi-API @@ -90,7 +91,6 @@ class ResourceType(Enum): # pylint: disable=too-few-public-methods MGMT_SQLVM = ('azure.mgmt.sqlvirtualmachine', None) MGMT_MANAGEDSERVICES = ('azure.mgmt.managedservices', None) MGMT_NETAPPFILES = ('azure.mgmt.netappfiles', None) - MGMT_APPSERVICE = ('azure.mgmt.web', None) def __init__(self, import_prefix, client_name): """Constructor. @@ -147,7 +147,8 @@ def default_api_version(self): ResourceType.DATA_KEYVAULT: '7.0', ResourceType.DATA_STORAGE: '2018-11-09', ResourceType.DATA_COSMOS_TABLE: '2017-04-17', - ResourceType.MGMT_EVENTHUB: '2017-04-01' + ResourceType.MGMT_EVENTHUB: '2017-04-01', + ResourceType.MGMT_APPSERVICE: '2018-02-01' }, '2019-03-01-hybrid': { ResourceType.MGMT_STORAGE: '2017-10-01', @@ -171,7 +172,11 @@ def default_api_version(self): }), ResourceType.DATA_KEYVAULT: '2016-10-01', ResourceType.DATA_STORAGE: '2017-11-09', - ResourceType.DATA_COSMOS_TABLE: '2017-04-17' + ResourceType.DATA_COSMOS_TABLE: '2017-04-17', + # Full MultiAPI support is not done in AppService, the line below is merely + # to have commands show up in the hybrid profile which happens to have the latest + # API versions + ResourceType.MGMT_APPSERVICE: '2018-02-01' }, '2018-03-01-hybrid': { ResourceType.MGMT_STORAGE: '2016-01-01', diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 336946d45fa..9d8b88eba85 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -11,6 +11,10 @@ Release History job start: - Changed the command from `job start` to `job create`. +**AppService** + +* stack: surface commands under the profile of 2019-03-01-hybrid + **Compute** * vm create: Add --enable-agent configuration.