Azure Virtual Machines Virtual Machine Scale Set VM Extensions API

The VirtualMachineScaleSetVMExtensions API from Azure Virtual Machines — 2 operation(s) for virtualmachinescalesetvmextensions.

GitHub OpenAPI

Operations 5

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions Virtual machine scale set VM extensions list #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName} Virtual machine scale set VM extensions get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName} Virtual machine scale set VM extensions create or update #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName} Virtual machine scale set VM extensions update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName} Virtual machine scale set VM extensions 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-virtualmachinescalesetvmextensions-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-virtualmachinescalesetvmextensions-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: VirtualMachineScaleSetVMExtensions
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions
  : get:
      operationId: VirtualMachineScaleSetVMExtensions_List
      tags:
      - VirtualMachineScaleSetVMExtensions
      description: The operation to get all extensions of an instance in Virtual Machine Scaleset.
      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
      - name: instanceId
        in: path
        description: The instance ID of the virtual machine.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: The expand expression to apply on the operation.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualMachineScaleSetVMExtensionsListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine scale set VM extensions list
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}
  : get:
      operationId: VirtualMachineScaleSetVMExtensions_Get
      tags:
      - VirtualMachineScaleSetVMExtensions
      description: The operation to get the VMSS VM extension.
      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
      - name: instanceId
        in: path
        description: The instance ID of the virtual machine.
        required: true
        schema:
          type: string
      - name: vmExtensionName
        in: path
        description: The name of the virtual machine extension.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: The expand expression to apply on the operation.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualMachineScaleSetVMExtension'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Virtual machine scale set VM extensions get
      x-summary-source: derived
    put:
      operationId: VirtualMachineScaleSetVMExtensions_CreateOrUpdate
      tags:
      - VirtualMachineScaleSetVMExtensions
      description: The operation to create or update the VMSS VM extension.
      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
      - name: instanceId
        in: path
        description: The instance ID of the virtual machine.
        required: true
        schema:
          type: string
      - name: vmExtensionName
        in: path
        description: The name of the virtual machine extension.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource 'VirtualMachineScaleSetVMExtension' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualMachineScaleSetVMExtension'
        '201':
          description: Resource 'VirtualMachineScaleSetVMExtension' create operation succeeded
          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
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualMachineScaleSetVMExtension'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/VirtualMachineScaleSetVMExtension'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VirtualMachineScaleSetVMExtension'
        description: Parameters supplied to the Create Virtual Machine Extension operation.
        required: true
      summary: Virtual machine scale set VM extensions create or update
      x-summary-source: derived
    patch:
      operationId: VirtualMachineScaleSetVMExtensions_Update
      tags:
      - VirtualMachineScaleSetVMExtensions
      description: The operation to update the VMSS VM extension.
      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
      - name: instanceId
        in: path
        description: The instance ID of the virtual machine.
        required: true
        schema:
          type: string
      - name: vmExtensionName
        in: path
        description: The name of the virtual machine extension.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          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
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualMachineScaleSetVMExtension'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/VirtualMachineScaleSetVMExtension'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VirtualMachineScaleSetVMExtensionUpdate'
        description: Parameters supplied to the Update Virtual Machine Extension operation.
        required: true
      summary: Virtual machine scale set VM extensions update
      x-summary-source: derived
    delete:
      operationId: VirtualMachineScaleSetVMExtensions_Delete
      tags:
      - VirtualMachineScaleSetVMExtensions
      description: The operation to delete the VMSS VM extension.
      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
      - name: instanceId
        in: path
        description: The instance ID of the virtual machine.
        required: true
        schema:
          type: string
      - name: vmExtensionName
        in: path
        description: The name of the virtual machine extension.
        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: Virtual machine scale set VM extensions delete
      x-summary-source: derived
components:
  schemas:
    KeyVaultSecretReference:
      type: object
      description: Describes a reference to Key Vault Secret
      properties:
        secretUrl:
          type: string
          description: The URL referencing a secret in a Key Vault.
        sourceVault:
          $ref: '#/components/schemas/SubResource'
          description: The relative URL of the Key Vault containing the secret.
      required:
      - secretUrl
      - sourceVault
    StatusLevelTypes:
      type: string
      description: The level code.
      enum:
      - Info
      - Warning
      - Error
      x-ms-enum:
        name: StatusLevelTypes
        modelAsString: false
    VirtualMachineScaleSetVMExtensionUpdate:
      type: object
      description: Describes a VMSS VM Extension.
      properties:
        name:
          type: string
          description: The name of the extension.
          readOnly: true
        type:
          type: string
          description: Resource type
          readOnly: true
        properties:
          $ref: '#/components/schemas/VirtualMachineExtensionUpdateProperties'
          description: Describes the properties of a Virtual Machine Extension.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/SubResourceReadOnly'
    VirtualMachineScaleSetVMExtension:
      type: object
      description: Describes a VMSS VM Extension.
      properties:
        properties:
          $ref: '#/components/schemas/VirtualMachineExtensionProperties'
          description: Describes the properties of a Virtual Machine Extension.
          x-ms-client-flatten: true
        location:
          type: string
          description: The location of the extension.
          x-ms-mutability:
          - read
          - create
        type:
          type: string
          description: Resource type
          readOnly: true
        name:
          type: string
          description: Resource name
          readOnly: true
      allOf:
      - $ref: '#/components/schemas/SubResourceReadOnly'
    VirtualMachineScaleSetVMExtensionsListResult:
      type: object
      description: The List VMSS VM Extension operation response
      properties:
        value:
          type: array
          description: The list of VMSS VM extensions
          items:
            $ref: '#/components/schemas/VirtualMachineScaleSetVMExtension'
          x-ms-identifiers:
          - name
          - id
    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.
    VirtualMachineExtensionUpdateProperties:
      type: object
      description: Describes the properties of a Virtual Machine Extension.
      properties:
        forceUpdateTag:
          type: string
          description: How the extension handler should be forced to update even if the extension configuration has not changed.
        publisher:
          type: string
          description: The name of the extension handler publisher.
        type:
          type: string
          description: Specifies the type of the extension; an example is "CustomScriptExtension".
        typeHandlerVersion:
          type: string
          description: Specifies the Major.Minor version of the script handler. Customer is able to specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series.
        autoUpgradeMinorVersion:
          type: boolean
          description: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
        enableAutomaticUpgrade:
          type: boolean
          description: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
        settings:
          description: Json formatted public settings for the extension.
        protectedSettings:
          description: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
        suppressFailures:
          type: boolean
          description: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false.
        protectedSettingsFromKeyVault:
          $ref: '#/components/schemas/KeyVaultSecretReference'
          description: The extensions protected settings that are passed by reference, and consumed from key vault
    VirtualMachineExtensionInstanceView:
      type: object
      description: The instance view of a virtual machine extension.
      properties:
        name:
          type: string
          description: The virtual machine extension name.
        type:
          type: string
          description: Specifies the type of the extension; an example is "CustomScriptExtension".
        typeHandlerVersion:
          type: string
          description: Specifies the Major.Minor.Patch.Hotfix version of the script handler. Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series.
        substatuses:
          type: array
          description: The resource status information.
          items:
            $ref: '#/components/schemas/InstanceViewStatus'
          x-ms-identifiers: []
        statuses:
          type: array
          description: The resource status information.
          items:
            $ref: '#/components/schemas/InstanceViewStatus'
          x-ms-identifiers: []
    CloudError:
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      description: An error response from the Compute service.
    SubResource:
      type: object
      properties:
        id:
          type: string
          description: Resource Id
    VirtualMachineExtensionProperties:
      type: object
      description: Describes the properties of a Virtual Machine Extension.
      properties:
        forceUpdateTag:
          type: string
          description: How the extension handler should be forced to update even if the extension configuration has not changed.
        publisher:
          type: string
          description: The name of the extension handler publisher.
        type:
          type: string
          description: Specifies the type of the extension; an example is "CustomScriptExtension".
        typeHandlerVersion:
          type: string
          description: Specifies the Major.Minor version of the script handler. Customer is able to specify only the Major.Minor version of an extension, Azure platform will deliver the latest Patch.Hotfix version in the Major.Minor series.
        autoUpgradeMinorVersion:
          type: boolean
          description: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
        enableAutomaticUpgrade:
          type: boolean
          description: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
        settings:
          description: Json formatted public settings for the extension.
        protectedSettings:
          description: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
        provisioningState:
          type: string
          description: The provisioning state, which only appears in the response.
          readOnly: true
        instanceView:
          $ref: '#/components/schemas/VirtualMachineExtensionInstanceView'
          description: The virtual machine extension instance view.
        suppressFailures:
          type: boolean
          description: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false.
        protectedSettingsFromKeyVault:
          $ref: '#/components/schemas/KeyVaultSecretReference'
          description: The extensions protected settings that are passed by reference, and consumed from key vault
        provisionAfterExtensions:
          type: array
          description: Collection of extension names after which this extension needs to be provisioned.
          items:
            type: string
    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.
    SubResourceReadOnly:
      type: object
      properties:
        id:
          readOnly: true
          type: string
          description: Resource Id
  parameters:
    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
    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
  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'