Skip to content

Commit 1729e49

Browse files
committed
add doc for vmss automatic instance repairs
1 parent 3350956 commit 1729e49

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

articles/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-instance-repairs.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,31 @@ Enabling automatic instance repairs for Azure virtual machine scale sets helps a
2222
2323
## Requirements for using automatic instance repairs
2424

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'
33+
```
34+
35+
Azure PowerShell cmdlet [Register-AzureRmProviderFeature](./powershell/module/azurerm.resources/register-azurermproviderfeature)
36+
37+
```azurepowershell-interactive
38+
Register-AzureRmProviderFeature `
39+
-ProviderNamespace Microsoft.Compute `
40+
-FeatureName RepairVMScaleSetInstancesPreview
41+
```
42+
43+
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+
2550
**Enable application health monitoring for scale set**
2651

2752
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
164189

165190
**Viewing application health status for scale set instances**
166191

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*.
168193

169194
## Next steps
170195

0 commit comments

Comments
 (0)