Skip to content

AttributeError: 'Server' object has no attribute 'cluster' #31974

@Alwin-Stockinger

Description

@Alwin-Stockinger

Describe the bug

Using the cli to start a migration fails with an error AttributeError: 'Server' object has no attribute 'cluster'

Related command

az postgres flexible-server migration create --properties "config.json" --subscription "xxx" --resource-group "xxx" --name "xxx" --migration-name "migration1"

Errors

The command failed with an unexpected error. Here is the traceback:
'Server' object has no attribute 'cluster'
Traceback (most recent call last):
  File "/nix/store/nryrqg7vlyljzz8brqxdyfqk01wa6sc8-python3.13-knack-0.12.0/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
  File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 666, in execute
    raise ex
  File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 734, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
                   ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 703, in _run_job
    result = cmd_copy(params)
  File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/__init__.py", line 336, in __call__
    return self.handler(*args, **kwargs)
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
    return op(**command_args)
  File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py", line 1326, in migration_create_func
    validate_citus_cluster(cmd, resource_group_name, server_name)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/validators.py", line 859, in validate_citus_cluster
    if is_citus_cluster(cmd, resource_group_name, server_name):
       ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/validators.py", line 855, in is_citus_cluster
    return server.cluster and server.cluster.cluster_size > 0
           ^^^^^^^^^^^^^^
AttributeError: 'Server' object has no attribute 'cluster'

Issue script & Debug output

DEBUG: cli.knack.cli: Command arguments: ['postgres', 'flexible-server', 'migration', 'create', '--properties', 'config.json', '--subscription', 'xxx', '--resource-group', 'xxx', '--name', 'xxx', '--migration-name', 'migration1', '--debug']
DEBUG: cli.knack.cli: init debug log:
Cannot enable color.
DEBUG: cli.knack.cli: Event: Cli.PreExecute []
DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x100e62f20>, <function OutputProducer.on_global_arguments at 0x1010549a0>, <function CLIQuery.on_global_arguments at 0x10106ede0>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
DEBUG: cli.azure.cli.core: Command index version or cloud profile is invalid or doesn't match the current command.
DEBUG: cli.azure.cli.core._session: Skipping update of file /nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/etc/azure/commandIndex.json due to immutable directory.
DEBUG: cli.azure.cli.core._session: Skipping update of file /nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/etc/azure/commandIndex.json due to immutable directory.
DEBUG: cli.azure.cli.core._session: Skipping update of file /nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/etc/azure/commandIndex.json due to immutable directory.
DEBUG: cli.azure.cli.core: Command index has been invalidated.
DEBUG: cli.azure.cli.core: No module found from index for '['postgres', 'flexible-server', 'migration', 'create', '--properties', 'config.json', '--subscription', 'xxx', '--resource-group', 'xxx', '--name', 'xxx', '--migration-name', 'migration1', '--debug']'
DEBUG: cli.azure.cli.core: Loading all modules and extensions
DEBUG: cli.azure.cli.core: Discovered command modules: ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'aro', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'compute_recommender', 'computefleet', 'config', 'configure', 'consumption', 'container', 'containerapp', 'cosmosdb', 'databoxedge', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'identity', 'interactive', 'iot', 'keyvault', 'lab', 'managedservices', 'maps', 'marketplaceordering', 'monitor', 'mysql', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'resource', 'role', 'search', 'security', 'servicebus', 'serviceconnector', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'synapse', 'util', 'vm']
DEBUG: cli.azure.cli.core: Loading command modules:
DEBUG: cli.azure.cli.core: Name Load Time Groups Commands
DEBUG: cli.azure.cli.core: acr 0.122 36 149
DEBUG: cli.azure.cli.core: acs 0.029 15 79
DEBUG: cli.azure.cli.core: advisor 0.001 3 6
DEBUG: cli.azure.cli.core: ams 0.003 22 100
DEBUG: cli.azure.cli.core: apim 0.004 14 69
DEBUG: cli.azure.cli.core: appconfig 0.002 9 47
DEBUG: cli.azure.cli.core: appservice 0.017 80 277
DEBUG: cli.azure.cli.core: aro 0.010 1 10
DEBUG: cli.azure.cli.core: backup 0.003 16 60
DEBUG: cli.azure.cli.core: batch 0.024 32 96
DEBUG: cli.azure.cli.core: batchai 0.003 10 30
DEBUG: cli.azure.cli.core: billing 0.016 20 53
DEBUG: cli.azure.cli.core: botservice 0.003 12 42
/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/aaz/_command.py:132: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior
if self.AZ_PREVIEW_INFO:
/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/aaz/_command.py:133: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior
self.preview_info = self.AZ_PREVIEW_INFO(cli_ctx=self.cli_ctx)
DEBUG: cli.azure.cli.core: cdn 0.124 8 50
DEBUG: cli.azure.cli.core: cloud 0.001 1 7
DEBUG: cli.azure.cli.core: cognitiveservices 0.002 10 33
/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/aaz/_command.py:50: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior
if self.AZ_PREVIEW_INFO:
/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/aaz/_command.py:51: FutureWarning: functools.partial will be a method descriptor in future Python versions; wrap it in staticmethod() if you want to preserve the old behavior
self.group_kwargs['preview_info'] = self.AZ_PREVIEW_INFO(cli_ctx=self.cli_ctx)
DEBUG: cli.azure.cli.core: compute_recommender 0.003 1 1
DEBUG: cli.azure.cli.core: computefleet 0.007 1 1
DEBUG: cli.azure.cli.core: config 0.001 2 7
DEBUG: cli.azure.cli.core: configure 0.001 2 5
DEBUG: cli.azure.cli.core: consumption 0.014 8 9
DEBUG: cli.azure.cli.core: container 0.007 2 17
DEBUG: cli.azure.cli.core: containerapp 0.075 37 123
DEBUG: cli.azure.cli.core: cosmosdb 0.008 58 200
DEBUG: cli.azure.cli.core: databoxedge 0.006 5 28
DEBUG: cli.azure.cli.core: dls 0.002 6 36
DEBUG: cli.azure.cli.core: dms 0.002 3 22
DEBUG: cli.azure.cli.core: eventgrid 0.002 25 96
DEBUG: cli.azure.cli.core: eventhubs 0.012 14 21
DEBUG: cli.azure.cli.core: extension 0.001 1 7
DEBUG: cli.azure.cli.core: feedback 0.001 1 2
DEBUG: cli.azure.cli.core: find 0.001 1 1
DEBUG: cli.azure.cli.core: hdinsight 0.006 9 42
DEBUG: cli.azure.cli.core: identity 0.006 2 7
DEBUG: cli.azure.cli.core: interactive 0.000 1 1
DEBUG: cli.azure.cli.core: iot 0.055 19 82
DEBUG: cli.azure.cli.core: keyvault 0.004 20 114
DEBUG: cli.azure.cli.core: lab 0.024 9 30
DEBUG: cli.azure.cli.core: managedservices 0.008 3 8
DEBUG: cli.azure.cli.core: maps 0.001 5 13
DEBUG: cli.azure.cli.core: marketplaceordering 0.003 1 2
DEBUG: cli.azure.cli.core: monitor 0.328 17 64
DEBUG: cli.azure.cli.core: mysql 0.044 16 56
DEBUG: cli.azure.cli.core: netappfiles 0.025 8 15
DEBUG: cli.azure.cli.core: network 0.078 106 351
DEBUG: cli.azure.cli.core: policyinsights 0.010 9 17
DEBUG: cli.azure.cli.core: privatedns 0.015 14 60
DEBUG: cli.azure.cli.core: profile 0.001 2 8
DEBUG: cli.azure.cli.core: rdbms 0.051 52 217
DEBUG: cli.azure.cli.core: redis 0.002 7 38
DEBUG: cli.azure.cli.core: relay 0.019 7 8
DEBUG: cli.azure.cli.core: resource 0.009 52 232
DEBUG: cli.azure.cli.core: role 0.001 17 62
DEBUG: cli.azure.cli.core: search 0.006 7 19
DEBUG: cli.azure.cli.core: security 0.007 48 98
DEBUG: cli.azure.cli.core: servicebus 0.007 13 16
DEBUG: cli.azure.cli.core: serviceconnector 0.012 20 331
DEBUG: cli.azure.cli.core: servicefabric 0.010 27 80
DEBUG: cli.azure.cli.core: signalr 0.002 10 42
DEBUG: cli.azure.cli.core: sql 0.008 56 215
DEBUG: cli.azure.cli.core: sqlvm 0.022 4 20
DEBUG: cli.azure.cli.core: storage 0.023 60 275
DEBUG: cli.azure.cli.core: synapse 0.006 54 246
DEBUG: cli.azure.cli.core: util 0.001 3 7
DEBUG: cli.azure.cli.core: vm 0.075 59 213
DEBUG: cli.azure.cli.core: Total (65) 1.377 1193 4673
DEBUG: cli.azure.cli.core: Loaded 1179 groups, 4673 commands.
DEBUG: cli.azure.cli.core._session: Skipping update of file /nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/etc/azure/commandIndex.json due to immutable directory.
DEBUG: cli.azure.cli.core._session: Skipping update of file /nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/etc/azure/commandIndex.json due to immutable directory.
DEBUG: cli.azure.cli.core._session: Skipping update of file /nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/etc/azure/commandIndex.json due to immutable directory.
DEBUG: cli.azure.cli.core: Updated command index in 0.001 seconds.
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x102d19080>]
DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/xxx/.azure/commands/2025-08-21.07-59-02.postgres_flexible-server_migration_create.76308.log'.
INFO: az_command_data_logger: command args: postgres flexible-server migration create --properties {} --subscription {} --resource-group {} --name {} --migration-name {} --debug
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x102d52fc0>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x102d69300>, <function register_cache_arguments..add_cache_arguments at 0x102d69440>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x102d694e0>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x1069a4540>]
DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x101054a40>, <function CLIQuery.handle_query_parameter at 0x10106ee80>, <function register_ids_argument..parse_ids_arguments at 0x102d693a0>]
DEBUG: cli.azure.cli.core.commands.client_factory: Getting management service client client_type=PostgreSQLManagementClient
DEBUG: cli.azure.cli.core.auth.persistence: build_persistence: location='/Users/xxx/.azure/msal_token_cache.json', encrypt=False
DEBUG: cli.azure.cli.core.auth.binary_cache: load: /Users/xxx/.azure/msal_http_cache.bin
DEBUG: urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
DEBUG: msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34
DEBUG: msal.authority: openid_config("https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
DEBUG: msal.application: Broker enabled? None
DEBUG: cli.azure.cli.core.commands.client_factory: Getting management service client client_type=PostgreSQLManagementClient
DEBUG: urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
DEBUG: msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34
DEBUG: msal.authority: openid_config("https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/9ce76d42-5ecb-4d8f-939b-a462ad28cf34/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
DEBUG: msal.application: Broker enabled? None
DEBUG: cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token_info: scopes=('https://management.core.windows.net//.default',), options={}
DEBUG: cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
DEBUG: msal.application: Cache hit an AT
DEBUG: msal.telemetry: Generate or reuse correlation_id: c5783083-d9d8-48e9-acfe-1291cf1b915e
DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/3d1204f0-3ee7-4884-a039-4bcaa9eca23f/resourceGroups/xxx/providers/Microsoft.DBforPostgreSQL/flexibleServers/xxx?api-version=2024-08-01'
DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'GET'
DEBUG: cli.azure.cli.core.sdk.policies: Request headers:
DEBUG: cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'ef559ef8-7e53-11f0-943e-f2c46b6612e9'
DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'postgres flexible-server migration create'
DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--properties --subscription --resource-group --name --migration-name --debug'
DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.75.0 (PIP) azsdk-python-core/1.32.0 Python/3.13.5 (macOS-15.5-arm64-arm-64bit-Mach-O)'
DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
DEBUG: cli.azure.cli.core.sdk.policies: Request body:
DEBUG: cli.azure.cli.core.sdk.policies: This request has no body
DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
DEBUG: urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/3d1204f0-3ee7-4884-a039-4bcaa9eca23f/resourceGroups/xxx/providers/Microsoft.DBforPostgreSQL/flexibleServers/xxx?api-version=2024-08-01 HTTP/1.1" 200 1948
DEBUG: cli.azure.cli.core.sdk.policies: Response status: 200
DEBUG: cli.azure.cli.core.sdk.policies: Response headers:
DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Length': '1948'
DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-1'
DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '84bc314d-a1ac-4037-b8c0-9b5d2d925b97'
DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '249'
DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-reads': '3749'
DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '5d088045-a17b-4487-933f-27f4fafd4a8e'
DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'WESTEUROPE:20250821T055903Z:5d088045-a17b-4487-933f-27f4fafd4a8e'
DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
DEBUG: cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
DEBUG: cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: E0080B4A20A74EB9AD54AFCC7C32FF88 Ref B: FRA231050412027 Ref C: 2025-08-21T05:59:02Z'
DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Thu, 21 Aug 2025 05:59:02 GMT'
DEBUG: cli.azure.cli.core.sdk.policies: Response content:
DEBUG: cli.azure.cli.core.sdk.policies: {"sku":{"name":"Standard_D2ds_v5","tier":"GeneralPurpose"},"systemData":{"createdAt":"2025-05-09T08:59:22.3698075Z"},"properties":{"replica":{"role":"Primary","capacity":5},"storage":{"type":"","iops":500,"tier":"P10","storageSizeGB":128,"autoGrow":"Enabled"},"network":{"publicNetworkAccess":"Disabled","delegatedSubnetResourceId":"/subscriptions/3d1204f0-3ee7-4884-a039-4bcaa9eca23f/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx/subnets/snet-pgflex","privateDnsZoneArmResourceId":"/subscriptions/db640e2d-57b9-44fb-a684-2fa23bdf7344/resourceGroups/rg-platform-shared-network/providers/Microsoft.Network/privateDnsZones/privatelink.postgres.database.azure.com"},"dataEncryption":{"type":"SystemManaged"},"authConfig":{"activeDirectoryAuth":"Disabled","passwordAuth":"Enabled"},"fullyQualifiedDomainName":"xxx.postgres.database.azure.com","version":"15","minorVersion":"13","administratorLogin":"dba","state":"Ready","availabilityZone":"2","backup":{"backupRetentionDays":14,"geoRedundantBackup":"Disabled","earliestRestoreDate":"2025-08-07T10:15:23.9342697+00:00"},"highAvailability":{"mode":"Disabled","state":"NotEnabled"},"maintenanceWindow":{"customWindow":"Disabled","dayOfWeek":0,"startHour":0,"startMinute":0},"replicationRole":"Primary","replicaCapacity":5},"location":"Germany West Central","tags":{"Type":"Dev"},"id":"/subscriptions/3d1204f0-3ee7-4884-a039-4bcaa9eca23f/resourceGroups/xxx/providers/Microsoft.DBforPostgreSQL/flexibleServers/xxx","name":"xxx","type":"Microsoft.DBforPostgreSQL/flexibleServers"}
DEBUG: cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/nix/store/nryrqg7vlyljzz8brqxdyfqk01wa6sc8-python3.13-knack-0.12.0/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py", line 1326, in migration_create_func
validate_citus_cluster(cmd, resource_group_name, server_name)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/validators.py", line 859, in validate_citus_cluster
if is_citus_cluster(cmd, resource_group_name, server_name):
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/validators.py", line 855, in is_citus_cluster
return server.cluster and server.cluster.cluster_size > 0
^^^^^^^^^^^^^^
AttributeError: 'Server' object has no attribute 'cluster'

ERROR: cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
ERROR: az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
ERROR: cli.azure.cli.core.azclierror: 'Server' object has no attribute 'cluster'
Traceback (most recent call last):
File "/nix/store/nryrqg7vlyljzz8brqxdyfqk01wa6sc8-python3.13-knack-0.12.0/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py", line 1326, in migration_create_func
validate_citus_cluster(cmd, resource_group_name, server_name)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/validators.py", line 859, in validate_citus_cluster
if is_citus_cluster(cmd, resource_group_name, server_name):
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/validators.py", line 855, in is_citus_cluster
return server.cluster and server.cluster.cluster_size > 0
^^^^^^^^^^^^^^
AttributeError: 'Server' object has no attribute 'cluster'
ERROR: az_command_data_logger: 'Server' object has no attribute 'cluster'
Traceback (most recent call last):
File "/nix/store/nryrqg7vlyljzz8brqxdyfqk01wa6sc8-python3.13-knack-0.12.0/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 666, in execute
raise ex
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 703, in _run_job
result = cmd_copy(params)
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 336, in call
return self.handler(*args, **kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/nix/store/9misx6nwrpccj86zn7bvcjyc9jngllyv-python3.13-azure-cli-core-2.75.0/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 120, in handler
return op(**command_args)
File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/flexible_server_custom_postgres.py", line 1326, in migration_create_func
validate_citus_cluster(cmd, resource_group_name, server_name)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/validators.py", line 859, in validate_citus_cluster
if is_citus_cluster(cmd, resource_group_name, server_name):
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/by3yg8n01c13drqn1ava74jz13qrh19h-python3.13-azure-cli-2.75.0/lib/python3.13/site-packages/azure/cli/command_modules/rdbms/validators.py", line 855, in is_citus_cluster
return server.cluster and server.cluster.cluster_size > 0
^^^^^^^^^^^^^^
AttributeError: 'Server' object has no attribute 'cluster'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
DEBUG: cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x102d19300>]
INFO: az_command_data_logger: exit code: 1
INFO: cli.main: Command ran in 2.379 seconds (init: 0.302, invoke: 2.077)
INFO: telemetry.main: Begin splitting cli events and extra events, total events: 1
INFO: telemetry.client: Accumulated 0 events. Flush the clients.
INFO: telemetry.main: Finish splitting cli events and extra events, cli events: 1
INFO: telemetry.save: Save telemetry record of length 8371 in cache file under /Users/xxx/.azure/telemetry/20250821075903265
INFO: telemetry.main: Begin creating telemetry upload process.
INFO: telemetry.process: Creating upload process: "/nix/store/v72ywdz0dd2d6sb3knymx9ww8r6pcqba-python3-3.13.5/bin/python3.13 /nix/store/2yz9zf485fgx3rg38s1kqlzskjkmbkgv-python3.13-azure-cli-telemetry-1.1.0/lib/python3.13/site-packages/azure/cli/telemetry/init.py /Users/xxx/.azure /Users/xxx-stockinger/.azure/telemetry/20250821075903265"
INFO: telemetry.process: Return from creating process 76324
INFO: telemetry.main: Finish creating telemetry upload process.

Expected behavior

Not failing

Environment Summary

azure-cli 2.75.0 *

core 2.75.0 *
telemetry 1.1.0

Dependencies:
msal 1.32.3
azure-mgmt-resource 23.4.0

Python location '/nix/store/v72ywdz0dd2d6sb3knymx9ww8r6pcqba-python3-3.13.5/bin/python3.13'
Config directory '/Users/xxx/.azure'
Extensions directory '/Users/xxx/.azure/cliextensions'

Python (Darwin) 3.13.5 (main, Jun 11 2025, 15:36:57) [Clang 19.1.7 ]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botPostgreSQLService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions