Badgerati / Fogg

PowerShell tool to aide and simplify the creation, deployment and provisioning of infrastructure in Azure
MIT License
7 stars 2 forks source link

When increasing a VM count from 1 to 2+, the first original VM should be added into the Availability Set #43

Closed Badgerati closed 7 years ago

Badgerati commented 7 years ago

When creating VMs, and the original count is 1, then only 1 VM is created. However, if later it's decided you want 2+ of that VM, and you set the count to say 3, then 2 more VMs are created, with a new Availability Set and Load Balancer; yet only the latter 2 are added to the AS/LB.

This issue is to fix a bug, so that the former first VM is also added into the AS/LB.

Badgerati commented 7 years ago

Unfortunately due to a massive design flaw on Microsoft's part, you cannot a an already created VM into an newly created Availability Set...

Therefore, until this issue is resolved on their end, I've set it so that an AS is always created - even for one VM. At least this way you can increase the VM count without worrying too much.

I will at some point look into the removing of VMs for when you lower the count value.

Badgerati commented 7 years ago

This also adds in the ability to change the size of VMs