Shared network - Duplicate PIP, load blancing and availability sets for single DevTest Lab

Alex Tripp 1 Reputation point
2021-08-26T22:14:28.053+00:00

Hello,
I am not sure where to get support
I am deploying a devtest lab (using an existing vNet) via ARM with the sharedPublicIpAddressConfiguration defined.
I then deploy a number of VMs with the networkInterface/sharedPublicIpAddressConfiguration defined.
It has created the PIP, load balancer and availability set.
When I create a number of VMs using the portal, they are added to a new PIP, load balancer and availability set.
So now I have seperate duplicates for the one DevTest Lab.
Can one point me in the right direction?

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
256 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 23,496 Reputation points Microsoft Employee
    2021-09-02T07:23:32.123+00:00

    @Alex Tripp , thank you for being patient!

    I followed your steps as closely as I could:

    1. I created a VNet
    2. I created a DevTest Lab via ARM using that VNet
    3. I added a VM to the lab via ARM
    4. I added a VM to the lab via the portal

    The VM created with ARM created an availability set, a load balancer, and a public IP address. The VM created with the portal did not create duplicates (see below).

    I suspect your ARM configuration may be slightly different than your portal configuration when you are adding new VMs to the lab. When you add a VM in the portal you can go to "Advanced Settings" (DevTest Labs resource > + Add > Choose a base > Advanced Settings) and under "Automation", you can click on "View ARM template" (see below). This will give you an ARM template you can use as a base and edit for future automation without creating duplicate resources.

    128558-image.png

    128567-image.png

    128611-image.png

    0 comments No comments