Azure 中国的 cli tool

2014-04-24 10:02:42 +08:00
 rankjie
我历经艰险成功下载到订阅的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中国区这奇葩玩意儿了...
3702 次点击
所在节点    问与答
4 条回复
little_cup
2014-04-24 13:10:38 +08:00
刚开始弄,也被坑在这儿了……
little_cup
2014-04-24 19:21:39 +08:00
找了世纪互联的客服,邮件回复如下:

这个问题是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
2014-04-24 19:43:16 +08:00
@little_cup python的sdk可以直接指定API节点... 中国区这个实在太坑,Input endpoint限制25个完全没法愉快使用了
little_cup
2014-04-24 20:36:32 +08:00
@rankjie python SDK可以部署vmdepot.msopentech.cn的镜像吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/109800

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX