How do I assign ILPIP to 2 or more instances of an Azure Cloud Service using the CSCFG file?

326 views Asked by At

Azure Cloud Services are easy to deploy and scale.

I need ILPIPs for each instance(VM) in my Cloud Service, I believe I can get up to 5 (Reserved) ILPIPs.

The question is how to assign the ILPIPs to EACH INSTANCE. And what the impact is on the auto-scale feature.

2

There are 2 answers

0
Dejisys On

I found the answer finally. Just add the following to your service configuration file.

  <NetworkConfiguration>
    <AddressAssignments>
      <InstanceAddress roleName="FsService">
        <PublicIPs>
          <PublicIP name="FsClusterIp"/>
        </PublicIPs>
      </InstanceAddress>
    </AddressAssignments>
  </NetworkConfiguration>

You will need to use powershell to find out the actual Public IP address assigned. This IP may change. If you want to use a RESERVED IP, that is guaranteed not to change, that is also possible but not free.

2
Scott Kitney On

I wanted this to be a comment on the answer below, but don't have enough points. In your question you asked how to set ILPIPs to multiple roles instances, yet your answer isn't clear if this is the full solution. Specifically, does the following seciton

<PublicIP name="FsClusterIp"/> 

need to be duplicated (and assigned a unique name) for each instance of your FsService role? So for a deployment with three instances of FsService...

<PublicIP name="FsClusterIp1"/>
<PublicIP name="FsClusterIp2"/>
<PublicIP name="FsClusterIp3"/>

or is the solution simply as it is in your answer.

Did this work when deploying your service (roles) to an existing CLoud Service, or did you have to create a new Cloud Service when deploying.