-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Resource Provider
- Compute Resource Provider (Microsoft.Compute)
Description of Feature or Work Requested
Azure will now support force-detaching managed data disks from a VM. This feature is supported as part of VM recovery scenarios, when a VM is unresponsive due to unexpected failure in underlying stack, Client can choose to just forcibly detach a data disk to mount it and use with another healthy VM. This feature is supported exclusively only for managed disks [Azure Managed Disks] and on Single instance/ Availability set VMs
The existing Az-CLI cmd az vm disk detach should be updated to support a optional --forceDetach param which internally should set tobeDetached and detachOption property of the disk. Force-detaching a data disk is currently supported only by setting toBeDetached == true and detachOption == 'ForceDetach' on the DataDisk
Additional References:
- PowerShell cmdlet update design request: https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/851
Minimum API Version Required
2020-12-01
Swagger Link
- Adding new 'detachOption' property for data disk force-detach using Update VM azure-rest-api-specs#11554
- New optional detachOption property introduced for data disk.
- Sample update (Put/Patch) VM request to force-detach a disk
Target Date
March/April 2021 or the next Az-Cli release which ever is the earliest