Azure Virtual Machines Virtual Machine Scale Set Rolling Upgrades API

The VirtualMachineScaleSetRollingUpgrades API from Azure Virtual Machines — 4 operation(s) for virtualmachinescalesetrollingupgrades.

GitHub OpenAPI

Operations 4

POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade Virtual machine scale set rolling upgrades start extension upgrade #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade Virtual machine scale set rolling upgrades start OS upgrade #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel Virtual machine scale set rolling upgrades cancel #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest Virtual machine scale set rolling upgrades get latest #

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-virtualmachinescalesetrollingupgrades-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-virtualmachinescalesetrollingupgrades-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: VirtualMachineScaleSetRollingUpgrades
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade
  : post:
      operationId: VirtualMachineScaleSetRollingUpgrades_StartExtensionUpgrade
      tags:
      - VirtualMachineScaleSetRollingUpgrades
      description: Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the latest available extension version. Instances which are already running the latest extension versions are not affected.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: vmScaleSetName
        in: path
        description: The name of the VM scale set.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
        '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
      summary: Virtual machine scale set rolling upgrades start extension upgrade
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade
  : post:
      operationId: VirtualMachineScaleSetRollingUpgrades_StartOSUpgrade
      tags:
      - VirtualMachineScaleSetRollingUpgrades
      description: Starts a rolling upgrade to move all virtual machine scale set instances to the latest available Platform Image OS version. Instances which are already running the latest available OS version are not affected.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: vmScaleSetName
        in: path
        description: The name of the VM scale set.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
        '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
      summary: Virtual machine scale set rolling upgrades start OS upgrade
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel
  : post:
      operationId: VirtualMachineScaleSetRollingUpgrades_Cancel
      tags:
      - VirtualMachineScaleSetRollingUpgrades
      description: Cancels the current virtual machine scale set rolling upgrade.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: vmScaleSetName
        in: path
        description: The name of the VM scale set.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
        '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
      summary: Virtual machine scale set rolling upgrades cancel
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest
  : get:
      operationId: VirtualMachineScaleSetRollingUpgrades_GetLatest
      tags:
      - VirtualMachineScaleSetRollingUpgrades
      description: Gets the status of the latest virtual machine scale set rolling upgrade.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: vmScaleSetName
        in: path
        description: The name of the VM scale set.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RollingUpgradeStatusInfo'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine scale set rolling upgrades get latest
      x-summary-source: derived
components:
  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
  schemas:
    RollingUpgradeProgressInfo:
      type: object
      description: Information about the number of virtual machine instances in each upgrade state.
      properties:
        successfulInstanceCount:
          type: integer
          format: int32
          description: The number of instances that have been successfully upgraded.
          readOnly: true
        failedInstanceCount:
          type: integer
          format: int32
          description: The number of instances that have failed to be upgraded successfully.
          readOnly: true
        inProgressInstanceCount:
          type: integer
          format: int32
          description: The number of instances that are currently being upgraded.
          readOnly: true
        pendingInstanceCount:
          type: integer
          format: int32
          description: The number of instances that have not yet begun to be upgraded.
          readOnly: 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.
    CloudError:
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      description: An error response from the Compute service.
    RollingUpgradeRunningStatus:
      type: object
      description: Information about the current running state of the overall upgrade.
      properties:
        code:
          $ref: '#/components/schemas/RollingUpgradeStatusCode'
          description: Code indicating the current status of the upgrade.
          readOnly: true
        startTime:
          type: string
          format: date-time
          description: Start time of the upgrade.
          readOnly: true
        lastAction:
          $ref: '#/components/schemas/RollingUpgradeActionType'
          description: The last action performed on the rolling upgrade.
          readOnly: true
        lastActionTime:
          type: string
          format: date-time
          description: Last action time of the upgrade.
          readOnly: true
    RollingUpgradeStatusInfoProperties:
      type: object
      description: The status of the latest virtual machine scale set rolling upgrade.
      properties:
        policy:
          $ref: '#/components/schemas/RollingUpgradePolicy'
          description: The rolling upgrade policies applied for this upgrade.
          readOnly: true
        runningStatus:
          $ref: '#/components/schemas/RollingUpgradeRunningStatus'
          description: Information about the current running state of the overall upgrade.
          readOnly: true
        progress:
          $ref: '#/components/schemas/RollingUpgradeProgressInfo'
          description: Information about the number of virtual machine instances in each upgrade state.
          readOnly: true
        error:
          $ref: '#/components/schemas/ApiError'
          description: Error details for this upgrade, if there are any.
          readOnly: true
    RollingUpgradePolicy:
      type: object
      description: The configuration parameters used while performing a rolling upgrade.
      properties:
        maxBatchInstancePercent:
          type: integer
          format: int32
          description: The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The default value for this parameter is 20%.
          minimum: 5
          maximum: 100
        maxUnhealthyInstancePercent:
          type: integer
          format: int32
          description: The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The default value for this parameter is 20%.
          minimum: 5
          maximum: 100
        maxUnhealthyUpgradedInstancePercent:
          type: integer
          format: int32
          description: The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The default value for this parameter is 20%.
          maximum: 100
        pauseTimeBetweenBatches:
          type: string
          description: The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. The default value is 0 seconds (PT0S).
        enableCrossZoneUpgrade:
          type: boolean
          description: Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size.
        prioritizeUnhealthyInstances:
          type: boolean
          description: Upgrade all unhealthy instances in a scale set before any healthy instances.
        rollbackFailedInstancesOnPolicyBreach:
          type: boolean
          description: Rollback failed instances to previous model if the Rolling Upgrade policy is violated.
        maxSurge:
          type: boolean
          description: Create new virtual machines to upgrade the scale set, rather than updating the existing virtual machines. Existing virtual machines will be deleted once the new virtual machines are created for each batch.
    RollingUpgradeActionType:
      type: string
      description: The last action performed on the rolling upgrade.
      enum:
      - Start
      - Cancel
      x-ms-enum:
        name: RollingUpgradeActionType
        modelAsString: false
    RollingUpgradeStatusInfo:
      type: object
      description: The status of the latest virtual machine scale set rolling upgrade.
      properties:
        properties:
          $ref: '#/components/schemas/RollingUpgradeStatusInfoProperties'
          description: The status of the latest virtual machine scale set rolling upgrade.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/TrackedResource'
    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'
    RollingUpgradeStatusCode:
      type: string
      description: Code indicating the current status of the upgrade.
      enum:
      - RollingForward
      - RollingBack
      - Cancelled
      - Completed
      - Faulted
      x-ms-enum:
        name: RollingUpgradeStatusCode
        modelAsString: false
  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'