-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
We have a pipeline which use the Azure CLI and we are getting this error
2024-02-07T18:30:40.8154175Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" account set --subscription XXXXXX"
2024-02-07T18:30:41.3868367Z ERROR: The subscription of 'XXXXX' doesn't exist in cloud 'AzureCloud'.
2024-02-07T18:30:41.3903663Z ##[error]Error Code: [1]
2024-02-07T18:30:41.3924083Z ##[error]Error: Error in setting up subscription
2024-02-07T18:30:41.4027569Z ##[error]Script failed with error: ERROR: The subscription of 'XXXX' doesn't exist in cloud 'AzureCloud'
Related command
get-access-token --resource="XXXX"
Errors
The subscription of 'XXXXX' doesn't exist in cloud 'AzureCloud'.
Issue script & Debug output
The subscription of 'XXXXX' doesn't exist in cloud 'AzureCloud'.
Expected behavior
We would have got the token without any error.
Environment Summary
2.230.0
Additional context
we are using 2.230.0 azure CLI version.