I'm trying to deploy a 6-node cluster using the Azure Availability Sets option. AvSet itself is successfully created in Azure. Problem is that the generated template does not have the dependsOn parameter added to the VMs meaning it only waits for the NIC object. So if randomly a VM deployment starts before the AvSet is created, it fails with AvSet not found error.