输入azure login命令:
$ azure login
info: Executing command login
/info: To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code G7NCTQJQA to authenticate.
用浏览器打开 https://aka.ms/devicelogin
,输入验证码之后跳转至 https://login.microsoftonline.com/common/oauth2/deviceauth
,但无法用 azure.cn 的帐户登录
原来要用 azure login -e AzureChinaCloud
命令进行登录
info: Executing command login
\info: To sign in, use a web browser to open the page https://aka.ms/deviceloginchina and enter the code B28X7JQQC to authenticate.
浏览器打开 https://aka.ms/deviceloginchina
输入验证码跳转到这个地址 https://login.chinacloudapi.cn/common/oauth2/deviceauth
,就可以用 azure.cn 的帐户登录了。