Azure Virtual Machines Availability Sets API

The AvailabilitySets API from Azure Virtual Machines — 8 operation(s) for availabilitysets.

GitHub OpenAPI

Operations 11

GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets Availability sets list by subscription #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets Availability sets list #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName} Availability sets get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName} Availability sets create or update #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName} Availability sets update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName} Availability sets delete #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/cancelMigrationToVirtualMachineScaleSet Availability sets cancel migration to virtual machine scale set #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/convertToVirtualMachineScaleSet Availability sets convert to virtual machine scale set #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/startMigrationToVirtualMachineScaleSet Availability sets start migration to virtual machine scale set #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/validateMigrationToVirtualMachineScaleSet Availability sets validate migration to virtual machine scale set #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes Availability sets list available sizes #

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-availabilitysets-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-availabilitysets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Compute resource management API. Availability Sets 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: AvailabilitySets
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets:
    get:
      operationId: AvailabilitySets_ListBySubscription
      tags:
      - AvailabilitySets
      description: Lists all availability sets in a subscription.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - name: $expand
        in: query
        description: The expand expression to apply to the operation. Allowed values are 'instanceView'.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailabilitySetListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Availability sets list by subscription
      x-summary-source: derived
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets:
    get:
      operationId: AvailabilitySets_List
      tags:
      - AvailabilitySets
      description: Lists all availability sets in a resource group.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailabilitySetListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Availability sets list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}
  : get:
      operationId: AvailabilitySets_Get
      tags:
      - AvailabilitySets
      description: Retrieves information about an availability set.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: availabilitySetName
        in: path
        description: The name of the availability set.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailabilitySet'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Availability sets get
      x-summary-source: derived
    put:
      operationId: AvailabilitySets_CreateOrUpdate
      tags:
      - AvailabilitySets
      description: Create or update an availability set.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: availabilitySetName
        in: path
        description: The name of the availability set.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource 'AvailabilitySet' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailabilitySet'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AvailabilitySet'
        description: Parameters supplied to the Create Availability Set operation.
        required: true
      summary: Availability sets create or update
      x-summary-source: derived
    patch:
      operationId: AvailabilitySets_Update
      tags:
      - AvailabilitySets
      description: Update an availability set.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: availabilitySetName
        in: path
        description: The name of the availability set.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvailabilitySet'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AvailabilitySetUpdate'
        description: Parameters supplied to the Update Availability Set operation.
        required: true
      summary: Availability sets update
      x-summary-source: derived
    delete:
      operationId: AvailabilitySets_Delete
      tags:
      - AvailabilitySets
      description: Delete an availability set.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: availabilitySetName
        in: path
        description: The name of the availability set.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource deleted successfully.
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Availability sets delete
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/cancelMigrationToVirtualMachineScaleSet
  : post:
      operationId: AvailabilitySets_CancelMigrationToVirtualMachineScaleSet
      tags:
      - AvailabilitySets
      description: Cancel the migration operation on an Availability Set.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: availabilitySetName
        in: path
        description: The name of the availability set.
        required: true
        schema:
          type: string
      responses:
        '204':
          description: There is no content to send for this request, but the headers may be useful.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Availability sets cancel migration to virtual machine scale set
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/convertToVirtualMachineScaleSet
  : post:
      operationId: AvailabilitySets_ConvertToVirtualMachineScaleSet
      tags:
      - AvailabilitySets
      description: Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: availabilitySetName
        in: path
        description: The name of the availability set.
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Resource operation 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
        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
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConvertToVirtualMachineScaleSetInput'
        description: Parameters supplied to the migrate operation on the availability set.
      summary: Availability sets convert to virtual machine scale set
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/startMigrationToVirtualMachineScaleSet
  : post:
      operationId: AvailabilitySets_StartMigrationToVirtualMachineScaleSet
      tags:
      - AvailabilitySets
      description: Start migration operation on an Availability Set to move its Virtual Machines to a Virtual Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that triggers a downtime on the Virtual Machine.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: availabilitySetName
        in: path
        description: The name of the availability set.
        required: true
        schema:
          type: string
      responses:
        '204':
          description: There is no content to send for this request, but the headers may be useful.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MigrateToVirtualMachineScaleSetInput'
        description: Parameters supplied to the migrate operation on the availability set.
        required: true
      summary: Availability sets start migration to virtual machine scale set
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/validateMigrationToVirtualMachineScaleSet
  : post:
      operationId: AvailabilitySets_ValidateMigrationToVirtualMachineScaleSet
      tags:
      - AvailabilitySets
      description: Validates that the Virtual Machines in the Availability Set can be migrated to the provided Virtual Machine Scale Set.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: availabilitySetName
        in: path
        description: The name of the availability set.
        required: true
        schema:
          type: string
      responses:
        '204':
          description: There is no content to send for this request, but the headers may be useful.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MigrateToVirtualMachineScaleSetInput'
        description: Parameters supplied to the migrate operation on the availability set.
        required: true
      summary: Availability sets validate migration to virtual machine scale set
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes
  : get:
      operationId: AvailabilitySets_ListAvailableSizes
      tags:
      - AvailabilitySets
      description: Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: availabilitySetName
        in: path
        description: The name of the availability set.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualMachineSizeListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Availability sets list available sizes
      x-summary-source: derived
components:
  schemas:
    AllInstancesDown:
      type: object
      description: Specifies if Scheduled Events should be auto-approved when all instances are down.
      properties:
        automaticallyApprove:
          type: boolean
          description: 'Specifies if Scheduled Events should be auto-approved when all instances are down.

            its default value is true'
    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
    DefaultVirtualMachineScaleSetInfo:
      type: object
      description: Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.
      properties:
        constrainedMaximumCapacity:
          type: boolean
          description: Indicates if the the maximum capacity of the default migrated Virtual Machine Scale Set after its migration will be constrained to a limited number of VMs.
          readOnly: true
        defaultVirtualMachineScaleSet:
          $ref: '#/components/schemas/SubResource'
          description: The default Virtual Machine ScaleSet Uri that the Availability Set will be moved to upon triggering a seamless migration via the ConvertToVirtualMachineScaleSet API.
          readOnly: true
    ConvertToVirtualMachineScaleSetInput:
      type: object
      description: Describes the Virtual Machine Scale Set to convert from Availability Set.
      properties:
        virtualMachineScaleSetName:
          type: string
          description: Specifies information about the Virtual Machine Scale Set that the Availability Set should be converted to.
    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.
    StatusLevelTypes:
      type: string
      description: The level code.
      enum:
      - Info
      - Warning
      - Error
      x-ms-enum:
        name: StatusLevelTypes
        modelAsString: false
    VirtualMachineSize:
      type: object
      description: Describes the properties of a VM size.
      properties:
        name:
          type: string
          description: The name of the virtual machine size.
        numberOfCores:
          type: integer
          format: int32
          description: The number of cores supported by the virtual machine size. For Constrained vCPU capable VM sizes, this number represents the total vCPUs of quota that the VM uses. For accurate vCPU count, please refer to https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu or https://docs.microsoft.com/rest/api/compute/resourceskus/list
        osDiskSizeInMB:
          type: integer
          format: int32
          description: The OS disk size, in MB, allowed by the virtual machine size.
        resourceDiskSizeInMB:
          type: integer
          format: int32
          description: The resource disk size, in MB, allowed by the virtual machine size.
        memoryInMB:
          type: integer
          format: int32
          description: The amount of memory, in MB, supported by the virtual machine size.
        maxDataDiskCount:
          type: integer
          format: int32
          description: The maximum number of data disks that can be attached to the virtual machine size.
    ScheduledEventsPolicy:
      type: object
      description: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations.
      properties:
        userInitiatedRedeploy:
          $ref: '#/components/schemas/UserInitiatedRedeploy'
          description: The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
        userInitiatedReboot:
          $ref: '#/components/schemas/UserInitiatedReboot'
          description: The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
        scheduledEventsAdditionalPublishingTargets:
          $ref: '#/components/schemas/ScheduledEventsAdditionalPublishingTargets'
          description: The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
        allInstancesDown:
          $ref: '#/components/schemas/AllInstancesDown'
          description: The configuration parameters used while creating AllInstancesDown scheduled event setting creation.
    VirtualMachineScaleSetMigrationInfo:
      type: object
      description: Describes the Availability Set properties related to migration to Flexible Virtual Machine Scale Set.
      properties:
        defaultVirtualMachineScaleSetInfo:
          $ref: '#/components/schemas/DefaultVirtualMachineScaleSetInfo'
          description: Indicates the target Virtual Machine ScaleSet properties upon triggering a seamless migration without downtime of the VMs via the ConvertToVirtualMachineScaleSet API.
          readOnly: true
        migrateToVirtualMachineScaleSet:
          $ref: '#/components/schemas/SubResource'
          description: Specifies the Virtual Machine Scale Set that the Availability Set is migrated to.
          readOnly: true
    CloudError:
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      description: An error response from the Compute service.
    Sku:
      type: object
      description: 'Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name.'
      properties:
        name:
          type: string
          description: The sku name.
        tier:
          type: string
          description: Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**
        capacity:
          type: integer
          format: int64
          description: Specifies the number of virtual machines in the scale set.
    MigrateToVirtualMachineScaleSetInput:
      type: object
      description: Describes the Virtual Machine Scale Set to migrate from Availability Set.
      properties:
        virtualMachineScaleSetFlexible:
          $ref: '#/components/schemas/SubResource'
          description: 'Specifies information about the Virtual Machine Scale Set that the Availability Set should be migrated to. Minimum api‐version: 2024‐11‐01.'
      required:
      - virtualMachineScaleSetFlexible
    AvailabilitySetUpdate:
      type: object
      description: Specifies information about the availability set that the virtual machine should be assigned to. Only tags may be updated.
      properties:
        properties:
          $ref: '#/components/schemas/AvailabilitySetProperties'
          description: The instance view of a resource.
          x-ms-client-flatten: true
        sku:
          $ref: '#/components/schemas/Sku'
          description: Sku of the availability set
      allOf:
      - $ref: '#/components/schemas/UpdateResource'
    AvailabilitySet:
      type: object
      description: Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability set.
      properties:
        properties:
          $ref: '#/components/schemas/AvailabilitySetProperties'
          description: The instance view of a resource.
          x-ms-client-flatten: true
        sku:
          $ref: '#/components/schemas/Sku'
          description: Sku of the availability set, only name is required to be set. See AvailabilitySetSkuTypes for possible set of values. Use 'Aligned' for virtual machines with managed disks and 'Classic' for virtual machines with unmanaged disks. Default value is 'Classic'.
      allOf:
      - $ref: '#/components/schemas/TrackedResource'
    VirtualMachineSizeListResult:
      type: object
      description: The List Virtual Machine operation response.
      properties:
        value:
          type: array
          description: The list of virtual machine sizes.
          items:
            $ref: '#/components/schemas/VirtualMachineSize'
          x-ms-identifiers:
          - name
        nextLink:
          type: string
          description: The link to the next page of items.
    ScheduledEventsAdditionalPublishingTargets:
      type: object
      properties:
        eventGridAndResourceGraph:
          $ref: '#/components/schemas/EventGridAndResourceGraph'
          description: The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
    AvailabilitySetListResult:
      type: object
      description: The List Availability Set operation response.
      properties:
        value:
          type: array
          description: The list of availability sets.
          items:
            $ref: '#/components/schemas/AvailabilitySet'
        nextLink:
          type: string
          format: uri
          description: The URI to fetch the next page of AvailabilitySets. Call ListNext() with this URI to fetch the next page of AvailabilitySets.
      required:
      - value
    UserInitiatedReboot:
      type: object
      description: Specifies Reboot related Scheduled Event related configurations.
      properties:
        automaticallyApprove:
          type: boolean
          description: Specifies Reboot Scheduled Event related configurations.
    EventGridAndResourceGraph:
      type: object
      description: Specifies eventGridAndResourceGraph related Scheduled Event related configurations.
      properties:
        enable:
          type: boolean
          description: Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
        scheduledEventsApiVersion:
          type: string
          description: Specifies the api-version to determine which Scheduled Events configuration schema version will be delivered.
    AvailabilitySetProperties:
      type: object
      description: The instance view of a resource.
      properties:
        platformUpdateDomainCount:
          type: integer
          format: int32
          description: Update Domain count.
        platformFaultDomainCount:
          type: integer
          format: int32
          description: Fault Domain count.
        virtualMachines:
          type: array
          description: A list of references to all virtual machines in the availability set.
          items:
            $ref: '#/components/schemas/SubResource'
        proximityPlacementGroup:
          $ref: '#/components/schemas/SubResource'
          description: 'Specifies information about the proximity placement group that the availability set should be assigned to. Minimum api-version: 2018-04-01.'
        statuses:
          type: array
          description: The resource status information.
          items:
            $ref: '#/components/schemas/InstanceViewStatus'
          readOnly: true
          x-ms-identifiers: []
        scheduledEventsPolicy:
          $ref: '#/components/schemas/ScheduledEventsPolicy'
          description: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the availability set.
        virtualMachineScaleSetMigrationInfo:
          $ref: '#/components/schemas/VirtualMachineScaleSetMigrationInfo'
          description: Describes the migration properties on the Availability Set.
          readOnly: true
    UpdateResource:
      type: object
      description: The Update Resource model definition.
      properties:
        tags:
          type: object
          description: Resource tags
          additionalProperties:
            type: string
    UserInitiatedRedeploy:
      type: object
      description: Specifies Redeploy related Scheduled Event related configurations.
      properties:
        automaticallyApprove:
          type: boolean
          description: Specifies Redeploy Scheduled Event related configurations.
  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'