-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: AADSTS500011: The resource principal named https://management.azure.com was not found in the tenant named... #16850
Comments
hi @qwordy could you pls take a look? thanks |
@jiasli, to see if it's related to auth or not. |
@qwordy I didn't log in with managed identity. I loged in interactively or with a service principal. |
@qwordy Hello! Do you have any update for this issue? Thanks. |
@luyitong I haven't reproduced this issue. Can you help do
|
Hi, please see the debug output as below: During handling of the above exception, another exception occurred: Traceback (most recent call last): cli.azure.cli.core.azclierror: AADSTS500011: The resource principal named https://management.azure.com was not found in the tenant named b388b808-0ec9-4a09-a414-a7cbbd8b7e9b. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. az account show:[root@centos75 ~]# az account show |
hi @qwordy, any update on the issue? thanks |
@luyitong, the failed code is updated. Cross-tenant authentication is supported by Azure CLI framework now. Could you download the latest version of Azure CLI and retry? Thanks.
|
Describe the bug
We updated the Azure Cli to the latest version 2.18.0, and changed the Active cloud to China. but the creation of the Image Version from the Shared Image Gallery with az cli (az sig image-version create) fails. Pls help check if this is a bug and fix it.
error:
AADSTS500011: The resource principal named https://management.azure.com was not found in the tenant named xxxxxxxx-0ec9-4a09-a414-a7cbbdxxxxxx. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
To Reproduce
az sig image-version create
-g lytrg
-l chinanorth2
--gallery-name gallerylyt
--gallery-image-definition specializedImgsDef
--gallery-image-version 1.0.3
--managed-image ""/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx-xxxxx/resourceGroups/lytrg/providers/Microsoft.Compute/virtualMachines/xxxxxx"
Environment summary
Azure cli 2.18.0
Additional context
We can do this successfully with lower cli version (e.g. 2.15.1) or Portal in Azure China or Global Azure(cli 2.18.0).
The text was updated successfully, but these errors were encountered: