Skip to content

[Az.Compute] Add AvailabilityPolicy support for Managed Disks#225

Open
aimuhire wants to merge 165 commits intoPSCmdAssistant:mainfrom
aimuhire:copilot/add-disk-availability-policy-cmdlets
Open

[Az.Compute] Add AvailabilityPolicy support for Managed Disks#225
aimuhire wants to merge 165 commits intoPSCmdAssistant:mainfrom
aimuhire:copilot/add-disk-availability-policy-cmdlets

Conversation

@aimuhire
Copy link
Copy Markdown

@aimuhire aimuhire commented Feb 9, 2026

Description

Exposes Azure SDK's existing Disk Availability Policy feature through PowerShell cmdlets, enabling configuration of VM behavior when disks experience I/O degradation.

New Parameter:

  • -ActionOnDiskDelay parameter added to New-AzDiskConfig and New-AzDiskUpdateConfig
  • Supported values: None, AutomaticReattach

Cmdlets Updated:

  • New-AzDiskConfig
  • New-AzDiskUpdateConfig

Usage

# Create disk with automatic reattachment on I/O issues
$config = New-AzDiskConfig -Location "EastUS" -DiskSizeGB 5 `
    -SkuName Standard_LRS -CreateOption Empty `
    -ActionOnDiskDelay 'AutomaticReattach'
New-AzDisk -ResourceGroupName "rg" -DiskName "disk" -Disk $config

# Update existing disk policy
$update = New-AzDiskUpdateConfig -ActionOnDiskDelay 'None'
Update-AzDisk -ResourceGroupName "rg" -DiskName "disk" -Disk $update

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

baoqihuang0326 and others added 30 commits November 4, 2025 09:21
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Riddhi Nilawar <rinilawar@microsoft.com>
Co-authored-by: Xiaogang <xidi@microsoft.com>
Co-authored-by: Riddhi Nilawar <rinilawar@microsoft.com>
… into release-network-2025-03-01-sync

Sync with main
…elp_file_issue

Fix PS release due to missing online version URL in NVA help file
Co-authored-by: Santosh Lokarapu <v-slokar@microsoft.com>
Co-authored-by: Karthik Gumpu <gumpukarthik@gmail.com>
Co-authored-by: Karthik Gumpu (from Dev Box) <karthikgumpu@microsoft.com>
Co-authored-by: Bhanu Chand J <bhanuchandj@microsoft.com>
Azure#28856)

Co-authored-by: Prakriti Gupta <prakgupta@microsoft.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
janielMartell and others added 14 commits January 28, 2026 13:32
Co-authored-by: Janiel Martell Colon <janielm@microsoft.com>
Co-authored-by: Vincent Dai <23257217+vidai-msft@users.noreply.github.com>
Co-authored-by: Janiel Martell Colon <janielm@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…zure#29143)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: isra-fel <11371776+isra-fel@users.noreply.github.com>
Co-authored-by: Yeming Liu <yeliu@microsoft.com>
Co-authored-by: Yeming Liu <yeliu@microsoft.com>
Co-authored-by: DanielMicrosoft <dlanguiller@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Srinivaas Ganesan <srganesa@microsoft.com>
@aimuhire aimuhire marked this pull request as ready for review February 9, 2026 22:49
@aimuhire aimuhire force-pushed the copilot/add-disk-availability-policy-cmdlets branch from c3dda8f to cf08ffb Compare February 10, 2026 18:09
haagha and others added 6 commits February 10, 2026 10:18
This agent will create a Powershell PR based on the issue described. It will write tests, make code changes and add changelog.
Co-authored-by: audreyttt <225061541+audreyttt@users.noreply.github.com>
@aimuhire aimuhire force-pushed the copilot/add-disk-availability-policy-cmdlets branch from cf08ffb to 96bd468 Compare February 10, 2026 18:21
…riptions, fix test location, fix changelog
@aimuhire aimuhire force-pushed the copilot/add-disk-availability-policy-cmdlets branch from c6f67f8 to 22db800 Compare February 11, 2026 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.