-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
Cli tell me command successful but nothing is created.
Related command
az account alias create --name "xxx" --billing-scope "xxxxx" --display-name "xxxx" --workload "Production" --debug
Errors
No errors
Issue script & Debug output
cli.knack.cli: Command arguments: ['account', 'alias', 'create', '--name', 'xxx', '--billing-scope', 'xxxxx', '--display-name', 'xxx', '--workload', 'Production', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
Enable VT mode.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0000015E6B7C44A0>, <function OutputProducer.on_global_arguments at 0x0000015E6BD598A0>, <function CLIQuery.on_global_arguments at 0x0000015E6BDAB7E0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'account': ['azure.cli.command_modules.profile', 'azure.cli.command_modules.resource', 'azext_account', 'azext_subscription']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: profile 0.003 2 8
cli.azure.cli.core: resource 0.496 52 234
cli.azure.cli.core: Total (2) 0.499 54 242
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: account 0.005 4 13 C:\Users\FlsITSvc.azure\cliextensions\account
cli.azure.cli.core: subscription 0.009 1 1 C:\Users\FlsITSvc.azure\cliextensions\subscription
cli.azure.cli.core: Total (2) 0.014 5 14
cli.azure.cli.core: Loaded 56 groups, 256 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : account alias create
cli.azure.cli.core: Command table: account alias create
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0000015E6DD1D080>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\FlsITSvc.azure\commands\2025-10-14.16-57-56.account_alias_create.10904.log'.
az_command_data_logger: command args: account alias create --name {} --billing-scope {} --display-name {} --workload {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0000015E6E5965C0>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0000015E6E5BC900>, <function register_cache_arguments..add_cache_arguments at 0x0000015E6E5BCAE0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x0000015E6E5BCB80>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0000015E6BD59940>, <function CLIQuery.handle_query_parameter at 0x0000015E6BDAB880>, <function register_ids_argument..parse_ids_arguments at 0x0000015E6E5BC9A0>]
az_command_data_logger: extension name: account
az_command_data_logger: extension version: 0.2.5
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=SubscriptionClient
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\FlsITSvc\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\FlsITSvc.azure\msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/e4587c95-c761-44b2-a7aa-ac0f9e557104
msal.authority: openid_config("https://login.microsoftonline.com/e4587c95-c761-44b2-a7aa-ac0f9e557104/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/e4587c95-c761-44b2-a7aa-ac0f9e557104/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/e4587c95-c761-44b2-a7aa-ac0f9e557104/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/e4587c95-c761-44b2-a7aa-ac0f9e557104/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/e4587c95-c761-44b2-a7aa-ac0f9e557104/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/e4587c95-c761-44b2-a7aa-ac0f9e557104/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/e4587c95-c761-44b2-a7aa-ac0f9e557104/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/e4587c95-c761-44b2-a7aa-ac0f9e557104/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'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token_info: scopes=('https://management.core.windows.net//.default',), options={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 0c7e9e4f-5e21-4cde-abec-fc55b611ad03
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/providers/Microsoft.Subscription/aliases/Project%20ITDeptCC?api-version=2021-10-01'
cli.azure.cli.core.sdk.policies: Request method: 'PUT'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json'
cli.azure.cli.core.sdk.policies: 'Content-Length': '294'
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '2ad9f49c-a90e-11f0-b4d7-00155d88a801'
cli.azure.cli.core.sdk.policies: 'CommandName': 'account alias create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --billing-scope --display-name --workload --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.78.0 (MSI) azsdk-python-core/1.35.0 Python/3.13.7 (Windows-2022Server-10.0.20348-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: {"properties": {"displayName": "xxx", "workload": "Production", "billingScope": "xxxxx"}}
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "PUT /providers/Microsoft.Subscription/aliases/xxx?api-version=2021-10-01 HTTP/1.1" 200 236
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '236'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'Vary': 'Accept-Encoding'
cli.azure.cli.core.sdk.policies: 'x-ms-operation-identifier': ''
cli.azure.cli.core.sdk.policies: 'MS-CV': 's+4BGjIqZUClmzdCBkGPFQ.0'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '0caebb4a-51d6-465b-ad61-5aea44be891f'
cli.azure.cli.core.sdk.policies: 'Request-Id': '0caebb4a-51d6-465b-ad61-5aea44be891f'
cli.azure.cli.core.sdk.policies: 'x-gsm': '1.0.0.0'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-AspNet-Version': '4.0.30319'
cli.azure.cli.core.sdk.policies: 'X-Powered-By': 'ASP.NET'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-tenant-writes': '199'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '0caebb4a-51d6-465b-ad61-5aea44be891f'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'NORTHEUROPE:20251014T145758Z:0caebb4a-51d6-465b-ad61-5aea44be891f'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: BB7042E24F174CE1B59604D2001B218B Ref B: FRA261110501029 Ref C: 2025-10-14T14:57:56Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Tue, 14 Oct 2025 14:57:57 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"id":"/providers/Microsoft.Subscription/aliases/xxx","name":"xxx","type":"Microsoft.Subscription/aliases","properties":{"subscriptionId":"2800410f-f352-4070-9416-701ceec8257d","provisioningState":"Succeeded"}}
cli.knack.cli: Event: CommandInvoker.OnTransformResult [<function _resource_group_transform at 0x0000015E6E595EE0>, <function x509_from_base64_to_hex_transform at 0x0000015E6E595F80>]
cli.knack.cli: Event: CommandInvoker.OnFilterResult []
{
"id": "/providers/Microsoft.Subscription/aliases/xxx",
"name": "xxx",
"properties": {
"acceptOwnershipState": null,
"acceptOwnershipUrl": null,
"billingScope": null,
"createdTime": null,
"displayName": null,
"managementGroupId": null,
"provisioningState": "Succeeded",
"resellerId": null,
"subscriptionId": "2800410f-f352-4070-9416-701ceec8257d",
"subscriptionOwnerId": null,
"tags": null,
"workload": null
},
"systemData": null,
"type": "Microsoft.Subscription/aliases"
}
cli.knack.cli: Event: Cli.SuccessfulExecute []
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0000015E6DD1D300>]
az_command_data_logger: exit code: 0
cli.main: Command ran in 2.311 seconds (init: 0.268, invoke: 2.043)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3926 in cache file under C:\Users\FlsITSvc.azure\telemetry\20251014165758280
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init.pyc C:\Users\FlsITSvc.azure C:\Users\FlsITSvc.azure\telemetry\20251014165758280"
telemetry.process: Return from creating process 11380
telemetry.main: Finish creating telemetry upload process.
Expected behavior
Write all done but nothing happend
Environment Summary
azure-cli 2.78.0
core 2.78.0
telemetry 1.1.0
Extensions:
account 0.2.5
alias 0.5.2
interactive 1.0.0b1
subscription 1.0.0b2
Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0
Additional context
No response