Skip to content

Device code login in Azure China Cloud returns incorrect link #32926

@shanjin90

Description

@shanjin90

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

Metadata

Metadata

Labels

Accountaz login/accountAuto-AssignAuto assign by botAuto-ResolveAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamLogincustomer-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