Get-AzureSubscription
查询存储帐号
Get-AzureStorageAccount
Set-AzureSubscription –SubscriptionName "Visual Studio Ultimate with MSDN" -CurrentStorageAccount "portalvhdss8h86bz82dml5"
查询ubuntu的镜像版本编号
$imageList = Get-AzureVMImage `
| where {$_.ImageName -like "*Ubuntu*"}
$image=$imageList[0]
快速安装
<div> New-AzureQuickVM -Windows -ServiceName "xxxxxxDNS" -Name "xxxxxVMName" -ImageName "03f55de797f546a1b29d1b8d66be687a__Visual-Studio-14-Professional-CTP-14.0.22129.1-AzureSDK-2.4-WS2012R2" -AdminUsername "用户名" -Password "密码" -Location "East Asia" </div>
注意Linux和windows的参数稍微有点不同