Search code examples
azureazure-cloud-services

Add Reserved IP to Azure Cloud Service


I have a cloud service in Azure that I want to give a reserved IP to. I basically followed the steps here: https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-reserved-public-ip/

I performed the "New-AzureReservedIP" cmd, giving an ip name of "MyIPName" and a location of the East US - the same location of my current cloud service.

In my service config, I used the following:

    <NetworkConfiguration>
        <AddressAssignments>
        <ReservedIPs>
        <ReservedIP name="MyIPName"/>
      </ReservedIPs>
    </AddressAssignments>
  </NetworkConfiguration>

When I attempted to deploy my cloud service, I got the error "The Reserved IP MyIPName does not exist. Although I just created it, its not recognizing my aptly named reserved ip address. Thoughts?


Solution

  • This is working now. 2 things happened on my end.

    1. Father Time eventually passed, I think it took some time from the Azure side to recognize that this Reserved IP was created and that my subscription had a reserved IP named MyIPName
    2. When I published my cloud service, I used Visual Studio 2013, and in the publish settings I chose "Advanced Settings", checked the "Deployment update" checkbox, chose Settings next to that checkbox, and chose "If deployment can't be updated, do a full deployment". That allowed the VM instances to be recreated with the Reserved IP Address applied.