• 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/
  • 相关阅读:
    mybatis入门
    windows环境下搭建RocketMQ
    主键-雪花算法
    Springboot杂七杂八
    springboot整合webSocket的使用
    sss
    sss
    sss
    sss
    sss
  • 原文地址:https://www.cnblogs.com/vitas/p/7365903.html
Copyright © 2020-2023  润新知