Skip to content

Commit 321740f

Browse files
author
Julia Shimanskiy
committed
Added Set Orch Service State API bit
1 parent 51df036 commit 321740f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,23 @@ GET '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provider
235235
}
236236
```
237237

238+
Use Set Orchestration Service State with API version 2019-1201 or higher for virtual machine scale set to set the *serviceState* for automatic repairs under the property *orchestrationServices* in the scale set instance view. Once the scale set is opted into the automatic repairs feature, you can use this API to suspend or resume automatic repairs for your scale set.
239+
240+
```http
241+
POST '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState?api-version=2019-12-01'
242+
```
243+
244+
```json
245+
{
246+
"orchestrationServices": [
247+
{
248+
"serviceName": "AutomaticRepairs",
249+
"serviceState": "Suspend"
250+
}
251+
]
252+
}
253+
```
254+
238255
### Azure CLI
239256

240257
Use [get-instance-view](https://docs.microsoft.com/cli/azure/vmss?view=azure-cli-latest#az-vmss-get-instance-view) cmdlet to view the *serviceState* for automatic instance repairs.

0 commit comments

Comments
 (0)