$mySubscriptionName=""
Select-AzureSubscription -SubscriptionName $mySubscriptionName
$myStorageAccount=""
$myServiceName=""
$myVMName=""
$myVM = Get-AzureVM -ServiceName $myServiceName -Name $myVMName
$myHostCaching="ReadOnly"
For ( $i=1; $i -lt 2; $i++) {
$myLunNo = $i
$myPath = "http://" + $myStorageAccount + ".blob.core.chinacloudapi.cn/vhds/" + "myDataDisk_" + $myLunNo + "_PIO.vhd"
$myLabel = "Disk " + $myLunNo
Add-AzureDataDisk -CreateNew -MediaLocation $myPath -DiskSizeInGB 1000 -DiskLabel $myLabel -LUN $myLunNo -HostCaching $myHostCaching -VM $myVM
}
$myVM | Update-AzureVm