rankjie
V2EX  ›  问与答

Azure 中国的 cli tool

  •  
  •   rankjie · Apr 24, 2014 · 4276 views
    This topic created in 4494 days ago, the information mentioned may be changed or developed.
    我历经艰险成功下载到订阅的publishsettings后,尝试account import,提示出错:


    -----------
    azure account import /Users/Jeremy/Downloads/免费试用-4-23-2014-credentials-3.publishsettings
    info: Executing command account import
    error: Could not find an environment with management endpoint https://management.core.chinacloudapi.cn. Create one and import this publishSettings file again.
    info: Error information has been recorded to azure.err
    error: account import command failed
    -----------


    真的有点受不了Azure中国区这奇葩玩意儿了...
    Supplement 1  ·  Apr 24, 2014
    不折腾nodejs这个了,用Python版SDK重写了个cli tool,如果有后来人找到这儿,建议放弃nodejs的sdk
    4 replies    1970-01-01 08:00:00 +08:00
    little_cup
        1
    little_cup  
       Apr 24, 2014
    刚开始弄,也被坑在这儿了……
    little_cup
        2
    little_cup  
       Apr 24, 2014
    找了世纪互联的客服,邮件回复如下:

    这个问题是Windows Azure的管理Url引起的,默认情况下是指向的是全球的Windows Azure,
    当您在执行完命令npm install azure-cli –g 后,需要手动修改nodejs azure安装目录下的constants.js的变量信息。
    如果是在Windows 操作系统,这个文件在目录下:C:\Users\username\AppData\Roaming\npm\node_modules\azure-cli\lib\util 。

    修改端点映射,参照下面表格:
    服务类型

    全球服务 URI

    中国服务 URI

    Windows Azure -常规

    *.windows.net

    *.chinacloudapi.cn

    Windows Azure 计算

    *.cloudapp.net

    *.chinacloudapp.cn

    Windows Azure 存储

    *.blob.core.windows.net

    *.queue.core.windows.net

    *.table.core.windows.net

    *.blob.core.chinacloudapi.cn

    *.queue.core.chinacloudapi.cn

    *.table.core.chinacloudapi.cn

    Windows Azure 服务管理

    https://management.core.windows.net

    https://management.core.chinacloudapi.cn/

    SQL 数据库

    *.database.windows.net

    *.database.chinacloudapi.cn

    Windows Azure 管理门户

    http://manage.windowsazure.com

    http://manage.windowsazure.cn

    SQL Azure 数据库管理API

    https://management.database.windows.net



    请参阅关于 SQL Azure 数据库管理 API

    https://management.database..chinacloudapi.cn

    服务总线

    *.servicebus.windows.net

    *.servicebus.chinacloudapi.cn

    ACS

    *.accesscontrol.windows.net

    *.accesscontrol.chinacloudapi.cn

    SQL 数据库导入/导出服务映射端点

    1. 中国东部: https://sh1prod-dacsvc.chinacloudapp.cn/dacwebservice.svc
    2. 中国北部: https://bj1prod-dacsvc.chinacloudapp.cn/dacwebservice.svc



    狂按了一阵cmd+f后publishsettings导入了,可还是无法部署vmdepot.msopentech.cn的镜像,再邮件去问,直接回复我目前解决不了……
    rankjie
        3
    rankjie  
    OP
       Apr 24, 2014
    @little_cup python的sdk可以直接指定API节点... 中国区这个实在太坑,Input endpoint限制25个完全没法愉快使用了
    little_cup
        4
    little_cup  
       Apr 24, 2014
    @rankjie python SDK可以部署vmdepot.msopentech.cn的镜像吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4459 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:07 · PVG 12:07 · LAX 21:07 · JFK 00:07
    ♥ Do have faith in what you're doing.