Skip to content
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

az login not working for Dogfood: AADSTS50011 #30617

Open
shivamkm07 opened this issue Jan 7, 2025 · 5 comments
Open

az login not working for Dogfood: AADSTS50011 #30617

shivamkm07 opened this issue Jan 7, 2025 · 5 comments
Assignees
Labels
Account az login/account 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. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Milestone

Comments

@shivamkm07
Copy link

Describe the bug

I have created an Azure PPE tenant and I am able to login to Azure Dogfood portal(https://df.onecloud.azure-test.net/) with it. I am also able to login to Visual ARM with same tenant and call APIs etc. But when trying to login using az cli, I am getting below error. I have followed this document to setup az cli: https://armwiki.azurewebsites.net/rp_onboarding/testing/dogfood.html#azcli

Related command

az login

Errors

Image

Issue script & Debug output

Command ran: az login
Error: Mentioned above

Expected behavior

az login works successfully for dogfood

Environment Summary

azure-cli 2.67.0

core 2.67.0
telemetry 1.1.0

Extensions:
k8s-extension 1.6.2

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\shivamkumar.azure\cliextensions'

Python (Windows) 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 02:44:45) [MSC v.1941 32 bit (Intel)]

Additional context

No response

@shivamkm07 shivamkm07 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jan 7, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 7, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Account az login/account labels Jan 7, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

Here are some similar issues that might help you. Please check if they can solve your problem.


Possible solution (Extracted from existing issue, might be incorrect; please verify carefully)

Check if there are any special settings in your environment that might be causing the issue, such as an incorrect endpoint. The endpoint in the log should not be api-dogfood.resources.windows-int.net. Please verify your environment settings.

Reference:

@yonzhan yonzhan added this to the Backlog milestone Jan 7, 2025
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jan 7, 2025
@jiasli
Copy link
Member

jiasli commented Jan 7, 2025

With WAM turned on (az config set core.enable_broker_on_windows=true), az login --allow-no-subscriptions gives me another error AADSTS5000224 (#29082 (comment)):

Image

@shivamkm07, did you provide --tenant {tenant_id} while running az login?

@jiasli
Copy link
Member

jiasli commented Jan 7, 2025

@shivamkm07, Please directly reach me on Teams.

@jiasli jiasli changed the title az login not working for Dogfood az login not working for Dogfood: AADSTS50011 Jan 7, 2025
@jiasli
Copy link
Member

jiasli commented Jan 8, 2025

The error is because ms-appx-web://Microsoft.AAD.BrokerPlugin/04b07795-8ddb-461a-bbee-02f9e1bf7b46 is not registered as one of Azure CLI's redirect URIs in Dogfood/PPE environment.

Workaround
For now, you may follow https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli-interactively#sign-in-with-web-account-manager-wam-on-windows to turn off WAM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Account az login/account 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. Possible-Solution question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue
Projects
None yet
Development

No branches or pull requests

3 participants