今天尝试用Windows Azure PowerShell来管理Windows Azure (
一元试用), 遇到连接订阅的技术问题。
索性直接打了世纪互联的技术支持电话。接电话的美眉和提供技术支持的哥们相当热情,很快解决了问题,赞一个。
记录如下:
问题: 一元试用的用户能否使用Azure PowerShell来管理Windows Azure中的资源?
答案:可以。需要下载账户中的一个订阅的“publish settings file”,就是你一元使用的订阅(1RMB Trial Offer)。
PS C:\> Get-AzurePublishSettingsFile -environment AzureChinaCloud
# 自动打开浏览器,输入用户名和密码后,可下载1RMB Trial Offer-mm-dd-yyyy-credentials.publishsettings
# 保存此文件,用于在下一步导入
PS C:\> Import-AzurePublishSettingsFile "C:\1RMB Trial Offer-10-3-2014-credentials.publishsettings"
VERBOSE: Setting: Microsoft.WindowsAzure.Commands.Common.Models.AzureSubscription as the default and current
subscription. To view other subscriptions use Get-AzureSubscription
Id : 00c439da-8447-433d-8b07-f731c07dc970
Name : 1RMB Trial Offer
Environment : AzureChinaCloud
Account : 926AB2E7F4328EE3E1D365F524145BDB31D52191
Properties : {[SupportedModes, AzureServiceManagement], [Default, True]}
# 到此时,就可以使用Azure PowerShell管理Windows Azure中资源了
PS C:\> Get-AzureVM
ServiceName Name Status
----------- ---- ------
vmname01 vmname01 ReadyRole
vmname02 vmname02 ReadyRole
后记:发现CSDN上也有文章讨论这问题
http://blog.csdn.net/azure_nonofficial/article/details/38095459
索性直接打了世纪互联的技术支持电话。接电话的美眉和提供技术支持的哥们相当热情,很快解决了问题,赞一个。
记录如下:
问题: 一元试用的用户能否使用Azure PowerShell来管理Windows Azure中的资源?
答案:可以。需要下载账户中的一个订阅的“publish settings file”,就是你一元使用的订阅(1RMB Trial Offer)。
PS C:\> Get-AzurePublishSettingsFile -environment AzureChinaCloud
# 自动打开浏览器,输入用户名和密码后,可下载1RMB Trial Offer-mm-dd-yyyy-credentials.publishsettings
# 保存此文件,用于在下一步导入
PS C:\> Import-AzurePublishSettingsFile "C:\1RMB Trial Offer-10-3-2014-credentials.publishsettings"
VERBOSE: Setting: Microsoft.WindowsAzure.Commands.Common.Models.AzureSubscription as the default and current
subscription. To view other subscriptions use Get-AzureSubscription
Id : 00c439da-8447-433d-8b07-f731c07dc970
Name : 1RMB Trial Offer
Environment : AzureChinaCloud
Account : 926AB2E7F4328EE3E1D365F524145BDB31D52191
Properties : {[SupportedModes, AzureServiceManagement], [Default, True]}
# 到此时,就可以使用Azure PowerShell管理Windows Azure中资源了
PS C:\> Get-AzureVM
ServiceName Name Status
----------- ---- ------
vmname01 vmname01 ReadyRole
vmname02 vmname02 ReadyRole
后记:发现CSDN上也有文章讨论这问题
http://blog.csdn.net/azure_nonofficial/article/details/38095459