Azure CLI Taking to long to initialize - breaks default AzureCLICredential setup in Identity #29329
Labels
ARM
az resource/group/lock/tag/deployment/policy/managementapp/account management-group
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
When trying to get an accesstoken the command takes longer than 13s to execute resulting in a token timeout error when using Azure.Identity with the AzureCLICredential.
Running
az account get-access-token --output json --resource https://vault.azure.net --tenant REDACTED --debug --verbose
Tells me
cli.__main__: Command ran in 11.756 seconds (init: 10.193, invoke: 1.562)
Using Measure-Command I'm told it takes just over 13s.
Why is it taking 10s to init, what can I do to debug why and solve the issue.
Related command
az account get-access-token --output json --resource https://vault.azure.net --tenant REDACTED --debug --verbose
Errors
No error from the command, but because it takes too long the AzureCLICredential gets a token timeout error
Issue script & Debug output
Expected behavior
Command to execute far faster, no CLI Timeout error
Environment Summary
Additional context
No response
The text was updated successfully, but these errors were encountered: