Skip to content

Commit f681d47

Browse files
Compute Rest API version 2021-07-01 (#15479)
1 parent 3257aac commit f681d47

File tree

214 files changed

+43282
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+43282
-1
lines changed

specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/compute.json

Lines changed: 15112 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "myResourceGroup",
5+
"vmScaleSetName": "{vmss-name}",
6+
"api-version": "2021-07-01",
7+
"parameters": {
8+
"sku": {
9+
"tier": "Standard",
10+
"capacity": 3,
11+
"name": "Standard_D1_v2"
12+
},
13+
"location": "westus",
14+
"properties": {
15+
"overprovision": true,
16+
"virtualMachineProfile": {
17+
"storageProfile": {
18+
"osDisk": {
19+
"caching": "ReadWrite",
20+
"image": {
21+
"uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd"
22+
},
23+
"createOption": "FromImage",
24+
"name": "osDisk"
25+
}
26+
},
27+
"osProfile": {
28+
"computerNamePrefix": "{vmss-name}",
29+
"adminUsername": "{your-username}",
30+
"adminPassword": "{your-password}"
31+
},
32+
"networkProfile": {
33+
"networkInterfaceConfigurations": [
34+
{
35+
"name": "{vmss-name}",
36+
"properties": {
37+
"primary": true,
38+
"enableIPForwarding": true,
39+
"ipConfigurations": [
40+
{
41+
"name": "{vmss-name}",
42+
"properties": {
43+
"subnet": {
44+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}"
45+
}
46+
}
47+
}
48+
]
49+
}
50+
}
51+
]
52+
}
53+
},
54+
"upgradePolicy": {
55+
"mode": "Manual"
56+
}
57+
}
58+
}
59+
},
60+
"responses": {
61+
"200": {
62+
"body": {
63+
"sku": {
64+
"tier": "Standard",
65+
"capacity": 3,
66+
"name": "Standard_D1_v2"
67+
},
68+
"name": "{vmss-name}",
69+
"properties": {
70+
"singlePlacementGroup": true,
71+
"overprovision": true,
72+
"uniqueId": "d6e9ab29-f8c9-4792-978c-ae2c07b98f17",
73+
"virtualMachineProfile": {
74+
"storageProfile": {
75+
"osDisk": {
76+
"osType": "Windows",
77+
"caching": "ReadWrite",
78+
"image": {
79+
"uri": "https://{existing-storage-account-name}.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/{existing-generalized-os-image-blob-name}.vhd"
80+
},
81+
"createOption": "FromImage",
82+
"name": "osDisk"
83+
}
84+
},
85+
"osProfile": {
86+
"computerNamePrefix": "{vmss-name}",
87+
"adminUsername": "{your-username}",
88+
"secrets": [],
89+
"windowsConfiguration": {
90+
"provisionVMAgent": true,
91+
"enableAutomaticUpdates": true
92+
}
93+
},
94+
"networkProfile": {
95+
"networkInterfaceConfigurations": [
96+
{
97+
"name": "{vmss-name}",
98+
"properties": {
99+
"dnsSettings": {
100+
"dnsServers": []
101+
},
102+
"primary": true,
103+
"enableIPForwarding": true,
104+
"ipConfigurations": [
105+
{
106+
"name": "{vmss-name}",
107+
"properties": {
108+
"subnet": {
109+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet"
110+
},
111+
"privateIPAddressVersion": "IPv4"
112+
}
113+
}
114+
],
115+
"enableAcceleratedNetworking": false
116+
}
117+
}
118+
]
119+
}
120+
},
121+
"upgradePolicy": {
122+
"mode": "Manual"
123+
},
124+
"provisioningState": "Creating"
125+
},
126+
"location": "westus",
127+
"type": "Microsoft.Compute/virtualMachineScaleSets",
128+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}"
129+
}
130+
},
131+
"201": {
132+
"body": {
133+
"sku": {
134+
"tier": "Standard",
135+
"capacity": 3,
136+
"name": "Standard_D1_v2"
137+
},
138+
"name": "{vmss-name}",
139+
"properties": {
140+
"singlePlacementGroup": true,
141+
"overprovision": true,
142+
"uniqueId": "d6e9ab29-f8c9-4792-978c-ae2c07b98f17",
143+
"virtualMachineProfile": {
144+
"storageProfile": {
145+
"osDisk": {
146+
"osType": "Windows",
147+
"caching": "ReadWrite",
148+
"image": {
149+
"uri": "https://{existing-storage-account-name}.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/{existing-generalized-os-image-blob-name}.vhd"
150+
},
151+
"createOption": "FromImage",
152+
"name": "osDisk"
153+
}
154+
},
155+
"osProfile": {
156+
"computerNamePrefix": "{vmss-name}",
157+
"adminUsername": "{your-username}",
158+
"secrets": [],
159+
"windowsConfiguration": {
160+
"provisionVMAgent": true,
161+
"enableAutomaticUpdates": true
162+
}
163+
},
164+
"networkProfile": {
165+
"networkInterfaceConfigurations": [
166+
{
167+
"name": "{vmss-name}",
168+
"properties": {
169+
"dnsSettings": {
170+
"dnsServers": []
171+
},
172+
"primary": true,
173+
"enableIPForwarding": true,
174+
"ipConfigurations": [
175+
{
176+
"name": "{vmss-name}",
177+
"properties": {
178+
"subnet": {
179+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/nsgExistingVnet/subnets/nsgExistingSubnet"
180+
},
181+
"privateIPAddressVersion": "IPv4"
182+
}
183+
}
184+
],
185+
"enableAcceleratedNetworking": false
186+
}
187+
}
188+
]
189+
}
190+
},
191+
"upgradePolicy": {
192+
"mode": "Manual"
193+
},
194+
"provisioningState": "Creating"
195+
},
196+
"location": "westus",
197+
"type": "Microsoft.Compute/virtualMachineScaleSets",
198+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}"
199+
}
200+
}
201+
}
202+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "{subscription-id}",
4+
"resourceGroupName": "myResourceGroup",
5+
"vmName": "{vm-name}",
6+
"api-version": "2021-07-01",
7+
"parameters": {
8+
"location": "westus",
9+
"properties": {
10+
"hardwareProfile": {
11+
"vmSize": "Standard_D1_v2"
12+
},
13+
"storageProfile": {
14+
"osDisk": {
15+
"name": "myVMosdisk",
16+
"image": {
17+
"uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd"
18+
},
19+
"osType": "Windows",
20+
"createOption": "FromImage",
21+
"caching": "ReadWrite",
22+
"vhd": {
23+
"uri": "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd"
24+
}
25+
}
26+
},
27+
"osProfile": {
28+
"adminUsername": "{your-username}",
29+
"computerName": "myVM",
30+
"adminPassword": "{your-password}"
31+
},
32+
"networkProfile": {
33+
"networkInterfaces": [
34+
{
35+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}",
36+
"properties": {
37+
"primary": true
38+
}
39+
}
40+
]
41+
}
42+
}
43+
}
44+
},
45+
"responses": {
46+
"200": {
47+
"body": {
48+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM",
49+
"type": "Microsoft.Compute/virtualMachines",
50+
"properties": {
51+
"osProfile": {
52+
"adminUsername": "{your-username}",
53+
"secrets": [],
54+
"computerName": "myVM",
55+
"windowsConfiguration": {
56+
"provisionVMAgent": true,
57+
"enableAutomaticUpdates": true
58+
}
59+
},
60+
"networkProfile": {
61+
"networkInterfaces": [
62+
{
63+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic",
64+
"properties": {
65+
"primary": true
66+
}
67+
}
68+
]
69+
},
70+
"storageProfile": {
71+
"osDisk": {
72+
"name": "myVMosdisk",
73+
"image": {
74+
"uri": "https://{existing-storage-account-name}.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/{existing-generalized-os-image-blob-name}.vhd"
75+
},
76+
"caching": "ReadWrite",
77+
"createOption": "FromImage",
78+
"osType": "Windows",
79+
"vhd": {
80+
"uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk.vhd"
81+
}
82+
},
83+
"dataDisks": []
84+
},
85+
"vmId": "926cd555-a07c-4ff5-b214-4aa4dd09d79b",
86+
"hardwareProfile": {
87+
"vmSize": "Standard_D1_v2"
88+
},
89+
"provisioningState": "Creating"
90+
},
91+
"name": "myVM",
92+
"location": "westus"
93+
}
94+
},
95+
"201": {
96+
"body": {
97+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM",
98+
"type": "Microsoft.Compute/virtualMachines",
99+
"properties": {
100+
"osProfile": {
101+
"adminUsername": "{your-username}",
102+
"secrets": [],
103+
"computerName": "myVM",
104+
"windowsConfiguration": {
105+
"provisionVMAgent": true,
106+
"enableAutomaticUpdates": true
107+
}
108+
},
109+
"networkProfile": {
110+
"networkInterfaces": [
111+
{
112+
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic",
113+
"properties": {
114+
"primary": true
115+
}
116+
}
117+
]
118+
},
119+
"storageProfile": {
120+
"osDisk": {
121+
"name": "myVMosdisk",
122+
"image": {
123+
"uri": "https://{existing-storage-account-name}.blob.core.windows.net/system/Microsoft.Compute/Images/vhds/{existing-generalized-os-image-blob-name}.vhd"
124+
},
125+
"caching": "ReadWrite",
126+
"createOption": "FromImage",
127+
"osType": "Windows",
128+
"vhd": {
129+
"uri": "http://{existing-storage-account-name}.blob.core.windows.net/vhds/myDisk.vhd"
130+
}
131+
},
132+
"dataDisks": []
133+
},
134+
"vmId": "926cd555-a07c-4ff5-b214-4aa4dd09d79b",
135+
"hardwareProfile": {
136+
"vmSize": "Standard_D1_v2"
137+
},
138+
"provisioningState": "Creating"
139+
},
140+
"name": "myVM",
141+
"location": "westus"
142+
}
143+
}
144+
}
145+
}

0 commit comments

Comments
 (0)