You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-instance-repairs.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,31 @@ Enabling automatic instance repairs for Azure virtual machine scale sets helps a
22
22
23
23
## Requirements for using automatic instance repairs
24
24
25
+
**Opt-in to the preview for automatic instance repairs**
26
+
27
+
Use either of the following ways to opt-in to the preview for automatic instance repairs. These steps will prepare your subscription for enabling the preview feature.
28
+
29
+
REST API [Features - Register](./rest/api/resources/features/register)
30
+
31
+
```
32
+
POST on '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/{resourceProviderNamespace}/features/{featureName}/register?api-version=2015-12-01'
Wait for a few minutes to ensure that the *RegistrationState* changes to *Registered* and then run the following cmdlet.
44
+
45
+
```azurepowershell-interactive
46
+
Register-AzureRmResourceProvider `
47
+
-ProviderNamespace Microsoft.Compute
48
+
```
49
+
25
50
**Enable application health monitoring for scale set**
26
51
27
52
The scale set should have application health monitoring for instances enabled. This can be done using either [Application Health extension](./virtual-machine-scale-sets-health-extension.md) or [Load balancer health probes](../load-balancer/load-balancer-custom-probe-overview.md). Only one of these can be enabled at a time. The application health extension or the load balancer probes ping the application endpoint configured on virtual machine instances to determine the application health status. This health status is used by the scale set orchestrator to monitor instance health and perform repairs when required.
@@ -164,7 +189,7 @@ The instance could be in grace period. This is the amount of time to wait after
164
189
165
190
**Viewing application health status for scale set instances**
166
191
167
-
You can use the [Get Instance View API](/rest/api/compute/virtualmachinescalesetvms/getinstanceview) for instances in a virtual machine scale set to view the application health status. This status is provided under the property *"vmHealth"*.
192
+
You can use the [Get Instance View API](/rest/api/compute/virtualmachinescalesetvms/getinstanceview) for instances in a virtual machine scale set to view the application health status. With Azure PowerShell, you can use the cmdlet [Get-AzVmssVM](./powershell/module/az.compute/get-azvmssvm) with the *-InstanceView* flag. The application health status is provided under the property *vmHealth*.
0 commit comments