-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Device code login in Azure China Cloud returns incorrect link #32926
Copy link
Copy link
Open
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamLoginact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamLoginact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
az cloud set --name AzureChinaCloud
az login --use-device-code
To sign in, use a web browser to open the page https://login.microsoftonline.cn/device and enter the code ECMGW7WGV to authenticate.
the returned url https://login.microsoftonline.cn/device is incorrect, the correct url should be https://login.partner.microsoftonline.cn/device
Related command
az cloud set --name AzureChinaCloud
az login --use-device-code
Errors
https://login.microsoftonline.cn/device is an incorrect url
Issue script & Debug output
na
Expected behavior
return https://login.partner.microsoftonline.cn/device or https://microsoft.com/deviceloginchina
Environment Summary
azure-cli 2.76.0 *
core 2.76.0 *
telemetry 1.1.0
Dependencies:
msal 1.33.0b1
azure-mgmt-resource 23.3.0
Additional context
No response