From dffd620b56b079a7c2ec43a891d92b9ca2bdc0f0 Mon Sep 17 00:00:00 2001 From: frank-pang-msft <92764154+frank-pang-msft@users.noreply.github.com> Date: Thu, 16 Dec 2021 10:59:46 -0800 Subject: [PATCH] Add repairAction to auto repairs feature and update grace period to PT10M (#16535) --- .../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 6e4dde08d4e1..8caccb4d0f04 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 @@ -12064,7 +12064,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" },