vm-availabilitySet #12656
-
I have created a bicep file to create an azure vm-availabilitySet. here is my bicep pparam availabilitySetName string param tags object= {} param platformFaultDomainCount int param virtualMachinesId string }, } when I deploy the bicep the VM never shows up. I was under the assumption that if I added in the resourced if the existing VM it would add it. did I misunderstand what the virtualMachines:[ Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can not add a VM to an availability set after creation. The availability set must be created before the VM. When you deploy the VM you reference an existing availability set. |
Beta Was this translation helpful? Give feedback.
You can not add a VM to an availability set after creation. The availability set must be created before the VM. When you deploy the VM you reference an existing availability set.
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-availability-set