$myStorageAccount=""
$myLocation="China East"
$myType="Premium_LRS"
$mySubscriptionName=""
$myServiceName=""
$myVnetName=""
$mySubnetName=""
$myVMName=""
$myAvailabilitySetName=""
$myInstanceSize="Standard_DS4"
$myImageName="55bc2b193643443bb879a78bda516fc8__Windows-Server-2012-R2-20170111-zh.cn-127GB.vhd"
$myAdminUserName=""
$myPassword=""
$myTimeZone=“China Standard Time"
Select-AzureSubscription -SubscriptionName $mySubscriptionName
New-AzureService -Location $myLocation -ServiceName $myServiceName
Set-AzureSubscription -SubscriptionName $mySubscriptionName -CurrentStorageAccountName $myStorageAccount
New-AzureStorageAccount -StorageAccountName $myStorageAccount -Location $myLocation -Type $myType
New-AzureVMConfig -Name $myVMName -InstanceSize $myInstanceSize -AvailabilitySetName $myAvailabilitySetName -ImageName $myImageName | Add-AzureProvisioningConfig -Windows -AdminUsername $myAdminUserName -Password $myPassword -DisableAutomaticUpdates -TimeZone $myTimeZone | Set-AzureSubnet -SubnetNames $mySubnetName | New-AzureVM -ServiceName $myServiceName -VNetName $myVnetName