Skip to content

Commit 8eb49d9

Browse files
weikanglimFredericHeem
authored andcommitted
Add IMDS version 2021-10-01 for platformSubFaultDomain field (Azure#17897)
* Copy 2021-05-01 * Upgrade version * Update for 2021-10-01
1 parent 38cbf99 commit 8eb49d9

File tree

6 files changed

+1200
-1
lines changed

6 files changed

+1200
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01",
4+
"nonce": "abcde12345",
5+
"Metadata": "true"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"encoding": "pkcs7",
11+
"signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL"
12+
}
13+
}
14+
}
15+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01",
4+
"Metadata": "true"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"tenantId": "abd8daee-d393-4239-9377-883adda3d40f"
10+
}
11+
}
12+
}
13+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01",
4+
"Metadata": "true",
5+
"resource": "https://vault.azure.net"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"access_token": "dummytoken",
11+
"client_id": "be5947ed-3560-4afe-9504-59967a63f810",
12+
"expires_in": "3599",
13+
"expires_on": "1541705014",
14+
"ext_expires_in": "262800",
15+
"not_before": "1508961830",
16+
"resource": "https://va"
17+
}
18+
}
19+
}
20+
}
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-10-01",
4+
"Metadata": "true"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"compute": {
10+
"azEnvironment": "AZUREPUBLICCLOUD",
11+
"evictionPolicy": "deallocate",
12+
"extendedLocation": {
13+
"type": "edgeZone",
14+
"name": "microsoftlosangeles"
15+
},
16+
"isHostCompatibilityLayerVm": "true",
17+
"licenseType": "Windows_Server",
18+
"location": "westus",
19+
"name": "examplevmname",
20+
"offer": "Windows",
21+
"osProfile": {
22+
"adminUsername": "admin",
23+
"computerName": "examplevmname",
24+
"disablePasswordAuthentication": "true"
25+
},
26+
"osType": "linux",
27+
"placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a",
28+
"plan": {
29+
"name": "planName",
30+
"product": "planProduct",
31+
"publisher": "planPublisher"
32+
},
33+
"platformFaultDomain": "36",
34+
"platformSubFaultDomain": "15",
35+
"platformUpdateDomain": "42",
36+
"priority": "Spot",
37+
"provider": "Microsoft.Compute",
38+
"publicKeys": [
39+
{
40+
"keyData": "ssh-rsa 0",
41+
"path": "/home/user/.ssh/authorized_keys0"
42+
},
43+
{
44+
"keyData": "ssh-rsa 1",
45+
"path": "/home/user/.ssh/authorized_keys1"
46+
}
47+
],
48+
"publisher": "RDFE-Test-Microsoft-Windows-Server-Group",
49+
"resourceGroupName": "macikgo-test-may-23",
50+
"resourceId": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname",
51+
"securityProfile": {
52+
"secureBootEnabled": "true",
53+
"virtualTpmEnabled": "false"
54+
},
55+
"sku": "Windows-Server-2012-R2-Datacenter",
56+
"storageProfile": {
57+
"dataDisks": [
58+
{
59+
"bytesPerSecondThrottle": "979202048",
60+
"caching": "None",
61+
"createOption": "Empty",
62+
"diskCapacityBytes": "274877906944",
63+
"diskSizeGB": "1024",
64+
"image": {
65+
"uri": ""
66+
},
67+
"isSharedDisk": "false",
68+
"isUltraDisk": "true",
69+
"lun": "0",
70+
"managedDisk": {
71+
"id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname",
72+
"storageAccountType": "Standard_LRS"
73+
},
74+
"name": "exampledatadiskname",
75+
"opsPerSecondThrottle": "65280",
76+
"vhd": {
77+
"uri": ""
78+
},
79+
"writeAcceleratorEnabled": "false"
80+
}
81+
],
82+
"imageReference": {
83+
"id": "",
84+
"offer": "UbuntuServer",
85+
"publisher": "Canonical",
86+
"sku": "16.04.0-LTS",
87+
"version": "latest"
88+
},
89+
"osDisk": {
90+
"caching": "ReadWrite",
91+
"createOption": "FromImage",
92+
"diskSizeGB": "30",
93+
"diffDiskSettings": {
94+
"option": "Local"
95+
},
96+
"encryptionSettings": {
97+
"enabled": "false"
98+
},
99+
"image": {
100+
"uri": ""
101+
},
102+
"managedDisk": {
103+
"id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname",
104+
"storageAccountType": "Standard_LRS"
105+
},
106+
"name": "exampleosdiskname",
107+
"osType": "Linux",
108+
"vhd": {
109+
"uri": ""
110+
},
111+
"writeAcceleratorEnabled": "false"
112+
},
113+
"resourceDisk": {
114+
"size": "4096"
115+
}
116+
},
117+
"subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d",
118+
"tags": "baz:bash;foo:bar",
119+
"tagsList": [
120+
{
121+
"name": "baz",
122+
"value": "bash"
123+
},
124+
{
125+
"name": "foo",
126+
"value": "bar"
127+
}
128+
],
129+
"userData": "Zm9vYmFy",
130+
"version": "15.05.22",
131+
"virtualMachineScaleSet": {
132+
"id": "/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name"
133+
},
134+
"vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6",
135+
"vmScaleSetName": "crpteste9vflji9",
136+
"vmSize": "Standard_A3",
137+
"zone": ""
138+
}
139+
}
140+
}
141+
}
142+
}

0 commit comments

Comments
 (0)