Skip to content

CLI Support - Disk Availability Policy #31914

@VikasMohandoss

Description

@VikasMohandoss

Related command
az disk create

Is your feature request related to a problem? Please describe.
Whenever the availability or connectivity between a VM and the associated Azure managed disk is affected for more than 180 seconds, the Azure platform performs a forced shutdown of the VMs. The VMs are automatically powered back on after storage connectivity has been restored.
Disk availability policy is a new disk property that enables customers to avoid rebooting the VM when a data disk experiences an issue. Users can leverage this feature to opt into taking the data disk offline on an IO timeout exceeding 180 seconds without disrupting the running state of the VM. While the disk is offline, the Azure platform will detach the disk and any IO to that disk will return an error. Once the underlying platform issue is resolved, Azure will automatically reattach the disk, bring the disk back online, and make it available to use for the VM.

Describe the solution you'd like
a. Add properties.availabilityPolicy.actionOnDiskDelay to CLI
i. “AutomaticReattach” – Set the disk availability policy
ii. “None” – Remove the disk availability policy. (Default)

Describe alternatives you've considered
N/A

Additional context
N/A

Minimum API Version Required
2025-01-02

Swagger PR link / SDK link
Azure/azure-rest-api-specs#34917

Request Example
Some mock up:
Update: az disk update –availabilitypolicy {“actionOnDiskDelay:AutomaticReattach” }
Create: az disk create –availabilitypolicy {“actionOnDiskDelay:AutomaticReattach” }

Target Date
2025-08-31

PM Contact
[email protected]

Engineer Contact
[email protected]

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotfeature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions