Skip to content

ERROR: The subscription of 'XXXXX' doesn't exist in cloud 'AzureCloud'. #28329

@rajesh0281

Description

@rajesh0281

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.

Metadata

Metadata

Assignees

Labels

Auto-ResolveAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.Similar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions