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
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/provider
171
171
172
172
## Update the delete behavior on an existing VM
173
173
174
-
You can change the behavior when you delete a VM. The following example updates the VM to delete the NIC, OS disk, and data disk when the VM is deleted.
@@ -317,18 +319,18 @@ You can use the Azure REST API to apply force delete to your virtual machines. U
317
319
318
320
---
319
321
320
-
## Force Delete for virtual machine scale sets
322
+
## Force Delete for scale sets
321
323
322
-
Force delete allows you to forcefully delete your **Uniform**virtual machine scale sets, reducing delete latency and immediately freeing up attached resources. . Force Delete will not immediately free the MAC address associated with a VM, as this is a physical resource that may take up to 10 min to free. If you need to immediately re-use the MAC address on a new VM, Force Delete is not recommended. Force delete should only be used when you are not intending to re-use virtual hard disks. You can use force delete through Portal, CLI, PowerShell, and REST API.
324
+
Force delete allows you to forcefully delete your **Uniform**Virtual Machine Scale Set, reducing delete latency and immediately freeing up attached resources. . Force Delete will not immediately free the MAC address associated with a VM, as this is a physical resource that may take up to 10 min to free. If you need to immediately re-use the MAC address on a new VM, Force Delete is not recommended. Force delete should only be used when you are not intending to re-use virtual hard disks. You can use force delete through Portal, CLI, PowerShell, and REST API.
323
325
324
326
### [Portal](#tab/portal5)
325
327
326
-
When you go to delete an existing virtual machine scale set, you will find an option to apply force delete in the delete pane.
328
+
When you go to delete an existing scale set, you will find an option to apply force delete in the delete pane.
327
329
328
330
1. Open the [portal](https://portal.azure.com).
329
-
1. Navigate to your virtual machine scale set.
331
+
1. Navigate to your Virtual Machine Scale Set.
330
332
1. On the **Overview** page, select **Delete**.
331
-
1. In the **Delete virtual machine scale set** pane, select the checkbox for **Apply force delete**.
333
+
1. In the **Delete Virtual Machine Scale Set** pane, select the checkbox for **Apply force delete**.
332
334
1. Select **Ok**.
333
335
334
336
### [CLI](#tab/cli5)
@@ -355,7 +357,7 @@ Remove-AzVmss `
355
357
356
358
### [REST](#tab/rest5)
357
359
358
-
You can use the Azure REST API to apply force delete to your virtual machine scale set. Use the `forceDeletion` parameter for [Virtual Machines Scale Sets - Delete](/rest/api/compute/virtual-machine-scale-sets/delete).
360
+
You can use the Azure REST API to apply force delete to your scale set. Use the `forceDeletion` parameter for [Virtual Machines Scale Sets - Delete](/rest/api/compute/virtual-machine-scale-sets/delete).
359
361
360
362
---
361
363
@@ -376,9 +378,9 @@ A: This feature is supported on all managed disk types used as OS disks and Data
376
378
A: No, this feature is only available on disks and NICs associated with a VM.
377
379
378
380
379
-
### Q: How does this feature work with Flexible virtual machine scale sets?
381
+
### Q: How does this feature work with Flexible Virtual Machine Scale Set?
380
382
381
-
A: For Flexible virtual machine scale sets the disks, NICs, and PublicIPs have `deleteOption` set to `Delete` by default so these resources are automatically cleaned up when the VMs are deleted.
383
+
A: For Flexible Virtual Machine Scale Set the disks, NICs, and PublicIPs have `deleteOption` set to `Delete` by default so these resources are automatically cleaned up when the VMs are deleted.
382
384
383
385
For data disks that were explicitly created and attached to the VMs, you can modify this property to ‘Detach’ instead of ‘Delete’ if you want the disks to persist after the VM is deleted.
0 commit comments