Skip to content

Commit 77e2228

Browse files
authored
[App Service] az functionapp create: Add the --domain-name-scope support (#32110)
1 parent 9e831a6 commit 77e2228

File tree

4 files changed

+1611
-2
lines changed

4 files changed

+1611
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,7 @@ def load_arguments(self, _):
890890
help='Enable zone redundancy for high availability. Applies to Flex Consumption SKU only.')
891891
c.argument('configure_networking_later', options_list=['--configure-networking-later', '--cnl'], arg_type=get_three_state_flag(),
892892
help='Use this option if you want to configure networking later for an app using network-restricted storage.')
893+
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'])
893894

894895
with self.argument_context('functionapp deployment config set') as c:
895896
c.argument('deployment_storage_name', options_list=['--deployment-storage-name', '--dsn'], help="The deployment storage account name.")

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6097,7 +6097,8 @@ def create_functionapp(cmd, resource_group_name, name, storage_account, plan=Non
60976097
always_ready_instances=None, maximum_instance_count=None, instance_memory=None,
60986098
flexconsumption_location=None, deployment_storage_name=None,
60996099
deployment_storage_container_name=None, deployment_storage_auth_type=None,
6100-
deployment_storage_auth_value=None, zone_redundant=False, configure_networking_later=None):
6100+
deployment_storage_auth_value=None, zone_redundant=False, configure_networking_later=None,
6101+
auto_generated_domain_name_label_scope=None):
61016102
# pylint: disable=too-many-statements, too-many-branches
61026103

61036104
if functions_version is None and flexconsumption_location is None:
@@ -6229,7 +6230,8 @@ def create_functionapp(cmd, resource_group_name, name, storage_account, plan=Non
62296230
site_config.http20_proxy_flag = None
62306231

62316232
functionapp_def = Site(location=None, site_config=site_config, tags=tags,
6232-
virtual_network_subnet_id=subnet_resource_id, https_only=https_only)
6233+
virtual_network_subnet_id=subnet_resource_id, https_only=https_only,
6234+
auto_generated_domain_name_label_scope=auto_generated_domain_name_label_scope)
62336235

62346236
plan_info = None
62356237
if runtime is not None:

0 commit comments

Comments
 (0)