title: Reserved IP address for Azure Cloud Service not working
body: <p>I am trying to assign a reserved IP address to a cloud service. I need this feature to restrict the IP access to the database (and NO i do not want to allow all azure nodes this access), and I also have to access external API's for which I need to have a static IP.</p>
  
  <p>So far I have created a cloud service solution and added a MVC Web Role to the solution. Using the Azure Powershell, i have obtained an IP address (success verified by using GetAzureReservedIP) and have updated the configuration file ServiceConfiguration.cloud.cscfg. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ServiceConfiguration serviceName="TestApp" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="4" osVersion="*" schemaVersion="2014-06.2.4"&gt;
    &lt;Role name="MvcWebRole"&gt;
      &lt;Instances count="1" /&gt;
      &lt;ConfigurationSettings&gt;
        &lt;Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=XYZ;AccountKey=XYZ" /&gt;
      &lt;/ConfigurationSettings&gt;
    &lt;/Role&gt;
    &lt;NetworkConfiguration&gt;
      &lt;AddressAssignments&gt;
        &lt;ReservedIPs&gt;
          &lt;ReservedIP name="MyReservedIP"/&gt;
        &lt;/ReservedIPs&gt;
      &lt;/AddressAssignments&gt;
    &lt;/NetworkConfiguration&gt;
  &lt;/ServiceConfiguration&gt;
  </code></pre>
  
  <p>(Obviously, I have made sure that the name of the IP address is exactly the same as shown in GetAzureReservedIP.)</p>
  
  <p>Using this configuration, I have deployed the solution to a new cloud service, but it did not receive the expected IP adress. 
  I am using Visual Studio 2012 and the Azure SDK 2.4. I deploy to Azure from Visual Studio by selecting Build -> Publish to Azure, where I create new cloud services and select the "Cloud" Service Configuration. </p>
  
  <p><strong>Edit</strong>
  I can see that the IP adress is not used for outgoing traffic because the database cannot be accessed (only allowed for the one IP address) and my requests to external webservices are blocked. The management portal shows that another IP address is used. </p>