File tree Expand file tree Collapse file tree 1 file changed +20
-16
lines changed
articles/virtual-machines Expand file tree Collapse file tree 1 file changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -100,23 +100,28 @@ This example shows how to set the data disk and NIC to be deleted when the VM is
100
100
PUT
101
101
https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/myVM?api-version=xx
102
102
{
103
- "storageProfile": {
103
+ "storageProfile": {
104
104
"dataDisks": [
105
- { "diskSizeGB": 1023,
105
+ {
106
+ "diskSizeGB": 1023,
106
107
"name": "myVMdatadisk",
107
108
"createOption": "Empty",
108
109
"lun": 0,
109
- "deleteOption": “Delete”
110
- } ]
111
- },
112
- "networkProfile": {
110
+ "deleteOption": "Delete"
111
+ }
112
+ ]
113
+ },
114
+ "networkProfile": {
113
115
"networkInterfaces": [
114
- { "id": "/subscriptions/.../Microsoft.Network/networkInterfaces/myNIC",
116
+ {
117
+ "id": "/subscriptions/.../Microsoft.Network/networkInterfaces/myNIC",
115
118
"properties": {
116
119
"primary": true,
117
- "deleteOption": “Delete”
118
- } }
119
- ]
120
+ "deleteOption": "Delete"
121
+ }
122
+ }
123
+ ]
124
+ }
120
125
}
121
126
```
122
127
@@ -264,15 +269,14 @@ PATCH https://management.azure.com/subscriptions/subID/resourceGroups/resourcegr
264
269
"networkProfile": {
265
270
"networkInterfaces": [
266
271
{
267
- "id": "/subscriptions/subID/resourceGroups/resourcegroup/providers/Microsoft.Network/networkInterfaces/nic336"
268
- ,
272
+ "id": "/subscriptions/subID/resourceGroups/resourcegroup/providers/Microsoft.Network/networkInterfaces/nic336",
269
273
"properties": {
270
- "deleteOption": "Delete"
271
- }
272
- }
274
+ "deleteOption": "Delete"
275
+ }
276
+ }
273
277
]
274
278
}
275
- }
279
+ }
276
280
}
277
281
```
278
282
---
You can’t perform that action at this time.
0 commit comments