By default, Microsoft Azure doesn't reserve any public IP address for your cloud service. The public IP address which is linked to your cloud service or virtual machine will be changed when the resources are shut down or deallocated.
Microsoft Azure provided reserve the IP address for your cloud service. By default, all Azure subscriptions are authorized to use 20 reserved IPs but we can submit a request to maximize to 100 IPs.
In this part, I'm going to reserve a public IP address for Azure cloud service.
Prerequisites
In this part, I'm going to reserve a public IP address for Azure cloud service.
Prerequisites
- Azure PowerShell module on your computer
We can perform Get-AzureReservedIP to check reserved public IP addressed on your Azure subscription.
Remark: Make sure the Azure Cloud Service is running. If not, you get the following error message.
The vip for deployment <deployemnt Name> in service <Cloud service name> specified for reserved ip <Reserved IP Name> is not set. Ensure that the deployment is Running.
New-AzureReservedIP -ReservedIPName <Reserved IP Name> -Location <Location>
New-AzureVMConfig -Name <VM Name> -ImageName (Get-AzureVMImage | Where {$_.label -match 'Windows Server 2012 R2 datacenter' -and $_.PublishedDate -eq '5/22/2015 3:00:00 PM'}).ImageName -InstanceSize Small | Add-AzureProvisioningConfig -Windows -AdminUsername <Admin user name> -Password <password> | New-AzureVM -ServiceName <Cloud Service Name> -ReservedIPName <Reserved IP Name> -Location <Location>
For More information, please read Reserved IP Overview
This posting is provided “AS IS” with no warranties, and confers no rights!
No comments:
Post a Comment