$mySubscriptionName=""
Select-AzureSubscription -SubscriptionName $mySubscriptionName
$myServiceName=""
$myVMName=""
$myReservedIPName=""
$myLocation="China North"
$myIPAddress=""
New-AzureReservedIP -ServiceName $myServiceName -ReservedIPName $myReservedIPName -Location $myLocation
# Get-AzureReservedIP -ReservedIPName $myReservedIPName
$myVM = Get-AzureVM -ServiceName $myServiceName -Name $myVMName
Set-AzureStaticVNetIP -VM $myVM -IPAddress $myIPAddress | Update-AzureVM
# Get-AzureStaticVNetIP -VM $myVM
# Remove-AzureStaticVNetIP -VM $myVM | Update-AzureVM
# Remove-AzureReservedIPAssociation –§CReservedIPName $myReservedIPName -ServiceName $myServiceName