From e8187b4fb5a7c3a28517ddb6157432a505285acc Mon Sep 17 00:00:00 2001 From: mchoubey2021 <84387156+mchoubey2021@users.noreply.github.com> Date: Wed, 23 Feb 2022 14:40:00 +0530 Subject: [PATCH] Adding availability set to the VM patch payload (#6256) * AvailabilitySet swagger changes and examples * Using struct for avSet props. * Updated availability set from array to object * Changing object to array of objects for vm * Checkpoint swagger changes * Updating the examples * Fixing prettier check * Prettier fix 1 * Adhering to ARM naming convention * Adding identifier id i the array item * VM patch response and fix for lint diff * JSON format error fix * Model validation fix * Prettier Check Fix * Adding availability set in vm patch * Defined availability set object for vm props --- .../preview/2020-06-05-preview/scvmm.json | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/scvmm.json b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/scvmm.json index 7718aef21eba..f4e86da5fa78 100644 --- a/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/scvmm.json +++ b/specification/scvmm/resource-manager/Microsoft.ScVmm/preview/2020-06-05-preview/scvmm.json @@ -2951,6 +2951,24 @@ } } }, + "AvailabilitySets": { + "description": "Availability Sets in vm.", + "type": "array", + "items": { + "description": "Availability Set model", + "type": "object", + "properties": { + "id": { + "description": "Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.", + "type": "string" + }, + "name": { + "description": "Gets or sets the name of the availability set.", + "type": "string" + } + } + } + }, "VirtualMachineProperties": { "description": "Defines the resource properties.", "properties": { @@ -2987,22 +3005,7 @@ ] }, "availabilitySets": { - "description": "Availability Sets in vm.", - "type": "array", - "items": { - "description": "Availability Set model", - "type": "object", - "properties": { - "id": { - "description": "Gets the ARM Id of the microsoft.scvmm/availabilitySets resource.", - "type": "string" - }, - "name": { - "description": "Gets or sets the name of the availability set.", - "type": "string" - } - } - } + "$ref" : "#/definitions/AvailabilitySets" }, "osProfile": { "description": "OS properties.", @@ -3661,6 +3664,9 @@ }, "networkProfile": { "$ref": "#/definitions/NetworkProfileUpdate" + }, + "availabilitySets": { + "$ref": "#/definitions/AvailabilitySets" } } },