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
+44-6Lines changed: 44 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,31 +22,69 @@ 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**
25
+
**Opt-in for the automatic instance repairs preview**
26
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.
27
+
Use either the REST API or Azure PowerShell to opt-in for the automatic instance repairs preview. These steps will register your subscription for the preview feature. Note this is only a one-time set up required for using this feature. If your subscription is already registered for automatic instance repairs preview, then you do not need to register again.
28
28
29
29
REST API [Features - Register](/rest/api/resources/features/register)
30
30
31
31
```
32
32
POST on '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/Microsoft.Compute/features/RepairVMScaleSetInstancesPreview/register?api-version=2015-12-01'
Wait for a few minutes for the *State* to change to *Registered*. You can use the following API to confirm this.
47
+
48
+
```
49
+
GET on '/subscriptions/{subscriptionId}/providers/Microsoft.Features/providers/Microsoft.Compute/features/RepairVMScaleSetInstancesPreview?api-version=2015-12-01'
Azure PowerShell cmdlet [Register-AzureRmResourceProvider](/powershell/module/azurerm.resources/register-azurermresourceprovider) followed by [Register-AzureRmProviderFeature](/powershell/module/azurerm.resources/register-azurermproviderfeature)
36
64
37
65
```azurepowershell-interactive
66
+
Register-AzureRmResourceProvider `
67
+
-ProviderNamespace Microsoft.Compute
68
+
38
69
Register-AzureRmProviderFeature `
39
70
-ProviderNamespace Microsoft.Compute `
40
71
-FeatureName RepairVMScaleSetInstancesPreview
41
72
```
42
73
43
-
Wait for a few minutes to ensure that the *RegistrationState*changes to *Registered* and then run the following cmdlet.
74
+
Wait for a few minutes for the *RegistrationState*to change to *Registered*. You can use the following cmdlet to confirm this.
**Enable application health monitoring for scale set**
51
89
52
90
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.
0 commit comments