Preconditions
Related command
az vm deallocate --forceDeallocate
ForceDeallocate option need to be added similar to existing --hibernate option.
Resource Provider
Microsoft.Compute/virtualMachines
Description of Feature or Work Requested
The new --ForceDeallocate switch enables customers to force-stop (deallocate) a virtual machine. Unlike the standard stop operation, this option is designed to be resilient to platform outages, allowing the platform to forcefully deallocate the VM even when the normal stop workflow cannot complete successfully.
When the switch is not specified, az vm deallocate continues to use the existing stop/deallocate behavior with no change to current functionality.
Minimum API Version Required
2025-11-01
Swagger PR link / SDK link
Azure/azure-rest-api-specs#39377
Request Example
https://github.com/Azure/azure-rest-api-specs/blob/7b8cab318ce169b3b4b5840ceb40fd222ac88b0f/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-11-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_WithForceDeallocate.json
Target Date
2026-09-01
PM Contact
aarthiv@microsoft.com
Engineer Contact
kirankumarp@microsoft.com , bhavikatambi@micirosoft.com
Additional context
No response
Preconditions
Related command
az vm deallocate --forceDeallocateForceDeallocate option need to be added similar to existing --hibernate option.
Resource Provider
Microsoft.Compute/virtualMachines
Description of Feature or Work Requested
The new --ForceDeallocate switch enables customers to force-stop (deallocate) a virtual machine. Unlike the standard stop operation, this option is designed to be resilient to platform outages, allowing the platform to forcefully deallocate the VM even when the normal stop workflow cannot complete successfully.
When the switch is not specified, az vm deallocate continues to use the existing stop/deallocate behavior with no change to current functionality.
Minimum API Version Required
2025-11-01
Swagger PR link / SDK link
Azure/azure-rest-api-specs#39377
Request Example
https://github.com/Azure/azure-rest-api-specs/blob/7b8cab318ce169b3b4b5840ceb40fd222ac88b0f/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-11-01/examples/virtualMachineExamples/VirtualMachine_Deallocate_WithForceDeallocate.json
Target Date
2026-09-01
PM Contact
aarthiv@microsoft.com
Engineer Contact
kirankumarp@microsoft.com , bhavikatambi@micirosoft.com
Additional context
No response