HDinsight 系列-使用证书登陆中国区Azure

使用azure explorer 插件的时候,登陆默认是globle的azure网站,中国区的azure不能直接使用

可以使用auth文件认证

auth 文件生成
az cloud show -o json --query "{managementURI: endpoints.management, baseURL: endpoints.resourceManager, authURL: endpoints.activeDirectory, graphURL: endpoints.activeDirectoryGraphResourceId}"

 

az account show -o json --query "{subscription: id}"

  

az ad sp create-for-rbac -o json --query "{client: appId, key: password, tenant: tenant}"

  根据上述脚本获取相关信息

然后按下面格式拼接起来

 

client=
key=
tenant=
subscription=
authURL=https\://login.chinacloudapi.cn/
baseURL=https\://management.chinacloudapi.cn/
graphURL=https\://graph.chinacloudapi.cn/
managementURI=https\://management.core.chinacloudapi.cn/

 

posted @ 2017-08-15 16:44  vitas2015  阅读(225)  评论(0编辑  收藏  举报