Azure Virtual Machines Virtual Machine Images API

The VirtualMachineImages API from Azure Virtual Machines — 11 operation(s) for virtualmachineimages.

GitHub OpenAPI

Operations 11

GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers Virtual machine images edge zone list publishers #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers Virtual machine images edge zone list offers #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus Virtual machine images edge zone list skus #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions Virtual machine images edge zone list #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version} Virtual machine images edge zone get #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages Virtual machine images list by edge zone #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers Virtual machine images list publishers #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers Virtual machine images list offers #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus Virtual machine images list skus #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions Virtual machine images list #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version} Virtual machine images get #

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-virtualmachineimages-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-virtualmachineimages-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: VirtualMachineImages
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers:
    get:
      operationId: VirtualMachineImagesEdgeZone_ListPublishers
      tags:
      - VirtualMachineImages
      description: Gets a list of virtual machine image publishers for the specified Azure location and edge zone.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: edgeZone
        in: path
        description: The name of the edge zone.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VirtualMachineImageResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images edge zone list publishers
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers
  : get:
      operationId: VirtualMachineImagesEdgeZone_ListOffers
      tags:
      - VirtualMachineImages
      description: Gets a list of virtual machine image offers for the specified location, edge zone and publisher.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: edgeZone
        in: path
        description: The name of the edge zone.
        required: true
        schema:
          type: string
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VirtualMachineImageResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images edge zone list offers
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus
  : get:
      operationId: VirtualMachineImagesEdgeZone_ListSkus
      tags:
      - VirtualMachineImages
      description: Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: edgeZone
        in: path
        description: The name of the edge zone.
        required: true
        schema:
          type: string
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        schema:
          type: string
      - name: offer
        in: path
        description: A valid image publisher offer.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VirtualMachineImageResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images edge zone list skus
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions
  : get:
      operationId: VirtualMachineImagesEdgeZone_List
      tags:
      - VirtualMachineImages
      description: Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: edgeZone
        in: path
        description: The name of the edge zone.
        required: true
        schema:
          type: string
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        schema:
          type: string
      - name: offer
        in: path
        description: A valid image publisher offer.
        required: true
        schema:
          type: string
      - name: skus
        in: path
        description: A valid image SKU.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: The expand expression to apply on the operation.
        required: false
        schema:
          type: string
      - name: $top
        in: query
        description: An integer value specifying the number of images to return that matches supplied values.
        required: false
        schema:
          type: integer
          format: int32
      - name: $orderby
        in: query
        description: Specifies the order of the results returned. Formatted as an OData query.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VirtualMachineImageResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images edge zone list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}
  : get:
      operationId: VirtualMachineImagesEdgeZone_Get
      tags:
      - VirtualMachineImages
      description: Gets a virtual machine image in an edge zone.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: edgeZone
        in: path
        description: The name of the edge zone.
        required: true
        schema:
          type: string
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        schema:
          type: string
      - name: offer
        in: path
        description: A valid image publisher offer.
        required: true
        schema:
          type: string
      - name: skus
        in: path
        description: A valid image SKU.
        required: true
        schema:
          type: string
      - name: version
        in: path
        description: A valid image SKU version.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualMachineImage'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images edge zone get
      x-summary-source: derived
  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages:
    get:
      operationId: VirtualMachineImages_ListByEdgeZone
      tags:
      - VirtualMachineImages
      description: Gets a list of all virtual machine image versions for the specified edge zone
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: edgeZone
        in: path
        description: The name of the edge zone.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VmImagesInEdgeZoneListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images list by edge zone
      x-summary-source: derived
  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers:
    get:
      operationId: VirtualMachineImages_ListPublishers
      tags:
      - VirtualMachineImages
      description: Gets a list of virtual machine image publishers for the specified Azure location.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VirtualMachineImageResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images list publishers
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers
  : get:
      operationId: VirtualMachineImages_ListOffers
      tags:
      - VirtualMachineImages
      description: Gets a list of virtual machine image offers for the specified location and publisher.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VirtualMachineImageResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images list offers
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus
  : get:
      operationId: VirtualMachineImages_ListSkus
      tags:
      - VirtualMachineImages
      description: Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        schema:
          type: string
      - name: offer
        in: path
        description: A valid image publisher offer.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VirtualMachineImageResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images list skus
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions
  : get:
      operationId: VirtualMachineImages_List
      tags:
      - VirtualMachineImages
      description: Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        schema:
          type: string
      - name: offer
        in: path
        description: A valid image publisher offer.
        required: true
        schema:
          type: string
      - name: skus
        in: path
        description: A valid image SKU.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: The expand expression to apply on the operation.
        required: false
        schema:
          type: string
      - name: $top
        in: query
        required: false
        schema:
          type: integer
          format: int32
      - name: $orderby
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/VirtualMachineImageResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}
  : get:
      operationId: VirtualMachineImages_Get
      tags:
      - VirtualMachineImages
      description: Gets a virtual machine image.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        schema:
          type: string
      - name: offer
        in: path
        description: A valid image publisher offer.
        required: true
        schema:
          type: string
      - name: skus
        in: path
        description: A valid image SKU.
        required: true
        schema:
          type: string
      - name: version
        in: path
        description: A valid image SKU version.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualMachineImage'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine images get
      x-summary-source: derived
components:
  parameters:
    LocationParameter:
      name: location
      in: path
      description: The name of Azure region.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription.
      required: true
      schema:
        type: string
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  schemas:
    VmDiskTypes:
      type: string
      description: VM disk types which are disallowed.
      enum:
      - None
      - Unmanaged
      x-ms-enum:
        name: VmDiskTypes
        modelAsString: true
        values:
        - name: None
          value: None
        - name: Unmanaged
          value: Unmanaged
    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.
    SubResource:
      type: object
      properties:
        id:
          type: string
          description: Resource Id
    ExtendedLocation:
      type: object
      description: The complex type of the extended location.
      properties:
        name:
          type: string
          description: The name of the extended location.
        type:
          $ref: '#/components/schemas/ExtendedLocationType'
          description: The type of the extended location.
    VirtualMachineImage:
      type: object
      description: Describes a Virtual Machine Image.
      properties:
        properties:
          $ref: '#/components/schemas/VirtualMachineImageProperties'
          description: Describes the properties of a Virtual Machine Image.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/VirtualMachineImageResource'
    Common.OperatingSystemTypes:
      type: string
      description: 'This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**'
      enum:
      - Windows
      - Linux
      x-ms-enum:
        name: OperatingSystemTypes
        modelAsString: false
    VirtualMachineImageProperties:
      type: object
      description: Describes the properties of a Virtual Machine Image.
      properties:
        plan:
          $ref: '#/components/schemas/PurchasePlan'
          description: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
        osDiskImage:
          $ref: '#/components/schemas/OSDiskImage'
          description: Contains the os disk image information.
        dataDiskImages:
          type: array
          description: The list of data disk images information.
          items:
            $ref: '#/components/schemas/DataDiskImage'
          x-ms-identifiers:
          - lun
        automaticOSUpgradeProperties:
          $ref: '#/components/schemas/AutomaticOSUpgradeProperties'
          description: Describes automatic OS upgrade properties on the image.
        hyperVGeneration:
          $ref: '#/components/schemas/HyperVGenerationTypes'
          description: Specifies the HyperVGeneration Type
        disallowed:
          $ref: '#/components/schemas/DisallowedConfiguration'
          description: Specifies disallowed configuration for the VirtualMachine created from the image
        features:
          type: array
          items:
            $ref: '#/components/schemas/VirtualMachineImageFeature'
          x-ms-identifiers:
          - name
        architecture:
          $ref: '#/components/schemas/ArchitectureTypes'
          description: Specifies the Architecture Type
        imageDeprecationStatus:
          $ref: '#/components/schemas/ImageDeprecationStatus'
          description: Describes image deprecation status properties on the image.
    DisallowedConfiguration:
      type: object
      description: Specifies the disallowed configuration for a virtual machine image.
      properties:
        vmDiskType:
          $ref: '#/components/schemas/VmDiskTypes'
          description: VM disk types which are disallowed.
    VmImagesInEdgeZoneListResult:
      type: object
      description: The List VmImages in EdgeZone operation response.
      properties:
        value:
          type: array
          description: The list of VMImages in EdgeZone
          items:
            $ref: '#/components/schemas/VirtualMachineImageResource'
        nextLink:
          type: string
          description: The URI to fetch the next page of VMImages in EdgeZone. Call ListNext() with this URI to fetch the next page of VmImages.
    AlternativeType:
      type: string
      description: Describes the type of the alternative option.
      enum:
      - None
      - Offer
      - Plan
      x-ms-enum:
        name: AlternativeType
        modelAsString: true
        values:
        - name: None
          value: None
        - name: Offer
          value: Offer
        - name: Plan
          value: Plan
    ArchitectureTypes:
      type: string
      description: Specifies the Architecture Type
      enum:
      - x64
      - Arm64
      x-ms-enum:
        name: ArchitectureTypes
        modelAsString: true
        values:
        - name: x64
          value: x64
        - name: Arm64
          value: Arm64
    VirtualMachineImageFeature:
      type: object
      description: Specifies additional capabilities supported by the image
      properties:
        name:
          type: string
          description: The name of the feature.
        value:
          type: string
          description: The corresponding value for the feature.
    AlternativeOption:
      type: object
      description: Describes the alternative option specified by the Publisher for this image when this image is deprecated.
      properties:
        type:
          $ref: '#/components/schemas/AlternativeType'
          description: Describes the type of the alternative option.
        value:
          type: string
          description: Indicates the alternative option value specified by the Publisher. This is the Offer name when the type is Offer or the Plan name when the type is Plan.
    PurchasePlan:
      type: object
      description: Used for establishing the purchase context of any 3rd Party artifact through MarketPlace.
      properties:
        publisher:
          type: string
          description: The publisher ID.
        name:
          type: string
          description: The plan ID.
        product:
          type: string
          description: Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element.
      required:
      - publisher
      - name
      - product
    CloudError:
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      description: An error response from the Compute service.
    AutomaticOSUpgradeProperties:
      type: object
      description: Describes automatic OS upgrade properties on the image.
      properties:
        automaticOSUpgradeSupported:
          type: boolean
          description: Specifies whether automatic OS upgrade is supported on the image.
      required:
      - automaticOSUpgradeSupported
    HyperVGenerationTypes:
      type: string
      description: Specifies the HyperVGeneration Type
      enum:
      - V1
      - V2
      x-ms-enum:
        name: HyperVGenerationTypes
        modelAsString: true
        values:
        - name: V1
          value: V1
        - name: V2
          value: V2
    ImageDeprecationStatus:
      type: object
      description: Describes image deprecation status properties on the image.
      properties:
        imageState:
          $ref: '#/components/schemas/ImageState'
          description: Describes the state of the image.
        scheduledDeprecationTime:
          type: string
          format: date-time
          description: The time, in future, at which this image will be marked as deprecated. This scheduled time is chosen by the Publisher.
        alternativeOption:
          $ref: '#/components/schemas/AlternativeOption'
          description: Describes the alternative option specified by the Publisher for this image when this image is deprecated.
    VirtualMachineImageResource:
      type: object
      description: Virtual machine image resource information.
      properties:
        name:
          type: string
          description: The name of the resource.
        location:
          type: string
          description: The supported Azure location of the resource.
        tags:
          type: object
          description: Specifies the tags that are assigned to the virtual machine. For more information about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).
          additionalProperties:
            type: string
        extendedLocation:
          $ref: '#/components/schemas/ExtendedLocation'
          description: The extended location of the Virtual Machine.
      required:
      - name
      - location
      allOf:
      - $ref: '#/components/schemas/SubResource'
    OSDiskImage:
      type: object
      description: Contains the os disk image information.
      properties:
        operatingSystem:
          $ref: '#/components/schemas/Common.OperatingSystemTypes'
          description: The operating system of the osDiskImage.
      required:
      - operatingSystem
    DataDiskImage:
      type: object
      description: Contains the data disk images information.
      properties:
        lun:
          type: integer
          format: int32
          description: Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
          readOnly: true
    ImageState:
      type: string
      description: Describes the state of the image.
      enum:
      - Active
      - ScheduledForDeprecation
      - Deprecated
      x-ms-enum:
        name: ImageState
        modelAsString: true
        values:
        - name: Active
          value: Active
        - name: ScheduledForDeprecation
          value: ScheduledForDeprecation
        - name: Deprecated
          value: Deprecated
  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'