Azure Virtual Machines Capacity Reservation Groups API

The CapacityReservationGroups API from Azure Virtual Machines — 3 operation(s) for capacityreservationgroups.

GitHub OpenAPI

Operations 6

GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups Capacity reservation groups list by subscription #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups Capacity reservation groups list by resource group #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName} Capacity reservation groups get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName} Capacity reservation groups create or update #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName} Capacity reservation groups update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName} Capacity reservation groups delete #

Documentation

Specifications

SDKs

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-virtual-machines:microsoft-azure-virtual-machines-capacityreservationgroups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-virtual-machines-capacityreservationgroups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Compute resource management API.
  version: '2026-04-01'
  description: Compute Client
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: CapacityReservationGroups
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups:
    get:
      operationId: CapacityReservationGroups_ListBySubscription
      tags:
      - CapacityReservationGroups
      description: Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the response to get the next page of capacity reservation groups.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - name: $expand
        in: query
        description: The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response.
        required: false
        x-ms-enum:
          name: ExpandTypesForGetCapacityReservationGroups
          modelAsString: true
          values:
          - name: virtualMachineScaleSetVMs/$ref
            value: virtualMachineScaleSetVMs/$ref
          - name: virtualMachines/$ref
            value: virtualMachines/$ref
        schema:
          type: string
          enum:
          - virtualMachineScaleSetVMs/$ref
          - virtualMachines/$ref
      - name: resourceIdsOnly
        in: query
        description: The query option to fetch Capacity Reservation Group Resource Ids. <br> 'CreatedInSubscription' enables fetching Resource Ids for all capacity reservation group resources created in the subscription. <br> 'SharedWithSubscription' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription. <br> 'All' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription and created in the subscription.
        required: false
        x-ms-enum:
          name: ResourceIdOptionsForGetCapacityReservationGroups
          modelAsString: true
          values:
          - name: CreatedInSubscription
            value: CreatedInSubscription
          - name: SharedWithSubscription
            value: SharedWithSubscription
          - name: All
            value: All
        schema:
          type: string
          enum:
          - CreatedInSubscription
          - SharedWithSubscription
          - All
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityReservationGroupListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Capacity reservation groups list by subscription
      x-summary-source: derived
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups:
    get:
      operationId: CapacityReservationGroups_ListByResourceGroup
      tags:
      - CapacityReservationGroups
      description: Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the response to get the next page of capacity reservation groups.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: $expand
        in: query
        description: The expand expression to apply on the operation. Based on the expand param(s) specified we return Virtual Machine or ScaleSet VM Instance or both resource Ids which are associated to capacity reservation group in the response.
        required: false
        x-ms-enum:
          name: ExpandTypesForGetCapacityReservationGroups
          modelAsString: true
          values:
          - name: virtualMachineScaleSetVMs/$ref
            value: virtualMachineScaleSetVMs/$ref
          - name: virtualMachines/$ref
            value: virtualMachines/$ref
        schema:
          type: string
          enum:
          - virtualMachineScaleSetVMs/$ref
          - virtualMachines/$ref
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityReservationGroupListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Capacity reservation groups list by resource group
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}
  : get:
      operationId: CapacityReservationGroups_Get
      tags:
      - CapacityReservationGroups
      description: The operation that retrieves information about a capacity reservation group.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: capacityReservationGroupName
        in: path
        description: The name of the capacity reservation group.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the capacity reservations under the capacity reservation group which is a snapshot of the runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations.
        required: false
        x-ms-enum:
          name: CapacityReservationGroupInstanceViewTypes
          modelAsString: true
          values:
          - name: instanceView
            value: instanceView
        schema:
          type: string
          enum:
          - instanceView
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityReservationGroup'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Capacity reservation groups get
      x-summary-source: derived
    put:
      operationId: CapacityReservationGroups_CreateOrUpdate
      tags:
      - CapacityReservationGroups
      description: The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags and sharing profile may be modified. Please refer to https://aka.ms/CapacityReservation for more details.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: capacityReservationGroupName
        in: path
        description: The name of the capacity reservation group.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource 'CapacityReservationGroup' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityReservationGroup'
        '201':
          description: Resource 'CapacityReservationGroup' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityReservationGroup'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CapacityReservationGroup'
        description: Parameters supplied to the Create capacity reservation Group.
        required: true
      summary: Capacity reservation groups create or update
      x-summary-source: derived
    patch:
      operationId: CapacityReservationGroups_Update
      tags:
      - CapacityReservationGroups
      description: The operation to update a capacity reservation group. When updating a capacity reservation group, only tags and sharing profile may be modified.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: capacityReservationGroupName
        in: path
        description: The name of the capacity reservation group.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CapacityReservationGroup'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CapacityReservationGroupUpdate'
        description: Parameters supplied to the Update capacity reservation Group operation.
        required: true
      summary: Capacity reservation groups update
      x-summary-source: derived
    delete:
      operationId: CapacityReservationGroups_Delete
      tags:
      - CapacityReservationGroups
      description: The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: capacityReservationGroupName
        in: path
        description: The name of the capacity reservation group.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource deleted successfully.
        '202':
          description: Resource deletion accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      summary: Capacity reservation groups delete
      x-summary-source: derived
components:
  schemas:
    ApiError:
      type: object
      properties:
        details:
          type: array
          items:
            $ref: '#/components/schemas/ApiErrorBase'
          x-ms-identifiers:
          - message
          - target
          description: The Api error details
        innererror:
          $ref: '#/components/schemas/InnerError'
          description: The Api inner error
        code:
          type: string
          description: The error code.
        target:
          type: string
          description: The target of the particular error.
        message:
          type: string
          description: The error message.
      description: Api error.
    CapacityReservationStateInfo:
      type: object
      description: Details related to the current state for a Future capacity reservation.
      properties:
        reservationState:
          $ref: '#/components/schemas/ReservationState'
          description: The current state of the capacity reservation.
    SubResource:
      type: object
      properties:
        id:
          type: string
          description: Resource Id
    CapacityReservationGroup:
      type: object
      description: Specifies information about the capacity reservation group that the capacity reservations should be assigned to. Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group.
      properties:
        properties:
          $ref: '#/components/schemas/CapacityReservationGroupProperties'
          description: capacity reservation group Properties.
          x-ms-client-flatten: true
        zones:
          type: array
          description: The availability zones.
          items:
            type: string
      allOf:
      - $ref: '#/components/schemas/TrackedResource'
    CapacityReservationUtilization:
      type: object
      description: Represents the capacity reservation utilization in terms of resources allocated.
      properties:
        currentCapacity:
          type: integer
          format: int32
          description: 'The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01.'
          readOnly: true
        virtualMachinesAllocated:
          type: array
          description: A list of all virtual machines resource ids allocated against the capacity reservation.
          items:
            $ref: '#/components/schemas/SubResourceReadOnly'
          readOnly: true
        usedReservedCountBySubscription:
          type: object
          description: 'For open capacity reservations, this provides a map of the used reserved capacity count keyed by the subscription id (a GUID) that is consuming the capacity, i.e. each entry maps a consuming subscription id to the count of reserved capacity it is currently using. This is populated only for open capacity reservations and is not reported for targeted and block capacity reservations, which instead report allocation through virtualMachinesAllocated. Minimum api-version: 2026-04-01.'
          additionalProperties:
            format: int32
            type: integer
          readOnly: true
    ReservationState:
      type: string
      description: The current state of a Future capacity reservation.
      enum:
      - Pending
      - Declined
      - Approved
      - FulfillmentFailed
      - Committed
      - Live
      - PartiallyFulfilled
      x-ms-enum:
        name: ReservationState
        modelAsString: true
        values:
        - name: Pending
          value: Pending
          description: The capacity reservation request has been submitted and is awaiting evaluation.
        - name: Declined
          value: Declined
          description: The capacity reservation request was rejected, and will not change again without user action.
        - name: Approved
          value: Approved
          description: The capacity reservation request has been approved by Azure and is awaiting fulfillment.
        - name: FulfillmentFailed
          value: FulfillmentFailed
          description: A failure occurred while attempting to fulfill the capacity reservation request.
        - name: Committed
          value: Committed
          description: The capacity reservation is locked and cannot be updated or deleted prior to going live.
        - name: Live
          value: Live
          description: The capacity reservation is active and available for use, and cannot be modified or deleted until the minimum commitment period has elapsed.
        - name: PartiallyFulfilled
          value: PartiallyFulfilled
          description: Azure was only able to deliver a portion of the requested capacity. The capacity reservation cannot be modified or deleted until the minimum commitment period has elapsed. The portion of fulfilled capacity can be viewed by inspecting the capacity reservation's instance view, displayed as currentCapacity within the utilizationInfo.
    TrackedResource:
      type: object
      title: Tracked Resource
      description: The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - create
          - update
        location:
          type: string
          description: The geo-location where the resource lives
          x-ms-mutability:
          - read
          - create
      required:
      - location
      allOf:
      - $ref: '#/components/schemas/Resource'
    InstanceViewStatus:
      type: object
      description: Instance view status.
      properties:
        code:
          type: string
          description: The status code.
        level:
          $ref: '#/components/schemas/StatusLevelTypes'
          description: The level code.
        displayStatus:
          type: string
          description: The short localizable label for the status.
        message:
          type: string
          description: The detailed status message, including for alerts and error messages.
        time:
          type: string
          format: date-time
          description: The time of the status.
    CapacityReservationGroupListResult:
      type: object
      description: The List capacity reservation group with resource group response.
      properties:
        value:
          type: array
          description: The list of capacity reservation groups.
          items:
            $ref: '#/components/schemas/CapacityReservationGroup'
        nextLink:
          type: string
          format: uri
          description: The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI to fetch the next page of capacity reservation groups.
      required:
      - value
    SubResourceReadOnly:
      type: object
      properties:
        id:
          readOnly: true
          type: string
          description: Resource Id
    ReservationType:
      type: string
      description: Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations that enable a VM to consume capacity only from this capacity block when it is associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly associated capacity reservation group with the matching VM size and zone without associating that capacity reservation group and fall back to the publicly available capacity if the reservation is full. Future capacity reservations can be created in 'Targeted' or 'Open' capacity reservation groups. The reservation type is immutable and cannot be changed after the capacity reservation group is created.
      enum:
      - Targeted
      - Block
      - Open
      x-ms-enum:
        name: ReservationType
        modelAsString: true
        values:
        - name: Targeted
          value: Targeted
          description: Reservations that enable a VM to consume capacity from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the reservation is full.
        - name: Block
          value: Block
          description: Block capacity reservations that enable a VM to consume capacity only from this capacity block when it is associated using a capacity reservation group.
        - name: Open
          value: Open
          description: 'Reservations that a VM consumes when it is eligible from an implicitly associated capacity reservation group with the matching VM size and zone without associating that capacity reservation group, and fall back to the publicly available capacity if the reservation is full. Minimum api-version: 2026-04-01.'
    ResourceSharingProfile:
      type: object
      properties:
        subscriptionIds:
          type: array
          description: 'Specifies an array of subscription resource IDs that capacity reservation group is shared with. Block Capacity Reservations does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.'
          items:
            $ref: '#/components/schemas/SubResource'
    StatusLevelTypes:
      type: string
      description: The level code.
      enum:
      - Info
      - Warning
      - Error
      x-ms-enum:
        name: StatusLevelTypes
        modelAsString: false
    CapacityReservationGroupUpdate:
      type: object
      description: Specifies information about the capacity reservation group. Only tags can be updated.
      properties:
        properties:
          $ref: '#/components/schemas/CapacityReservationGroupProperties'
          description: capacity reservation group Properties.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/UpdateResource'
    CapacityReservationInstanceViewWithName:
      type: object
      description: The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group.
      properties:
        name:
          type: string
          description: The name of the capacity reservation.
          readOnly: true
      allOf:
      - $ref: '#/components/schemas/CapacityReservationInstanceView'
    CapacityReservationGroupProperties:
      type: object
      description: capacity reservation group Properties.
      properties:
        capacityReservations:
          type: array
          description: A list of all capacity reservation resource ids that belong to capacity reservation group.
          items:
            $ref: '#/components/schemas/SubResourceReadOnly'
          readOnly: true
        virtualMachinesAssociated:
          type: array
          description: A list of references to all virtual machines associated to the capacity reservation group.
          items:
            $ref: '#/components/schemas/SubResourceReadOnly'
          readOnly: true
        instanceView:
          $ref: '#/components/schemas/CapacityReservationGroupInstanceView'
          description: The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group.
          readOnly: true
        sharingProfile:
          $ref: '#/components/schemas/ResourceSharingProfile'
          description: 'Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. The capacity reservation group resource can be shared only across subscriptions belonging to the same Microsoft Entra ID tenant. Sharing across tenants is not supported. Block capacity reservation does not support sharing across subscriptions. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.'
        reservationType:
          $ref: '#/components/schemas/ReservationType'
          description: Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations that enable a VM to consume capacity only from this capacity block when it is associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly associated capacity reservation group with the matching VM size and zone without associating that capacity reservation group and fall back to the publicly available capacity if the reservation is full. The reservation type is immutable and cannot be changed after the capacity reservation group is created.
    CloudError:
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      description: An error response from the Compute service.
    CapacityReservationGroupInstanceView:
      type: object
      properties:
        capacityReservations:
          type: array
          description: List of instance view of the capacity reservations under the capacity reservation group.
          items:
            $ref: '#/components/schemas/CapacityReservationInstanceViewWithName'
          readOnly: true
          x-ms-identifiers:
          - name
        sharedSubscriptionIds:
          type: array
          description: 'List of the subscriptions that the capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.'
          items:
            $ref: '#/components/schemas/SubResourceReadOnly'
          readOnly: true
          x-ms-identifiers:
          - id
    CapacityReservationInstanceView:
      type: object
      description: The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.
      properties:
        utilizationInfo:
          $ref: '#/components/schemas/CapacityReservationUtilization'
          description: Unutilized capacity of the capacity reservation.
        statuses:
          type: array
          description: The resource status information.
          items:
            $ref: '#/components/schemas/InstanceViewStatus'
          x-ms-identifiers: []
        reservationStateInfo:
          $ref: '#/components/schemas/CapacityReservationStateInfo'
          description: 'The reservation state information for a capacity reservation, this detail is primarily provided for Future capacity reservations. Minimum API version: 2026-04-01.'
    UpdateResource:
      type: object
      description: The Update Resource model definition.
      properties:
        tags:
          type: object
          description: Resource tags
          additionalProperties:
            type: string
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription.
      required: true
      schema:
        type: string
        minLength: 1
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.
x-ms-paths:
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions?$expand=Properties
  : get:
      operationId: VirtualMachineImages_ListWithProperties
      tags:
      - VirtualMachineImages
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        type: string
      - name: offer
        in: path
        description: A valid image publisher offer.
        required: true
        type: string
      - name: skus
        in: path
        description: A valid image SKU.
        required: true
        type: string
      - name: $expand
        in: query
        description: The expand expression to apply on the operation.
        required: true
        type: string
      - name: $top
        in: query
        required: false
        type: integer
        format: int32
      - name: $orderby
        in: query
        required: false
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            type: array
            items:
              $ref: '#/components/schemas/VirtualMachineImage'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/components/schemas/CloudError'