Preconditions
Related command
az vmss create / az vmss update
--disable-capacity-reservation-assignment
az vmss show --resource-group <resource-group> --name <vmss-name> --instance-id <instance-id>
(surface capacityReservation.capacityReservationGroup.id)
az vmss get-instance-view --resource-group <resource-group> --name <vmss-name> --instance-id <instance-id>
(surface capacityReservationType)
Resource Provider
Microsoft.Compute/virtualMachineScaleSets,
Microsoft.Compute/virtualMachineScaleSets/virtualMachines
Description of Feature or Work Requested
Add Azure CLI support for VM Scale Set capacity reservation assignment and VMSS VM capacity reservation outputs introduced in Compute API version 2026-04-01:
- Add
--disable-capacity-reservation-assignment to az vmss create and az vmss update. This sets virtualMachineProfile.capacityReservation.disableCapacityReservationAssignment on the parent VMSS so its VM instances are explicitly opted out of implicit or explicit capacity reservation assignment and consume publicly available capacity. This is the opt-out counterpart to the existing --capacity-reservation-group option.
- Surface
capacityReservation.capacityReservationGroup.id from the individual VMSS VM model-view response through az vmss show --instance-id. The group is inherited from the parent VMSS and cannot be changed on the individual VMSS VM.
- Surface
capacityReservationType from the individual VMSS VM instance-view response through az vmss get-instance-view --instance-id. This indicates whether the instance consumes Targeted, Open, or Block reserved capacity, is NotEligible, or is explicitly Disabled.
This extends the Open Capacity Reservation work tracked in #33769 from standalone VMs to VMSS configuration and individual VMSS VM responses.
Minimum API Version Required
2026-04-01
Swagger PR link / SDK link
Request Example
Target Date
2026-08-15
PM Contact
N/A / TBD
Engineer Contact
Priyal Saxena (Priyal Saxena (@Priyal-Saxena))
Additional context
The REST API specification changes are merged into the compute-2026-04-01 feature branch and are pending promotion to main.
disableCapacityReservationAssignment and capacityReservationGroup represent opposing intents and should not be used together. For VMSS update scenarios, existing VMSS rollout behavior applies (for example, az vmss update-instances when required by the upgrade policy).
Feature flag for testing: Microsoft.Compute/OpenCapacityReservation.
Preconditions
Related command
Resource Provider
Microsoft.Compute/virtualMachineScaleSets,
Microsoft.Compute/virtualMachineScaleSets/virtualMachines
Description of Feature or Work Requested
Add Azure CLI support for VM Scale Set capacity reservation assignment and VMSS VM capacity reservation outputs introduced in Compute API version
2026-04-01:--disable-capacity-reservation-assignmenttoaz vmss createandaz vmss update. This setsvirtualMachineProfile.capacityReservation.disableCapacityReservationAssignmenton the parent VMSS so its VM instances are explicitly opted out of implicit or explicit capacity reservation assignment and consume publicly available capacity. This is the opt-out counterpart to the existing--capacity-reservation-groupoption.capacityReservation.capacityReservationGroup.idfrom the individual VMSS VM model-view response throughaz vmss show --instance-id. The group is inherited from the parent VMSS and cannot be changed on the individual VMSS VM.capacityReservationTypefrom the individual VMSS VM instance-view response throughaz vmss get-instance-view --instance-id. This indicates whether the instance consumesTargeted,Open, orBlockreserved capacity, isNotEligible, or is explicitlyDisabled.This extends the Open Capacity Reservation work tracked in #33769 from standalone VMs to VMSS configuration and individual VMSS VM responses.
Minimum API Version Required
2026-04-01
Swagger PR link / SDK link
Request Example
https://github.com/Azure/azure-rest-api-specs/blob/compute-2026-04-01/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2026-04-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_WithCapacityReservation.json
https://github.com/Azure/azure-rest-api-specs/blob/compute-2026-04-01/specification/compute/resource-manager/Microsoft.Compute/Compute/stable/2026-04-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSetVM_Get_InstanceViewWithCapacityReservationType.json
disableCapacityReservationAssignment:[OCR] Add Open Capacity Reservation SDK support azure-rest-api-specs#44376
Target Date
2026-08-15
PM Contact
N/A / TBD
Engineer Contact
Priyal Saxena (Priyal Saxena (@Priyal-Saxena))
Additional context
The REST API specification changes are merged into the
compute-2026-04-01feature branch and are pending promotion tomain.disableCapacityReservationAssignmentandcapacityReservationGrouprepresent opposing intents and should not be used together. For VMSS update scenarios, existing VMSS rollout behavior applies (for example,az vmss update-instanceswhen required by the upgrade policy).Feature flag for testing:
Microsoft.Compute/OpenCapacityReservation.