Skip to content

Commit

Permalink
Add health probe back to update to prevent any potential errors from the
Browse files Browse the repository at this point in the history
service
  • Loading branch information
ArcturusZhang authored and tombuildsstuff committed Feb 3, 2020
1 parent 7f08a57 commit 7917fa3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,13 @@ func resourceArmLinuxVirtualMachineScaleSetUpdate(d *schema.ResourceData, meta i
return fmt.Errorf("Error expanding `network_interface`: %+v", err)
}

// TODO: setting the health probe on update once https://github.com/Azure/azure-rest-api-specs/pull/7355 has been fixed
//healthProbeId := d.Get("health_probe_id").(string)
healthProbeId := d.Get("health_probe_id").(string)

updateProps.VirtualMachineProfile.NetworkProfile = &compute.VirtualMachineScaleSetUpdateNetworkProfile{
NetworkInterfaceConfigurations: networkInterfaces,
HealthProbe: &compute.APIEntityReference{
ID: utils.String(healthProbeId),
},
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -700,11 +700,13 @@ func resourceArmWindowsVirtualMachineScaleSetUpdate(d *schema.ResourceData, meta
return fmt.Errorf("Error expanding `network_interface`: %+v", err)
}

// TODO: setting the health probe on update once https://github.com/Azure/azure-rest-api-specs/pull/7355 has been fixed
//healthProbeId := d.Get("health_probe_id").(string)
healthProbeId := d.Get("health_probe_id").(string)

updateProps.VirtualMachineProfile.NetworkProfile = &compute.VirtualMachineScaleSetUpdateNetworkProfile{
NetworkInterfaceConfigurations: networkInterfaces,
HealthProbe: &compute.APIEntityReference{
ID: utils.String(healthProbeId),
},
}
}

Expand Down

0 comments on commit 7917fa3

Please sign in to comment.