Skip to content

Commit e28275a

Browse files
joshdmccjmccarthy
authored andcommitted
Adding missing properties to the swagger targeting 2021-05-01 (Azure#16747)
* Updating 2021-03-01 with extendedLocation and vmss ID * Trying to fix errrs * fixing property name * Adding EL and VMSS ID into 2021-05-01 swagger * Adding fields back * Fixing * Fixing version param Co-authored-by: jmccarthy <jmccarthy@microsoft.com>
1 parent 46660b1 commit e28275a

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2021-05-01/examples/GetInstanceMetadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"compute": {
1010
"azEnvironment": "AZUREPUBLICCLOUD",
1111
"evictionPolicy": "deallocate",
12+
"extendedLocation": {
13+
"type": "edgeZone",
14+
"name": "microsoftlosangeles"
15+
},
1216
"isHostCompatibilityLayerVm": "true",
1317
"licenseType": "Windows_Server",
1418
"location": "westus",
@@ -123,6 +127,9 @@
123127
],
124128
"userData": "Zm9vYmFy",
125129
"version": "15.05.22",
130+
"virtualMachineScaleSet": {
131+
"id": "/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name"
132+
},
126133
"vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6",
127134
"vmScaleSetName": "crpteste9vflji9",
128135
"vmSize": "Standard_A3",

specification/imds/data-plane/Microsoft.InstanceMetadataService/stable/2021-05-01/imds.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@
249249
"type": "string",
250250
"description": "Describes how the VM will be evicted if space needs to be freed up. Only applicable to Spot VMs. For a non-spot VM, this will be an empty string."
251251
},
252+
"extendedLocation": {
253+
"type": "object",
254+
"description": "Describes the extended location of the VM",
255+
"$ref": "#/definitions/ExtendedLocationProperties"
256+
},
252257
"isHostCompatibilityLayerVm": {
253258
"type": "string",
254259
"description": "Identifies if the VM runs on the Host Compatibility Layer."
@@ -358,6 +363,11 @@
358363
"type": "string",
359364
"description": "This is the version of the VM image."
360365
},
366+
"virtualMachineScaleSet": {
367+
"type": "object",
368+
"description": "Information about the VMSS the VM belongs to (if applicable)",
369+
"$ref": "#/definitions/VirtualMachineScaleSet"
370+
},
361371
"vmId": {
362372
"type": "string",
363373
"description": "This is the unique identifier for the VM."
@@ -391,6 +401,20 @@
391401
},
392402
"description": "Network Metadata"
393403
},
404+
"ExtendedLocationProperties": {
405+
"type": "object",
406+
"description": "Describes the extended location of the VM",
407+
"properties": {
408+
"type": {
409+
"type": "string",
410+
"description": "The type of the extended location of the VM"
411+
},
412+
"name": {
413+
"type": "string",
414+
"description": "The name of the extended location of the VM"
415+
}
416+
}
417+
},
394418
"NetworkInterface": {
395419
"type": "object",
396420
"description": "This contains data about the network interface.",
@@ -791,6 +815,16 @@
791815
}
792816
}
793817
},
818+
"VirtualMachineScaleSet": {
819+
"type": "object",
820+
"description": "Information about the VMSS the VM belongs to (if applicable)",
821+
"properties": {
822+
"id": {
823+
"type": "string",
824+
"description": "This is the ID of the VMSS the VM belongs to (if applicable)"
825+
}
826+
}
827+
},
794828
"ApplicationResponse": {
795829
"type": "string",
796830
"description": "This is a binary string containing the application."
@@ -928,7 +962,7 @@
928962
"in": "query",
929963
"type": "string",
930964
"enum": [
931-
"2018-10-01"
965+
"2021-05-01"
932966
],
933967
"description": "This is the API version to use.",
934968
"required": true,

0 commit comments

Comments
 (0)