Skip to content

Commit ac92c0c

Browse files
authored
Update virtual-machine-scale-sets-automatic-instance-repairs.md
Added example for updating serviceState for automatic repairs
1 parent 2fda48f commit ac92c0c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,17 @@ GET '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider
374374
}
375375
```
376376
377+
Use [Set Orchestration Service State](/rest/api/compute/virtual-machine-scale-sets/set-orchestration-service-state) to suspend or resume the *serviceState* for automatic repairs.
378+
379+
```http
380+
POST '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView?api-version=2023-07-01'
381+
382+
{
383+
"serviceName": "AutomaticRepairs",
384+
"action": "Suspend"
385+
}
386+
```
387+
377388
### [Azure CLI](#tab/cli-4)
378389
379390
Use [get-instance-view](/cli/azure/vmss#az-vmss-get-instance-view) cmdlet to view the *serviceState* for automatic instance repairs.

0 commit comments

Comments
 (0)