Skip to content

Commit

Permalink
Adding availability set to the VM patch payload (#6256)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mchoubey2021 authored Feb 23, 2022
1 parent 8b5c7c8 commit e8187b4
Showing 1 changed file with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -3661,6 +3664,9 @@
},
"networkProfile": {
"$ref": "#/definitions/NetworkProfileUpdate"
},
"availabilitySets": {
"$ref": "#/definitions/AvailabilitySets"
}
}
},
Expand Down

0 comments on commit e8187b4

Please sign in to comment.