Microsoft Azure Custom Images API

The CustomImages API from Microsoft Azure, for customimages.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages List custom images in a DevTest lab · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which custom VM images are available in my DevTest Labs lab?”
“Can I filter or sort a lab's custom images?”
Tell an agent
List custom images in lab {labName}, resource group {resourceGroupName}, subscription {subscriptionId}.
Show the top {top} custom images in lab {labName} ({resourceGroupName}) matching {filter}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name} Get a lab custom image · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Where can I view one custom image in a DevTest lab?”
“What source VM and OS type does a particular lab image have?”
Tell an agent
Get custom image {name} in lab {labName}, group {resourceGroupName}, subscription {subscriptionId}.
Show details of DevTest image {name} from lab {labName} in {resourceGroupName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name} Create or replace a lab custom image · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I capture a custom image into my DevTest lab?”
“Why does creating a lab custom image take a while to finish?”
Tell an agent
Create custom image {name} in lab {labName} ({resourceGroupName}, {subscriptionId}) with properties {properties}.
Replace DevTest lab image {name} in {labName}, resource group {resourceGroupName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name} Delete a lab custom image · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I remove a custom image from a DevTest lab?”
“Is deleting a lab image a long-running operation?”
Tell an agent destructive · confirm first
Delete custom image {name} from lab {labName} in {resourceGroupName}, subscription {subscriptionId}.
Remove DevTest image {name} from lab {labName} ({resourceGroupName}).
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name} Update tags on a lab custom image · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change the tags on a custom image in my lab?”
“Which fields can be modified on an existing lab custom image?”
Tell an agent
Set tags {tags} on custom image {name} in lab {labName} ({resourceGroupName}, {subscriptionId}).
Retag DevTest image {name} in lab {labName}, group {resourceGroupName}.

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:microsoft-azure-customimages-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-customimages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: '2018-09-15'
  title: Microsoft Azure DevTestLabsClient Custom Images API
  description: The DevTest Labs Client.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: CustomImages
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages
  : get:
      tags:
      - CustomImages
      description: List custom images in a given lab.
      operationId: microsoftAzureCustomimagesList
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - name: labName
        in: path
        description: The name of the lab.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: 'Specify the $expand query. Example: ''properties($select=vm)'''
        schema:
          type: string
      - name: $filter
        in: query
        description: 'The filter to apply to the operation. Example: ''$filter=contains(name,''myName'')'
        schema:
          type: string
      - name: $top
        in: query
        description: 'The maximum number of resources to return from the operation. Example: ''$top=10'''
        schema:
          type: integer
          format: int32
      - name: $orderby
        in: query
        description: 'The ordering expression for the results, using OData notation. Example: ''$orderby=name desc'''
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomImageList'
        default:
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-odata: '#/definitions/CustomImage'
      x-ms-examples:
        CustomImages_List:
          $ref: ./examples/CustomImages_List.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/customimages/{name}
  : get:
      tags:
      - CustomImages
      description: Get custom image.
      operationId: microsoftAzureCustomimagesGet
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - name: labName
        in: path
        description: The name of the lab.
        required: true
        schema:
          type: string
      - name: name
        in: path
        description: The name of the custom image.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: 'Specify the $expand query. Example: ''properties($select=vm)'''
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomImage'
        default:
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        CustomImages_Get:
          $ref: ./examples/CustomImages_Get.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - CustomImages
      description: Create or replace an existing custom image. This operation can take a while to complete.
      operationId: microsoftAzureCustomimagesCreateorupdate
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - name: labName
        in: path
        description: The name of the lab.
        required: true
        schema:
          type: string
      - name: name
        in: path
        description: The name of the custom image.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomImage'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomImage'
        default:
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        CustomImages_CreateOrUpdate:
          $ref: ./examples/CustomImages_CreateOrUpdate.json
      x-ms-long-running-operation: true
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomImage'
        description: A custom image.
        required: true
    delete:
      tags:
      - CustomImages
      description: Delete custom image. This operation can take a while to complete.
      operationId: microsoftAzureCustomimagesDelete
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - name: labName
        in: path
        description: The name of the lab.
        required: true
        schema:
          type: string
      - name: name
        in: path
        description: The name of the custom image.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK
        '202':
          description: Accepted
        '204':
          description: No Content
        default:
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        CustomImages_Delete:
          $ref: ./examples/CustomImages_Delete.json
      x-ms-long-running-operation: true
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    patch:
      tags:
      - CustomImages
      description: Allows modifying tags of custom images. All other properties will be ignored.
      operationId: microsoftAzureCustomimagesUpdate
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - name: labName
        in: path
        description: The name of the lab.
        required: true
        schema:
          type: string
      - name: name
        in: path
        description: The name of the custom image.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomImage'
        default:
          description: BadRequest
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        CustomImages_Update:
          $ref: ./examples/CustomImages_Update.json
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomImageFragment'
        description: A custom image.
        required: true
components:
  schemas:
    WindowsOsInfo:
      description: Information about a Windows OS.
      type: object
      properties:
        windowsOsState:
          description: The state of the Windows OS (i.e. NonSysprepped, SysprepRequested, SysprepApplied).
          enum:
          - NonSysprepped
          - SysprepRequested
          - SysprepApplied
          type: string
          x-ms-enum:
            name: WindowsOsState
            modelAsString: true
    DataDiskStorageTypeInfo:
      description: Storage information about the data disks present in the custom image
      type: object
      properties:
        lun:
          description: Disk Lun
          type: string
        storageType:
          description: Disk Storage Type
          enum:
          - Standard
          - Premium
          - StandardSSD
          type: string
          x-ms-enum:
            name: StorageType
            modelAsString: true
    UpdateResource:
      description: Represents an update resource
      type: object
      properties:
        tags:
          description: The tags of the resource.
          type: object
          additionalProperties:
            type: string
    CloudErrorBody:
      description: Body of an error from a REST request.
      type: object
      properties:
        code:
          description: The error code.
          type: string
        message:
          description: The error message.
          type: string
        target:
          description: The error target.
          type: string
        details:
          description: Inner errors.
          type: array
          items:
            $ref: '#/components/schemas/CloudErrorBody'
      x-ms-external: true
    CustomImagePropertiesFromPlan:
      description: Properties for plan on a custom image.
      type: object
      properties:
        id:
          description: The id of the plan, equivalent to name of the plan
          type: string
        publisher:
          description: The publisher for the plan from the marketplace image the custom image is derived from
          type: string
        offer:
          description: The offer for the plan from the marketplace image the custom image is derived from
          type: string
    CustomImagePropertiesCustom:
      description: Properties for creating a custom image from a VHD.
      required:
      - osType
      type: object
      properties:
        imageName:
          description: The image name.
          type: string
        sysPrep:
          description: Indicates whether sysprep has been run on the VHD.
          type: boolean
        osType:
          description: The OS type of the custom image (i.e. Windows, Linux)
          enum:
          - Windows
          - Linux
          - None
          type: string
          x-ms-enum:
            name: CustomImageOsType
            modelAsString: true
    CustomImageFragment:
      description: A custom image.
      type: object
      allOf:
      - $ref: '#/components/schemas/UpdateResource'
      properties: {}
    CloudError:
      description: Error from a REST request.
      type: object
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
          description: The cloud error that occurred
      x-ms-external: true
    CustomImagePropertiesFromVm:
      description: Properties for creating a custom image from a virtual machine.
      type: object
      properties:
        sourceVmId:
          description: The source vm identifier.
          type: string
        windowsOsInfo:
          $ref: '#/components/schemas/WindowsOsInfo'
          description: The Windows OS information of the VM.
        linuxOsInfo:
          $ref: '#/components/schemas/LinuxOsInfo'
          description: The Linux OS information of the VM.
    CustomImage:
      description: A custom image.
      required:
      - properties
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      properties:
        properties:
          $ref: '#/components/schemas/CustomImageProperties'
          description: The properties of the resource.
          x-ms-client-flatten: true
    LinuxOsInfo:
      description: Information about a Linux OS.
      type: object
      properties:
        linuxOsState:
          description: The state of the Linux OS (i.e. NonDeprovisioned, DeprovisionRequested, DeprovisionApplied).
          enum:
          - NonDeprovisioned
          - DeprovisionRequested
          - DeprovisionApplied
          type: string
          x-ms-enum:
            name: LinuxOsState
            modelAsString: true
    CustomImageList:
      description: The response of a list operation.
      type: object
      properties:
        value:
          description: Results of the list operation.
          type: array
          items:
            $ref: '#/components/schemas/CustomImage'
        nextLink:
          description: Link for next set of results.
          type: string
    CustomImageProperties:
      description: Properties of a custom image.
      type: object
      properties:
        vm:
          $ref: '#/components/schemas/CustomImagePropertiesFromVm'
          description: The virtual machine from which the image is to be created.
        vhd:
          $ref: '#/components/schemas/CustomImagePropertiesCustom'
          description: The VHD from which the image is to be created.
        description:
          description: The description of the custom image.
          type: string
        author:
          description: The author of the custom image.
          type: string
        creationDate:
          format: date-time
          description: The creation date of the custom image.
          type: string
          readOnly: true
        managedImageId:
          description: The Managed Image Id backing the custom image.
          type: string
        managedSnapshotId:
          description: The Managed Snapshot Id backing the custom image.
          type: string
        dataDiskStorageInfo:
          description: Storage information about the data disks present in the custom image
          type: array
          items:
            $ref: '#/components/schemas/DataDiskStorageTypeInfo'
        customImagePlan:
          $ref: '#/components/schemas/CustomImagePropertiesFromPlan'
          description: Storage information about the plan related to this custom image
        isPlanAuthorized:
          description: Whether or not the custom images underlying offer/plan has been enabled for programmatic deployment
          type: boolean
        provisioningState:
          description: The provisioning status of the resource.
          type: string
          readOnly: true
        uniqueIdentifier:
          description: The unique immutable identifier of a resource (Guid).
          type: string
          readOnly: true
    Resource:
      description: An Azure resource.
      type: object
      properties:
        id:
          description: The identifier of the resource.
          type: string
          readOnly: true
        name:
          description: The name of the resource.
          type: string
          readOnly: true
        type:
          description: The type of the resource.
          type: string
          readOnly: true
        location:
          description: The location of the resource.
          type: string
        tags:
          description: The tags of the resource.
          type: object
          additionalProperties:
            type: string
      x-ms-azure-resource: true
  parameters:
    subscriptionId:
      name: subscriptionId
      in: path
      description: The subscription ID.
      required: true
      schema:
        type: string
    api-version:
      name: api-version
      in: query
      description: Client API version.
      required: true
      schema:
        type: string
        default: '2018-09-15'
    resourceGroupName:
      name: resourceGroupName
      in: path
      description: The name of the resource group.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: Access Microsoft Azure
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: OAuth2 Implicit Grant
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)