首页 > 其他 > 详细

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

时间:2017-08-15 17:06:33      阅读:299      评论:0      收藏:0      [点我收藏+]

使用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/

 

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

原文:http://www.cnblogs.com/vitas/p/7365903.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!