From 8cd7e88ca0b2a3c318334b2d018497a38871883b Mon Sep 17 00:00:00 2001 From: Frank Pang Date: Mon, 25 Oct 2021 14:21:36 -0700 Subject: [PATCH] Add repairAction to auto repairs feature and update grace period to PT10M --- .../Microsoft.Compute/stable/2021-11-01/compute.json | 6 +++++- .../compute/CreateAScaleSetWithAutomaticRepairs.json | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/compute.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/compute.json index 34b48981e1ec..08b5cbc41dca 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/compute.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/compute.json @@ -11281,7 +11281,11 @@ }, "gracePeriod": { "type": "string", - "description": "The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 30 minutes (PT30M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M)." + "description": "The amount of time for which automatic repairs are suspended due to a state change on VM. The grace time starts after the state change has completed. This helps avoid premature or accidental repairs. The time duration should be specified in ISO 8601 format. The minimum allowed grace period is 10 minutes (PT10M), which is also the default value. The maximum allowed grace period is 90 minutes (PT90M)." + }, + "repairAction": { + "type": "string", + "description": "Type of repair action (replace, restart, reimage) that will be used for repairing unhealthy virtual machines in the scale set. Default value is replace." } }, "description": "Specifies the configuration parameters for automatic repairs on the virtual machine scale set." diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/CreateAScaleSetWithAutomaticRepairs.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/CreateAScaleSetWithAutomaticRepairs.json index fcda0195d4c2..4e32c5d7b299 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/CreateAScaleSetWithAutomaticRepairs.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-11-01/examples/compute/CreateAScaleSetWithAutomaticRepairs.json @@ -61,7 +61,7 @@ }, "automaticRepairsPolicy": { "enabled": true, - "gracePeriod": "PT30M" + "gracePeriod": "PT10M" } } } @@ -136,7 +136,7 @@ }, "automaticRepairsPolicy": { "enabled": true, - "gracePeriod": "PT30M" + "gracePeriod": "PT10M" }, "provisioningState": "Creating" }, @@ -214,7 +214,7 @@ }, "automaticRepairsPolicy": { "enabled": true, - "gracePeriod": "PT30M" + "gracePeriod": "PT10M" }, "provisioningState": "Creating" },