If your virtual machines were created on a new portal, you need to switch to the resource manager model, New-AzureReservedIP will be used only for the classic portal services, therefore, it suggested the error ResourceNotFound: No deployments were found .
There are no AzureReservedIP cmdlets in Azure RM. In the new portal, the IP address is associated with the network interface. If you want your VMip to be static, run the following command:
$nic=Get-AzureRmNetworkInterface -ResourceGroupName JohTest -Name johtestvm250 $nic.IpConfigurations[0].PrivateIpAllocationMethod="Static" $nic.IpConfigurations[0].PrivateIpAddress = "10.2.0.4" Set-AzureRmNetworkInterface -NetworkInterface $nic
If you do not know the network interface in your RG, run the command to see:
Get-AzureRmNetworkInterface -ResourceGroupName JohTest
More info here
source share