diff --git a/src/azure-cli/azure/cli/command_modules/rdbms/_helptext_pg.py b/src/azure-cli/azure/cli/command_modules/rdbms/_helptext_pg.py index 8fbe6173df1..f16b0287efc 100644 --- a/src/azure-cli/azure/cli/command_modules/rdbms/_helptext_pg.py +++ b/src/azure-cli/azure/cli/command_modules/rdbms/_helptext_pg.py @@ -757,7 +757,8 @@ --source-server testserver --zone 3 --location testLocation \\ --vnet newVnet --subnet newSubnet \\ --address-prefixes 172.0.0.0/16 --subnet-prefixes 172.0.0.0/24 \\ - --private-dns-zone testDNS.postgres.database.azure.com + --private-dns-zone testDNS.postgres.database.azure.com \\ + --tags "key=value" - name: > Create a read replica 'testreplicaserver' for 'testserver' with public or private access \ in the specified location if available. Since zone is not passed, it will automatically pick up zone in the \ diff --git a/src/azure-cli/azure/cli/command_modules/rdbms/_params.py b/src/azure-cli/azure/cli/command_modules/rdbms/_params.py index 703a4dcb3fd..035d3755bfe 100644 --- a/src/azure-cli/azure/cli/command_modules/rdbms/_params.py +++ b/src/azure-cli/azure/cli/command_modules/rdbms/_params.py @@ -839,6 +839,7 @@ def _flexible_server_params(command_group): c.argument('storage_gb', arg_type=storage_gb_arg_type) c.argument('performance_tier', default=None, arg_type=performance_tier_arg_type) c.argument('yes', arg_type=yes_arg_type) + c.argument('tags', arg_type=tags_type) if command_group == 'mysql': c.argument('public_access', options_list=['--public-access'], arg_type=get_enum_type(['Enabled', 'Disabled']), help='Determines the public access. ') diff --git a/src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py b/src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py index f85e65a3db4..cb27eee1602 100644 --- a/src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py +++ b/src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py @@ -498,7 +498,7 @@ def flexible_replica_create(cmd, client, resource_group_name, source_server, rep subnet_address_prefix=None, private_dns_zone_arguments=None, no_wait=False, byok_identity=None, byok_key=None, sku_name=None, tier=None, - storage_gb=None, performance_tier=None, yes=False): + storage_gb=None, performance_tier=None, yes=False, tags=None): validate_resource_group(resource_group_name) replica_name = replica_name.lower() @@ -554,6 +554,7 @@ def flexible_replica_create(cmd, client, resource_group_name, source_server, rep pg_byok_validator(byok_identity, byok_key) parameters = postgresql_flexibleservers.models.Server( + tags=tags, source_server_resource_id=source_server_id, location=location, availability_zone=zone,