none
Adding cloud service instances to virtual network

    Question

  • How can WebRole instances be configured to join a virtual network (the new style, released with the new portal)?

    I managed to connect my VPN device to the network, but the instances aren't connected. Should this be configured at deploy time (if so how)? Is it possible to do this in the new interface?

    Thursday, June 14, 2012 3:42 PM

Answers

  • Add below to cscfg and then deploy. Note if the role is already deployed it can't be moved to a virtual network.

    <NetworkConfiguration>
            <VirtualNetworkSite name="YourVNETName"/>
            <AddressAssignments>
                <InstanceAddress roleName="YourRoleName">
                    <Subnets>
                        <Subnet name="YourSubnetName" />
                    </Subnets>
                </InstanceAddress>
            </AddressAssignments>
      </NetworkConfiguration>


    Jason Chen, Windows Azure PM

    • Marked as answer by Sander Rijken Thursday, June 14, 2012 7:59 PM
    Thursday, June 14, 2012 5:14 PM
    Moderator

All replies

  • Add below to cscfg and then deploy. Note if the role is already deployed it can't be moved to a virtual network.

    <NetworkConfiguration>
            <VirtualNetworkSite name="YourVNETName"/>
            <AddressAssignments>
                <InstanceAddress roleName="YourRoleName">
                    <Subnets>
                        <Subnet name="YourSubnetName" />
                    </Subnets>
                </InstanceAddress>
            </AddressAssignments>
      </NetworkConfiguration>


    Jason Chen, Windows Azure PM

    • Marked as answer by Sander Rijken Thursday, June 14, 2012 7:59 PM
    Thursday, June 14, 2012 5:14 PM
    Moderator
  • Hi Jason,

    Where can I find the schema for "NetworkConfiguration"? I don't see it in Web Role/Worker Role definition schema.

    If a role is already deployed, and I want to move it to virtual network, should I remove it before deploy?

    If one Worker Role instance is moved to a virtual network, will it still be accessible through xxx.cloudapp.net domain?

    Monday, August 06, 2012 2:09 AM
  • Hi,

    Q1) you can search for the schema version 2012-05.1.7. Refer to this link

    Q2) You need not remove the role, you need to update the service config and just deploy it again. You can expect a downtime here as you are updating network configuration.

    Q3) Even if you configure your worker role with virutal network, your endpoint name wont change. it would still remains same.

    Hope it answers your questions.



    Please mark the replies as Answered if they help and Vote if you found them helpful.

    Monday, August 06, 2012 1:14 PM
  • Thanks, I got the answer.

    Seems Azure eclipse plugin doesn't support Virtual Network very well, I even can not find the .netcfg file.

    Anyway, thanks a lot.

    Wednesday, August 08, 2012 1:17 AM