Skip to content

Feature Request - ForceDeallocate flag with exisiting "az vm deallocate" #33717

Description

@tambibhavika29022000

Preconditions

  • No need to upgrade Python SDK or the Python SDK is ready.

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

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions