您的位置:首页 > 其它

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

2017-08-15 16:44 716 查看
使用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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: