Microsoft Azure Migrate Agent API

MigrateAgent Controller.

GitHub OpenAPI

Operations 6

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.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents/{agentName} Get a modernize project migrate agent · Microsoft Azure Gets The Migrateagent #
Ask an LLM
“How do I check the details of a migrate agent in my Azure Migrate modernize project?”
“Is my modernize project's agent healthy and connected?”
Tell an agent
Get migrate agent {agent} in modernize project {project}, resource group {resource_group}, subscription {subscription}.
Show details of agent {agent} in modernize project {project}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents/{agentName} Create a migrate agent in a modernize project · Microsoft Azure Puts The Migrateagent #
Ask an LLM
“How do I register a new agent in an Azure Migrate modernize project?”
“Can I set tags when creating a modernize project agent?”
Tell an agent
Create migrate agent {agent} in modernize project {project}, resource group {resource_group}, subscription {subscription}.
Add agent {agent} to modernize project {project} with properties {properties}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents/{agentName} Delete a migrate agent from a modernize project · Microsoft Azure Deletes The Migrateagent #
Ask an LLM
“How do I remove an agent from my Azure Migrate modernize project?”
“Can I delete a modernize project agent I no longer use?”
Tell an agent destructive · confirm first
Delete migrate agent {agent} from modernize project {project}, resource group {resource_group}, subscription {subscription}.
Remove agent {agent} from modernize project {project}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents List migrate agents in a modernize project · Microsoft Azure Lists The Migrateagents #
Ask an LLM
“Which agents are registered in my Azure Migrate modernize project?”
“Can I see all modernize project agents at once?”
Tell an agent
List migrate agents in modernize project {project}, resource group {resource_group}, subscription {subscription}.
Show every agent registered to modernize project {project}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents/{agentName}/refresh Refresh a modernize project migrate agent · Microsoft Azure Refreshes The Migrateagent #
Ask an LLM
“How do I refresh a migrate agent so its modernize project data is current?”
“Can I trigger a refresh on one agent in a modernize project?”
Tell an agent
Refresh migrate agent {agent} in modernize project {project}, resource group {resource_group}, subscription {subscription}.
Trigger a refresh of agent {agent} in project {project}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents/{agentName}/operations/{operationId} Track an async operation on a migrate agent · Microsoft Azure Gets The Migrateagent Operation Status #
Ask an LLM
“How do I check whether a long-running operation on my migrate agent has finished?”
“What status does an async modernize agent operation report?”
Tell an agent
Get status of operation {operation} on agent {agent} in modernize project {project}, group {resource_group}, subscription {subscription}.
Check if async operation {operation} on migrate agent {agent} completed.

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-migrateagent-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-migrateagent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure Migrate Engine Migrate Agent API
  description: A first party Azure service for modernizing workloads.
  version: 2022-05-01-preview
security:
- azure_auth:
  - user_impersonation
tags:
- name: MigrateAgent
  description: MigrateAgent Controller.
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents/{agentName}
  : get:
      tags:
      - MigrateAgent
      summary: Microsoft Azure Gets The Migrateagent
      description: Gets the details of the modernizeProject agent.
      operationId: microsoftAzureMigrateagentGet
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: modernizeProjectName
        description: ModernizeProject name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - in: path
        name: agentName
        description: MigrateAgent name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrateAgentModel'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArmError'
      x-ms-examples:
        MigrateAgent_Get_MaximumSet_Gen:
          $ref: ./examples/MigrateAgent_Get_MaximumSet_Gen.json
        MigrateAgent_Get_MinimumSet_Gen:
          $ref: ./examples/MigrateAgent_Get_MinimumSet_Gen.json
    put:
      tags:
      - MigrateAgent
      summary: Microsoft Azure Puts The Migrateagent
      description: Creates the modernizeProject agent.
      operationId: microsoftAzureMigrateagentCreate
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: modernizeProjectName
        description: ModernizeProject name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - in: path
        name: agentName
        description: MigrateAgent name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - $ref: '#/components/parameters/api-version'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrateAgentModel'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArmError'
      x-ms-examples:
        MigrateAgent_Create_MaximumSet_Gen:
          $ref: ./examples/MigrateAgent_Create_MaximumSet_Gen.json
        MigrateAgent_Create_MinimumSet_Gen:
          $ref: ./examples/MigrateAgent_Create_MinimumSet_Gen.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MigrateAgentModel'
        description: MigrateAgent model.
    delete:
      tags:
      - MigrateAgent
      summary: Microsoft Azure Deletes The Migrateagent
      description: Deletes the modernizeProject agent.
      operationId: microsoftAzureMigrateagentDelete
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: modernizeProjectName
        description: ModernizeProject Name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - in: path
        name: agentName
        description: MigrateAgent Name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - $ref: '#/components/parameters/api-version'
      responses:
        '202':
          description: Accepted
          headers:
            Azure-AsyncOperation:
              description: Tracking URL for long running operation.
              schema:
                type: string
            Location:
              schema:
                type: string
        '204':
          description: No Content
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArmError'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        MigrateAgent_Delete_MaximumSet_Gen:
          $ref: ./examples/MigrateAgent_Delete_MaximumSet_Gen.json
        MigrateAgent_Delete_MinimumSet_Gen:
          $ref: ./examples/MigrateAgent_Delete_MinimumSet_Gen.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents
  : get:
      tags:
      - MigrateAgent
      summary: Microsoft Azure Lists The Migrateagents
      description: Gets the list of modernizeProject agents in the given modernizeProject.
      operationId: microsoftAzureMigrateagentList
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: modernizeProjectName
        description: ModernizeProject name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MigrateAgentModelCollection'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArmError'
      x-ms-examples:
        MigrateAgent_List_MaximumSet_Gen:
          $ref: ./examples/MigrateAgent_List_MaximumSet_Gen.json
        MigrateAgent_List_MinimumSet_Gen:
          $ref: ./examples/MigrateAgent_List_MinimumSet_Gen.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents/{agentName}/refresh
  : post:
      tags:
      - MigrateAgent
      summary: Microsoft Azure Refreshes The Migrateagent
      description: Refreshes the modernizeProject agent.
      operationId: microsoftAzureMigrateagentRefresh
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: modernizeProjectName
        description: ModernizeProject name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - in: path
        name: agentName
        description: MigrateAgent name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - $ref: '#/components/parameters/api-version'
      responses:
        '202':
          description: Accepted
          headers:
            Azure-AsyncOperation:
              description: Tracking URL for long running operation.
              schema:
                type: string
            Location:
              schema:
                type: string
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArmError'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        MigrateAgent_Refresh_MaximumSet_Gen:
          $ref: ./examples/MigrateAgent_Refresh_MaximumSet_Gen.json
        MigrateAgent_Refresh_MinimumSet_Gen:
          $ref: ./examples/MigrateAgent_Refresh_MinimumSet_Gen.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/modernizeProjects/{modernizeProjectName}/migrateAgents/{agentName}/operations/{operationId}
  : get:
      tags:
      - MigrateAgent
      summary: Microsoft Azure Gets The Migrateagent Operation Status
      description: Tracks the results of an asynchronous operation on the modernizeProject agent.
      operationId: microsoftAzureMigrateagentoperationstatusGet
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - in: path
        name: modernizeProjectName
        description: ModernizeProject name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - in: path
        name: agentName
        description: MigrateAgent name.
        required: true
        schema:
          type: string
          pattern: ^[a-z][a-z0-9]*$
      - in: path
        name: operationId
        description: Operation Id.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/api-version'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationStatus'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArmError'
      x-ms-examples:
        MigrateAgentOperationStatus_Get_MaximumSet_Gen:
          $ref: ./examples/MigrateAgentOperationStatus_Get_MaximumSet_Gen.json
        MigrateAgentOperationStatus_Get_MinimumSet_Gen:
          $ref: ./examples/MigrateAgentOperationStatus_Get_MinimumSet_Gen.json
components:
  parameters:
    subscriptionId:
      in: path
      name: subscriptionId
      description: Azure Subscription Id in which project was created.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    api-version:
      in: query
      name: api-version
      description: Client Api Version.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
    resourceGroupName:
      in: path
      name: resourceGroupName
      description: Name of the Azure Resource Group that project is part of.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
  schemas:
    MigrateAgentModelCustomProperties:
      description: MigrateAgent model custom properties.
      required:
      - instanceType
      type: object
      properties:
        instanceType:
          description: Gets or sets the instance type.
          type: string
      x-ms-discriminator-value: IISWorkload
      discriminator:
        propertyName: instanceType
    OperationStatus:
      description: Defines the operation status.
      type: object
      properties:
        id:
          description: Gets the Id.
          type: string
          readOnly: true
        name:
          description: Gets the operation name.
          type: string
          readOnly: true
        status:
          description: 'Gets the status of the operation. ARM expects the terminal status to be one of

            Succeeded/ Failed/ Canceled. All other values imply that the operation is still running.'
          type: string
          readOnly: true
        startTime:
          description: Gets the start time.
          type: string
          readOnly: true
        endTime:
          description: Gets the end time.
          type: string
          readOnly: true
    MigrateAgentModelCollection:
      description: MigrateAgent model collection.
      type: object
      properties:
        value:
          description: Gets or sets the list of agents.
          type: array
          items:
            $ref: '#/components/schemas/MigrateAgentModel'
        nextLink:
          description: Gets or sets the value of next link.
          type: string
    HealthErrorModel:
      description: Health error model.
      type: object
      properties:
        affectedResourceType:
          description: Gets or sets the type of affected resource type.
          type: string
        affectedResourceCorrelationIds:
          description: 'Gets or sets the list of affected resource correlation Ids. This can be used to

            uniquely identify the count of items affected by a specific category and severity

            as well as count of item affected by an specific issue.'
          type: array
          items:
            type: string
        childErrors:
          description: Gets or sets a list of child health errors associated with this error.
          type: array
          items:
            $ref: '#/components/schemas/InnerHealthErrorModel'
        id:
          description: Gets the ID.
          type: string
          readOnly: true
        code:
          description: Gets or sets the error code.
          type: string
          readOnly: true
        healthCategory:
          description: Gets or sets the health category.
          type: string
          readOnly: true
        category:
          description: Gets or sets the error category.
          type: string
          readOnly: true
        severity:
          description: Gets or sets the error severity.
          type: string
          readOnly: true
        source:
          description: Gets or sets the error source.
          type: string
          readOnly: true
        creationTime:
          format: date-time
          description: Gets or sets the error creation time.
          type: string
          readOnly: true
        isCustomerResolvable:
          description: Gets or sets a value indicating whether the error is customer resolvable.
          type: boolean
          readOnly: true
        summary:
          description: Gets or sets the error summary.
          type: string
          readOnly: true
        message:
          description: Gets or sets the error message.
          type: string
          readOnly: true
        causes:
          description: Gets or sets possible causes of the error.
          type: string
          readOnly: true
        recommendation:
          description: Gets or sets recommended action to resolve the error.
          type: string
          readOnly: true
    SystemDataModel:
      description: System data required to be defined for Azure resources.
      type: object
      properties:
        createdBy:
          description: Gets or sets identity that created the resource.
          type: string
        createdByType:
          description: 'Gets or sets the type of identity that created the resource: user, application,

            managedIdentity.'
          type: string
        createdAt:
          format: date-time
          description: Gets or sets the timestamp of resource creation (UTC).
          type: string
        lastModifiedBy:
          description: Gets or sets the identity that last modified the resource.
          type: string
        lastModifiedByType:
          description: 'Gets or sets the type of identity that last modified the resource: user, application,

            managedIdentity.'
          type: string
        lastModifiedAt:
          format: date-time
          description: Gets or sets the timestamp of resource last modification (UTC).
          type: string
    IdentityModel:
      description: Identity model.
      type: object
      properties:
        tenantId:
          description: Gets or sets the tenant Id of the SPN with which MigrateAgent communicates to service.
          type: string
        applicationId:
          description: 'Gets or sets the client/application Id of the SPN with which MigrateAgent communicates to

            service.'
          type: string
        objectId:
          description: Gets or sets the object Id of the SPN with which MigrateAgent communicates to service.
          type: string
        audience:
          description: Gets or sets the audience of the SPN with which MigrateAgent communicates to service.
          type: string
        aadAuthority:
          description: Gets or sets the authority of the SPN with which MigrateAgent communicates to service.
          type: string
    InnerHealthErrorModel:
      description: Inner health error model.
      type: object
      properties:
        id:
          description: Gets the ID.
          type: string
          readOnly: true
        code:
          description: Gets or sets the error code.
          type: string
          readOnly: true
        healthCategory:
          description: Gets or sets the health category.
          type: string
          readOnly: true
        category:
          description: Gets or sets the error category.
          type: string
          readOnly: true
        severity:
          description: Gets or sets the error severity.
          type: string
          readOnly: true
        source:
          description: Gets or sets the error source.
          type: string
          readOnly: true
        creationTime:
          format: date-time
          description: Gets or sets the error creation time.
          type: string
          readOnly: true
        isCustomerResolvable:
          description: Gets or sets a value indicating whether the error is customer resolvable.
          type: boolean
          readOnly: true
        summary:
          description: Gets or sets the error summary.
          type: string
          readOnly: true
        message:
          description: Gets or sets the error message.
          type: string
          readOnly: true
        causes:
          description: Gets or sets possible causes of the error.
          type: string
          readOnly: true
        recommendation:
          description: Gets or sets recommended action to resolve the error.
          type: string
          readOnly: true
    MigrateAgentModel:
      description: MigrateAgent model.
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/MigrateAgentModelProperties'
        id:
          description: Gets or sets the Id of the resource.
          type: string
          readOnly: true
        name:
          description: Gets or sets the name of the resource.
          type: string
          readOnly: true
        type:
          description: Gets or sets the type of the resource.
          type: string
          readOnly: true
        systemData:
          allOf:
          - $ref: '#/components/schemas/SystemDataModel'
          readOnly: true
        tags:
          description: Gets or sets the resource tags.
          type: object
          additionalProperties:
            type: string
      x-ms-azure-resource: true
    ArmError:
      description: ARM error.
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ArmErrorInfo'
    MigrateAgentModelProperties:
      description: MigrateAgent model properties.
      type: object
      properties:
        correlationId:
          description: Gets or sets the MigrateAgent correlation Id.
          type: string
          readOnly: true
        machineId:
          description: Gets or sets the machine Id where MigrateAgent is running.
          type: string
        machineName:
          description: Gets or sets the machine name where MigrateAgent is running.
          type: string
        authenticationIdentity:
          $ref: '#/components/schemas/IdentityModel'
        isResponsive:
          description: Gets or sets a value indicating whether MigrateAgent is responsive.
          type: boolean
          readOnly: true
        lastHeartbeat:
          format: date-time
          description: Gets or sets the time when last heartbeat was sent by the MigrateAgent.
          type: string
          readOnly: true
        versionNumber:
          description: Gets or sets the MigrateAgent version.
          type: string
          readOnly: true
        provisioningState:
          description: Gets or sets the provisioning state of the MigrateAgent.
          enum:
          - Canceled
          - Creating
          - Deleting
          - Deleted
          - Failed
          - Succeeded
          - Updating
          type: string
          readOnly: true
          x-ms-enum:
            name: ProvisioningState
            modelAsString: true
        healthErrors:
          description: Gets or sets the list of health errors.
          type: array
          items:
            $ref: '#/components/schemas/HealthErrorModel'
          readOnly: true
        customProperties:
          $ref: '#/components/schemas/MigrateAgentModelCustomProperties'
    ArmErrorInfo:
      description: Arm error information.
      type: object
      properties:
        code:
          description: Gets or sets the error code returned by the service.
          type: string
        message:
          description: Gets or sets error Message returned by the service.
          type: string
  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