You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/delete.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,13 +53,13 @@ To specify what happens to the attached resources when you delete a VM, use the
53
53
-`--data-disk-delete-option` - data disk.
54
54
-`--nic-delete-option` - NIC.
55
55
56
-
In this example, we create a VM and set the OS disk and NIC to be deleted when we delete the VM.
56
+
In this example, we create a VM named *myVM* in the resource group named *myResourceGroup* using an image named *myImage*, and set the OS disk and NIC to be deleted when we delete the VM.
57
57
58
58
```azurecli-interactive
59
59
az vm create \
60
60
--resource-group myResourceGroup \
61
61
--name myVM \
62
-
--image UbuntuLTS \
62
+
--image myImage \
63
63
--public-ip-sku Standard \
64
64
--nic-delete-option delete \
65
65
--os-disk-delete-option delete \
@@ -363,14 +363,14 @@ You can use the Azure REST API to apply force delete to your scale set. Use the
363
363
364
364
## FAQ
365
365
366
-
### Q: Doesthis feature work with shared disks?
366
+
### Q: Doesthis feature work with shared disks?
367
367
368
-
A: For shared disks, you can't set the ‘deleteOption’property to‘Delete’. You can leave it blank or set it to ‘Detach’
368
+
A: For shared disks, you can't set the ‘deleteOption’property to‘Delete’. You can leave it blank or set it to ‘Detach’
369
369
370
370
371
371
### Q: Which Azure resources support this feature?
372
372
373
-
A: This feature is supported on all managed disk types used as OS disks and Data disks,NICs, and Public IPs
373
+
A: This feature is supported on all managed disk types used as OS disks and Data disks,NICs, and Public IPs
374
374
375
375
376
376
### Q: Can I use this feature on disks and NICs that aren't associated with a VM?
0 commit comments