Skip to content

Commit 7e77af7

Browse files
committed
Added an example
1 parent 3be1a91 commit 7e77af7

File tree

5 files changed

+635
-0
lines changed

5 files changed

+635
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"locations": "{locations}",
5+
"api-version": "2017-03-30"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"properties": {
13+
"vmId": "{vmId}",
14+
"availabilitySet": {
15+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
16+
},
17+
"hardwareProfile": {
18+
"vmSize": "Standard_A0"
19+
},
20+
"storageProfile": {
21+
"imageReference": {
22+
"publisher": "MicrosoftWindowsServer",
23+
"offer": "WindowsServer",
24+
"sku": "2012-R2-Datacenter",
25+
"version": "4.127.20170406"
26+
},
27+
"osDisk": {
28+
"osType": "Windows",
29+
"name": "test",
30+
"createOption": "FromImage",
31+
"vhd": {
32+
"uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"
33+
},
34+
"caching": "None",
35+
"diskSizeGB": 127
36+
},
37+
"dataDisks": []
38+
},
39+
"osProfile": {
40+
"computerName": "Test",
41+
"adminUsername": "Foo12",
42+
"windowsConfiguration": {
43+
"provisionVMAgent": true,
44+
"enableAutomaticUpdates": true
45+
},
46+
"secrets": [],
47+
"allowExtensionOperations": true
48+
},
49+
"networkProfile": {
50+
"networkInterfaces": [
51+
{
52+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}"
53+
}
54+
]
55+
},
56+
"provisioningState": "Succeeded"
57+
},
58+
"type": "Microsoft.Compute/virtualMachines",
59+
"location": "{locations}",
60+
"tags": {
61+
"RG": "rg",
62+
"testTag": "1"
63+
},
64+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}",
65+
"name": "{virtualMachineName}"
66+
},
67+
{
68+
"properties": {
69+
"vmId": "{vmId}",
70+
"availabilitySet": {
71+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
72+
},
73+
"hardwareProfile": {
74+
"vmSize": "Standard_A0"
75+
},
76+
"storageProfile": {
77+
"imageReference": {
78+
"publisher": "MicrosoftWindowsServer",
79+
"offer": "WindowsServer",
80+
"sku": "2012-R2-Datacenter",
81+
"version": "4.127.20170406"
82+
},
83+
"osDisk": {
84+
"osType": "Windows",
85+
"name": "test",
86+
"createOption": "FromImage",
87+
"vhd": {
88+
"uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"
89+
},
90+
"caching": "None",
91+
"diskSizeGB": 127
92+
},
93+
"dataDisks": []
94+
},
95+
"osProfile": {
96+
"computerName": "Test",
97+
"adminUsername": "Foo12",
98+
"windowsConfiguration": {
99+
"provisionVMAgent": true,
100+
"enableAutomaticUpdates": true
101+
},
102+
"secrets": [],
103+
"allowExtensionOperations": true
104+
},
105+
"networkProfile": {
106+
"networkInterfaces": [
107+
{
108+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}"
109+
}
110+
]
111+
},
112+
"provisioningState": "Succeeded"
113+
},
114+
"type": "Microsoft.Compute/virtualMachines",
115+
"location": "{locations}",
116+
"tags": {
117+
"RG": "rg",
118+
"testTag": "1"
119+
},
120+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}",
121+
"name": "{virtualMachineName}"
122+
}
123+
]
124+
}
125+
}
126+
}
127+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"locations": "{locations}",
5+
"api-version": "2017-12-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"properties": {
13+
"vmId": "{vmId}",
14+
"availabilitySet": {
15+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
16+
},
17+
"hardwareProfile": {
18+
"vmSize": "Standard_A0"
19+
},
20+
"storageProfile": {
21+
"imageReference": {
22+
"publisher": "MicrosoftWindowsServer",
23+
"offer": "WindowsServer",
24+
"sku": "2012-R2-Datacenter",
25+
"version": "4.127.20170406"
26+
},
27+
"osDisk": {
28+
"osType": "Windows",
29+
"name": "test",
30+
"createOption": "FromImage",
31+
"vhd": {
32+
"uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"
33+
},
34+
"caching": "None",
35+
"diskSizeGB": 127
36+
},
37+
"dataDisks": []
38+
},
39+
"osProfile": {
40+
"computerName": "Test",
41+
"adminUsername": "Foo12",
42+
"windowsConfiguration": {
43+
"provisionVMAgent": true,
44+
"enableAutomaticUpdates": true
45+
},
46+
"secrets": [],
47+
"allowExtensionOperations": true
48+
},
49+
"networkProfile": {
50+
"networkInterfaces": [
51+
{
52+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}"
53+
}
54+
]
55+
},
56+
"provisioningState": "Succeeded"
57+
},
58+
"type": "Microsoft.Compute/virtualMachines",
59+
"location": "{locations}",
60+
"tags": {
61+
"RG": "rg",
62+
"testTag": "1"
63+
},
64+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}",
65+
"name": "{virtualMachineName}"
66+
},
67+
{
68+
"properties": {
69+
"vmId": "{vmId}",
70+
"availabilitySet": {
71+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
72+
},
73+
"hardwareProfile": {
74+
"vmSize": "Standard_A0"
75+
},
76+
"storageProfile": {
77+
"imageReference": {
78+
"publisher": "MicrosoftWindowsServer",
79+
"offer": "WindowsServer",
80+
"sku": "2012-R2-Datacenter",
81+
"version": "4.127.20170406"
82+
},
83+
"osDisk": {
84+
"osType": "Windows",
85+
"name": "test",
86+
"createOption": "FromImage",
87+
"vhd": {
88+
"uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"
89+
},
90+
"caching": "None",
91+
"diskSizeGB": 127
92+
},
93+
"dataDisks": []
94+
},
95+
"osProfile": {
96+
"computerName": "Test",
97+
"adminUsername": "Foo12",
98+
"windowsConfiguration": {
99+
"provisionVMAgent": true,
100+
"enableAutomaticUpdates": true
101+
},
102+
"secrets": [],
103+
"allowExtensionOperations": true
104+
},
105+
"networkProfile": {
106+
"networkInterfaces": [
107+
{
108+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}"
109+
}
110+
]
111+
},
112+
"provisioningState": "Succeeded"
113+
},
114+
"type": "Microsoft.Compute/virtualMachines",
115+
"location": "{locations}",
116+
"tags": {
117+
"RG": "rg",
118+
"testTag": "1"
119+
},
120+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}",
121+
"name": "{virtualMachineName}"
122+
}
123+
]
124+
}
125+
}
126+
}
127+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscriptionId}",
4+
"locations": "{locations}",
5+
"api-version": "2018-04-01"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"properties": {
13+
"vmId": "{vmId}",
14+
"availabilitySet": {
15+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
16+
},
17+
"hardwareProfile": {
18+
"vmSize": "Standard_A0"
19+
},
20+
"storageProfile": {
21+
"imageReference": {
22+
"publisher": "MicrosoftWindowsServer",
23+
"offer": "WindowsServer",
24+
"sku": "2012-R2-Datacenter",
25+
"version": "4.127.20170406"
26+
},
27+
"osDisk": {
28+
"osType": "Windows",
29+
"name": "test",
30+
"createOption": "FromImage",
31+
"vhd": {
32+
"uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"
33+
},
34+
"caching": "None",
35+
"diskSizeGB": 127
36+
},
37+
"dataDisks": []
38+
},
39+
"osProfile": {
40+
"computerName": "Test",
41+
"adminUsername": "Foo12",
42+
"windowsConfiguration": {
43+
"provisionVMAgent": true,
44+
"enableAutomaticUpdates": true
45+
},
46+
"secrets": [],
47+
"allowExtensionOperations": true
48+
},
49+
"networkProfile": {
50+
"networkInterfaces": [
51+
{
52+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}"
53+
}
54+
]
55+
},
56+
"provisioningState": "Succeeded"
57+
},
58+
"type": "Microsoft.Compute/virtualMachines",
59+
"location": "{locations}",
60+
"tags": {
61+
"RG": "rg",
62+
"testTag": "1"
63+
},
64+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}",
65+
"name": "{virtualMachineName}"
66+
},
67+
{
68+
"properties": {
69+
"vmId": "{vmId}",
70+
"availabilitySet": {
71+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"
72+
},
73+
"hardwareProfile": {
74+
"vmSize": "Standard_A0"
75+
},
76+
"storageProfile": {
77+
"imageReference": {
78+
"publisher": "MicrosoftWindowsServer",
79+
"offer": "WindowsServer",
80+
"sku": "2012-R2-Datacenter",
81+
"version": "4.127.20170406"
82+
},
83+
"osDisk": {
84+
"osType": "Windows",
85+
"name": "test",
86+
"createOption": "FromImage",
87+
"vhd": {
88+
"uri": "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd"
89+
},
90+
"caching": "None",
91+
"diskSizeGB": 127
92+
},
93+
"dataDisks": []
94+
},
95+
"osProfile": {
96+
"computerName": "Test",
97+
"adminUsername": "Foo12",
98+
"windowsConfiguration": {
99+
"provisionVMAgent": true,
100+
"enableAutomaticUpdates": true
101+
},
102+
"secrets": [],
103+
"allowExtensionOperations": true
104+
},
105+
"networkProfile": {
106+
"networkInterfaces": [
107+
{
108+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}"
109+
}
110+
]
111+
},
112+
"provisioningState": "Succeeded"
113+
},
114+
"type": "Microsoft.Compute/virtualMachines",
115+
"location": "{locations}",
116+
"tags": {
117+
"RG": "rg",
118+
"testTag": "1"
119+
},
120+
"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{virtualMachineName}",
121+
"name": "{virtualMachineName}"
122+
}
123+
]
124+
}
125+
}
126+
}
127+
}

0 commit comments

Comments
 (0)