Skip to content

Commit

Permalink
api/azure: inject availability set
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Tortuyaux <[email protected]>
  • Loading branch information
tormath1 committed Jan 24, 2024
1 parent 3ca694e commit 8783fbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform/api/azure/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
Expand Down

0 comments on commit 8783fbe

Please sign in to comment.