diff --git a/platform/api/azure/instance.go b/platform/api/azure/instance.go index cfbfa4c7f..e0ee2a903 100644 --- a/platform/api/azure/instance.go +++ b/platform/api/azure/instance.go @@ -103,6 +103,9 @@ func (a *API) getVMParameters(name, userdata, sshkey, storageAccountURI string, }, Plan: plan, VirtualMachineProperties: &compute.VirtualMachineProperties{ + AvailabilitySet: &compute.SubResource{ + ID: &a.Opts.AvailabilitySetID, + }, HardwareProfile: &compute.HardwareProfile{ VMSize: compute.VirtualMachineSizeTypes(a.Opts.Size), },