question

AlexTripp-8889 avatar image
0 Votes"
AlexTripp-8889 asked kobulloc-MSFT edited

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

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-devtestlabs
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

kobulloc-MSFT avatar image
0 Votes"
kobulloc-MSFT answered kobulloc-MSFT edited

@AlexTripp-8889, 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


image.png (89.9 KiB)
image.png (110.6 KiB)
image.png (98.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.