使用 Windows PowerShell 来管理和开发 windowsazure.cn 账户的特别注意事项
2014-12-18 22:22
513 查看
6月6日,微软面向中国大陆用户开放了Microsoft Azure公众预览版的申请界面。大家可以申请免费的 beta 试用,收到内附邀请码的通知邮件后只需输入激活码即可开始免费试用。具体网址为:
http://windowsazure.cn/zh-cn/pricing/free-trial/
在实际使用这个账号的时候,发现有一些地方需要特别注意。
在使用PowerShell工具中,需要下载发布配置文件(PublishSettingProfile),从而获得设置Windows PowerShell环境的变量。具体方法是登录Microsoft Azure账户的管理门户后,访问下面地址即可获得:https://windows.azure.com/download/publishprofile.aspx
关于这一操作的说明具体请见:
http://msdn.microsoft.com/en-us/library/windowsazure/jj554332.aspx
但是在使用Windowsazure.cn的账号的时候,发现无法通过上述方法得到PublishSettingProfile。
经了解,需要到下述地址来获得:
https://manage.windowsazure.cn/publishsettings/index
下载后进行对比,发现两者文件格式上有些差异。
通过https://windows.azure.com/download/publishprofile.aspx,获得格式样例如下:
而在https://manage.windowsazure.cn/publishsettings/index下载的文件格式为:
同时,建议访问https://github.com/WindowsAzure/azure-sdk-tools,获取最新的Microsoft Azure Powershell,这样在使用命令行Import-AzurePublishSettingsFile的时候,不易发生错误。
http://windowsazure.cn/zh-cn/pricing/free-trial/
在实际使用这个账号的时候,发现有一些地方需要特别注意。
在使用PowerShell工具中,需要下载发布配置文件(PublishSettingProfile),从而获得设置Windows PowerShell环境的变量。具体方法是登录Microsoft Azure账户的管理门户后,访问下面地址即可获得:https://windows.azure.com/download/publishprofile.aspx
关于这一操作的说明具体请见:
http://msdn.microsoft.com/en-us/library/windowsazure/jj554332.aspx
但是在使用Windowsazure.cn的账号的时候,发现无法通过上述方法得到PublishSettingProfile。
经了解,需要到下述地址来获得:
https://manage.windowsazure.cn/publishsettings/index
下载后进行对比,发现两者文件格式上有些差异。
通过https://windows.azure.com/download/publishprofile.aspx,获得格式样例如下:
<?xml version="1.0" encoding="utf-8"?> <PublishData> <PublishProfile PublishMethod="AzureServiceManagementAPI" Url="https://management.core.windows.net/" ManagementCertificate="{Subscription’s management certificate}” <Subscription Id="{Subscription’s ID} " Name="{Subscription’s Name} " /> </PublishProfile> </PublishData>
而在https://manage.windowsazure.cn/publishsettings/index下载的文件格式为:
<?xml version="1.0" encoding="utf-8"?> <PublishData> <PublishProfile SchemaVersion="2.0" PublishMethod="AzureServiceManagementAPI"> <Subscription ServiceManagementUrl="https://management.core.chinacloudapi.cn" Id="{Subscription’s ID}" Name="{Subscription’s Name} " ManagementCertificate="{Subscription’s management certificate}" /> </PublishProfile> </PublishData>
同时,建议访问https://github.com/WindowsAzure/azure-sdk-tools,获取最新的Microsoft Azure Powershell,这样在使用命令行Import-AzurePublishSettingsFile的时候,不易发生错误。
相关文章推荐
- 使用Git 作为项目管理工具开发时的方式和注意事项
- 新秀操作和维护注意事项:Windows关于使用Xshell管理你的云主机
- 无责任Windows Azure SDK .NET开发入门篇三[使用Azure AD 管理用户信息]
- 使用Git 作为项目管理工具开发时的方式和注意事项
- 无责任Windows Azure SDK .NET开发入门篇三[使用Azure AD 管理用户信息--3.3 Details用户详细信息]
- 无责任Windows Azure SDK .NET开发入门篇三[使用Azure AD 管理用户信息--3.5 Delete删除用户]
- 安卓开发使用SVN管理注意事项SO文件不提交问题
- 无责任Windows Azure SDK .NET开发入门篇三[使用Azure AD 管理用户信息--3.1 Index用户列表]
- 无责任Windows Azure SDK .NET开发入门篇三[使用Azure AD 管理用户信息--3.2 Create创建用户]
- 无责任Windows Azure SDK .NET开发入门篇三[使用Azure AD 管理用户信息--3.4 Edit修改用户信息]
- [Windows编程] 使用API函数GetProcAddress的注意事项
- 软件开发之项目需求管理简述及个人项目几点管理实践注意事项[转]
- [开发知识点] 使用JQuery 将DataTable 转化成JSON数据,前端无法处理JSON数据的注意事项
- Windows软件开发中的注意事项
- iPhone开发进阶(11)--- 多线程的使用与注意事项
- [Windows编程] 使用API函数GetProcAddress的注意事项
- pthread 静态编译版本在Windows下使用时的注意事项
- 在Windows Mobile和Wince(Windows Embedded CE)下如何使用.NET Compact Framework开发进程管理程序
- 使用EVM进行项目管理时的注意事项
- 软件开发SVN的使用方法和注意事项