|
12 | 12 | get_three_state_flag, get_enum_type, tags_type) |
13 | 13 | from azure.cli.core.local_context import LocalContextAttribute, LocalContextAction |
14 | 14 | from azure.cli.command_modules.appservice._appservice_utils import MSI_LOCAL_ID |
15 | | -from azure.mgmt.web.models import DatabaseType, ConnectionStringType, BuiltInAuthenticationProvider, AzureStorageType |
| 15 | +from azure.mgmt.web.models import DatabaseType, ConnectionStringType, BuiltInAuthenticationProvider, AzureStorageType, AutoGeneratedDomainNameLabelScope |
16 | 16 |
|
17 | 17 | from ._completers import get_hostname_completion_list |
18 | 18 | from ._constants import (FUNCTIONS_VERSIONS, LOGICAPPS_NODE_RUNTIME_VERSIONS, WINDOWS_OS_NAME, LINUX_OS_NAME, |
@@ -166,7 +166,7 @@ def load_arguments(self, _): |
166 | 166 | c.argument('acr_identity', help='Accept system or user assigned identity which will be set for acr image pull. ' |
167 | 167 | 'Use \'[system]\' to refer system assigned identity, or a resource id to refer user assigned identity.') |
168 | 168 | c.argument('basic_auth', help='Enable or disable basic auth for both SCM and FTP Basic Auth Publishing Credentials. Defaults to Enabled if not specified. See https://aka.ms/app-service-basic-auth to learn more.', arg_type=get_enum_type(BASIC_AUTH_TYPES)) |
169 | | - c.argument('auto_generated_domain_name_label_scope', options_list=['--domain-name-scope'], help="Specify the scope of uniqueness for the default hostname during resource creation.", choices=['TenantReuse', 'SubscriptionReuse', 'ResourceGroupReuse', 'NoReuse']) |
| 169 | + c.argument('auto_generated_domain_name_label_scope', options_list=['--domain-name-scope'], help="Specify the scope of uniqueness for the default hostname during resource creation.", arg_type=get_enum_type(AutoGeneratedDomainNameLabelScope)) |
170 | 170 | c.ignore('language') |
171 | 171 | c.ignore('using_webapp_up') |
172 | 172 |
|
|
0 commit comments