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)
Add Azure CLI output support for two VM Scale Set VM capacity reservation properties introduced in Compute API version 2026-04-01:
Both properties are service-returned outputs. No new CLI input parameters or command syntax are requested.
The REST API specification changes are merged. SDK generation and publication are handled through the standard Compute SDK release process.
Preconditions
Related command
Resource Provider
Microsoft.Compute/virtualMachineScaleSets/virtualMachines
Description of Feature or Work Requested
Add Azure CLI output support for two VM Scale Set VM capacity reservation properties introduced in Compute API version
2026-04-01:capacityReservationon the VMSS VM model-view response. This exposes the capacity reservation group inherited from the parent VM scale set.capacityReservationTypeon the VMSS VM instance-view response. This indicates whether the instance consumesTargeted,Open, orBlockreserved capacity, isNotEligible, or is explicitlyDisabled.Both properties are service-returned outputs. No new CLI input parameters or command syntax are requested.
This extends the Open Capacity Reservation work tracked in #33769 to 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
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. SDK generation and publication are handled through the standard Compute SDK release process.