Skip to content

Commit 1aaece9

Browse files
Fix vm extension location bug (#18487)
* fix * fix lint issue
1 parent abcb4c4 commit 1aaece9

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

specification/compute/resource-manager/Microsoft.Compute/stable/2022-03-01/ComputeRP/virtualMachine.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2007,7 +2007,7 @@
20072007
},
20082008
"allOf": [
20092009
{
2010-
"$ref": "../common.json#/definitions/Resource"
2010+
"$ref": "../common.json#/definitions/ResourceWithOptionalLocation"
20112011
}
20122012
],
20132013
"description": "Describes a Virtual Machine Extension."

specification/compute/resource-manager/Microsoft.Compute/stable/2022-03-01/common.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,39 @@
160160
},
161161
"x-ms-azure-resource": true
162162
},
163+
"ResourceWithOptionalLocation": {
164+
"type": "object",
165+
"description": "The Resource model definition with location property as optional.",
166+
"properties": {
167+
"location": {
168+
"type": "string",
169+
"description": "Resource location"
170+
},
171+
"id": {
172+
"readOnly": true,
173+
"type": "string",
174+
"description": "Resource Id"
175+
},
176+
"name": {
177+
"readOnly": true,
178+
"type": "string",
179+
"description": "Resource name"
180+
},
181+
"type": {
182+
"readOnly": true,
183+
"type": "string",
184+
"description": "Resource type"
185+
},
186+
"tags": {
187+
"type": "object",
188+
"additionalProperties": {
189+
"type": "string"
190+
},
191+
"description": "Resource tags"
192+
}
193+
},
194+
"x-ms-azure-resource": true
195+
},
163196
"ExtendedLocationType": {
164197
"type": "string",
165198
"description": "The type of extendedLocation.",

0 commit comments

Comments
 (0)