Azure Automation Job API

The Job API from Azure Automation — 7 operation(s) for job.

GitHub OpenAPI

Operations 8

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs Job list by automation account #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} Job get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} Job create #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/output Job get output #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/resume Job resume #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/runbookContent Job get runbook content #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/stop Job stop #
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/suspend Job suspend #

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-automation:microsoft-azure-automation-job-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-automation-job-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AutomationManagementClient Job API
  version: '2024-10-23'
  description: Automation Client
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Job
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs
  : get:
      operationId: Job_ListByAutomationAccount
      tags:
      - Job
      description: Retrieve a list of jobs.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/joboperations
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: automationAccountName
        in: path
        description: The name of the automation account.
        required: true
        schema:
          type: string
      - name: $filter
        in: query
        description: The filter to apply on the operation.
        required: false
        schema:
          type: string
      - name: clientRequestId
        in: header
        description: Identifies this specific client request.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobListResultV2'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Job list by automation account
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}
  : get:
      operationId: Job_Get
      tags:
      - Job
      description: Retrieve the job identified by job name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/joboperations
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: automationAccountName
        in: path
        description: The name of the automation account.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The job name.
        required: true
        schema:
          type: string
      - name: clientRequestId
        in: header
        description: Identifies this specific client request.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Job get
      x-summary-source: derived
    put:
      operationId: Job_Create
      tags:
      - Job
      description: Create a job of the runbook.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/joboperations
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: automationAccountName
        in: path
        description: The name of the automation account.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The job name.
        required: true
        schema:
          type: string
      - name: clientRequestId
        in: header
        description: Identifies this specific client request.
        required: false
        schema:
          type: string
      responses:
        '201':
          description: Resource 'Job' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Job'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JobCreateParameters'
        description: The parameters supplied to the create job operation.
        required: true
      summary: Job create
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/output
  : get:
      operationId: Job_GetOutput
      tags:
      - Job
      description: Retrieve the job output identified by job name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/joboperations
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: automationAccountName
        in: path
        description: The name of the automation account.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The job name.
        required: true
        schema:
          type: string
      - name: clientRequestId
        in: header
        description: Identifies this specific client request.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            text/plain:
              schema:
                type: string
            application/json:
              schema:
                type: string
        default:
          description: An unexpected error response.
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Job get output
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/resume
  : post:
      operationId: Job_Resume
      tags:
      - Job
      description: Resume the job identified by jobName.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/joboperations
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: automationAccountName
        in: path
        description: The name of the automation account.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The job name.
        required: true
        schema:
          type: string
      - name: clientRequestId
        in: header
        description: Identifies this specific client request.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Job resume
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/runbookContent
  : get:
      operationId: Job_GetRunbookContent
      tags:
      - Job
      description: Retrieve the runbook content of the job identified by job name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/joboperations
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: automationAccountName
        in: path
        description: The name of the automation account.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The job name.
        required: true
        schema:
          type: string
      - name: clientRequestId
        in: header
        description: Identifies this specific client request.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            text/powershell:
              schema:
                type: string
            application/json:
              schema:
                type: string
        default:
          description: An unexpected error response.
          content:
            text/powershell:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Job get runbook content
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/stop
  : post:
      operationId: Job_Stop
      tags:
      - Job
      description: Stop the job identified by jobName.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/joboperations
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: automationAccountName
        in: path
        description: The name of the automation account.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The job name.
        required: true
        schema:
          type: string
      - name: clientRequestId
        in: header
        description: Identifies this specific client request.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Job stop
      x-summary-source: derived
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}/suspend
  : post:
      operationId: Job_Suspend
      tags:
      - Job
      description: Suspend the job identified by job name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/joboperations
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: automationAccountName
        in: path
        description: The name of the automation account.
        required: true
        schema:
          type: string
      - name: jobName
        in: path
        description: The job name.
        required: true
        schema:
          type: string
      - name: clientRequestId
        in: header
        description: Identifies this specific client request.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Job suspend
      x-summary-source: derived
components:
  schemas:
    JobCreateParameters:
      type: object
      description: The parameters supplied to the create job operation.
      properties:
        properties:
          $ref: '#/components/schemas/JobCreateProperties'
          description: Gets or sets the list of job properties.
          x-ms-client-flatten: true
      required:
      - properties
    JobCollectionItem:
      type: object
      description: Job collection item properties.
      properties:
        properties:
          $ref: '#/components/schemas/JobCollectionItemProperties'
          description: Job properties.
          x-ms-client-flatten: true
      required:
      - properties
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    Job:
      type: object
      description: Definition of the job.
      properties:
        properties:
          $ref: '#/components/schemas/JobProperties'
          description: The properties of the job.
          x-ms-client-flatten: true
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    ErrorResponse:
      type: object
      title: Error response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error object.
    RunbookAssociationProperty:
      type: object
      description: The runbook property associated with the entity.
      properties:
        name:
          type: string
          description: Gets or sets the name of the runbook.
    JobProvisioningState:
      type: string
      description: The provisioning state of the resource.
      enum:
      - Failed
      - Succeeded
      - Suspended
      - Processing
      x-ms-enum:
        name: JobProvisioningState
        modelAsString: true
        values:
        - name: Failed
          value: Failed
          description: Failed
        - name: Succeeded
          value: Succeeded
          description: Succeeded
        - name: Suspended
          value: Suspended
          description: Suspended
        - name: Processing
          value: Processing
          description: Processing
    JobRuntimeEnvironment:
      type: object
      description: The runbook property associated with the entity.
      properties:
        runtimeEnvironmentName:
          type: string
          description: Name of Runtime Environment.
    JobCollectionItemProperties:
      type: object
      description: Job collection item properties.
      properties:
        runbook:
          $ref: '#/components/schemas/RunbookAssociationProperty'
          description: The runbook association.
          readOnly: true
        jobId:
          type: string
          format: uuid
          description: The id of the job.
          readOnly: true
        startedBy:
          type:
          - string
          - 'null'
          description: Gets or sets the job started by.
          readOnly: true
        creationTime:
          type: string
          format: date-time
          description: The creation time of the job.
          readOnly: true
        status:
          $ref: '#/components/schemas/JobStatus'
          description: The status of the job.
          readOnly: true
        startTime:
          type:
          - string
          - 'null'
          format: date-time
          description: The start time of the job.
          readOnly: true
        endTime:
          type:
          - string
          - 'null'
          format: date-time
          description: The end time of the job.
          readOnly: true
        lastModifiedTime:
          type:
          - string
          - 'null'
          format: date-time
          description: The last modified time of the job.
          readOnly: true
        provisioningState:
          type: string
          description: The provisioning state of a resource.
          readOnly: true
        jobRuntimeEnvironment:
          $ref: '#/components/schemas/JobRuntimeEnvironment'
          description: Runtime Environment Property
        runOn:
          type: string
          description: Specifies the runOn group name where the job was executed.
    JobStatus:
      type: string
      description: Gets or sets the status of the job.
      enum:
      - New
      - Activating
      - Running
      - Completed
      - Failed
      - Stopped
      - Blocked
      - Suspended
      - Disconnected
      - Suspending
      - Stopping
      - Resuming
      - Removing
      x-ms-enum:
        name: JobStatus
        modelAsString: true
        values:
        - name: New
          value: New
          description: New
        - name: Activating
          value: Activating
          description: Activating
        - name: Running
          value: Running
          description: Running
        - name: Completed
          value: Completed
          description: Completed
        - name: Failed
          value: Failed
          description: Failed
        - name: Stopped
          value: Stopped
          description: Stopped
        - name: Blocked
          value: Blocked
          description: Blocked
        - name: Suspended
          value: Suspended
          description: Suspended
        - name: Disconnected
          value: Disconnected
          description: Disconnected
        - name: Suspending
          value: Suspending
          description: Suspending
        - name: Stopping
          value: Stopping
          description: Stopping
        - name: Resuming
          value: Resuming
          description: Resuming
        - name: Removing
          value: Removing
          description: Removing
    JobListResultV2:
      type: object
      description: The response model for the list job operation.
      properties:
        value:
          type: array
          description: The JobCollectionItem items on this page
          items:
            $ref: '#/components/schemas/JobCollectionItem'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    ProxyResource:
      type: object
      title: Proxy Resource
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      allOf:
      - $ref: '#/components/schemas/Resource'
    JobCreateProperties:
      type: object
      properties:
        runbook:
          $ref: '#/components/schemas/RunbookAssociationProperty'
          description: Gets or sets the runbook.
        parameters:
          type: object
          description: Gets or sets the parameters of the job.
          additionalProperties:
            type: string
        runOn:
          type: string
          description: Gets or sets the runOn which specifies the group name where the job is to be executed.
    JobProperties:
      type: object
      description: Definition of job properties.
      properties:
        runbook:
          $ref: '#/components/schemas/RunbookAssociationProperty'
          description: Gets or sets the runbook.
        startedBy:
          type: string
          description: Gets or sets the job started by.
        runOn:
          type: string
          description: Gets or sets the runOn which specifies the group name where the job is to be executed.
        jobRuntimeEnvironment:
          $ref: '#/components/schemas/JobRuntimeEnvironment'
          description: Runtime Environment Property
        jobId:
          type: string
          format: uuid
          description: Gets or sets the id of the job.
        creationTime:
          type: string
          format: date-time
          description: Gets or sets the creation time of the job.
        status:
          $ref: '#/components/schemas/JobStatus'
          description: Gets or sets the status of the job.
        statusDetails:
          type: string
          description: Gets or sets the status details of the job.
        startTime:
          type:
          - string
          - 'null'
          format: date-time
          description: Gets or sets the start time of the job.
        endTime:
          type:
          - string
          - 'null'
          format: date-time
          description: Gets or sets the end time of the job.
        exception:
          type: string
          description: Gets or sets the exception of the job.
        lastModifiedTime:
          type:
          - string
          - 'null'
          format: date-time
          description: Gets or sets the last modified time of the job.
        lastStatusModifiedTime:
          type:
          - string
          - 'null'
          format: date-time
          description: Gets or sets the last status modified time of the job.
        parameters:
          type: object
          description: Gets or sets the parameters of the job.
          additionalProperties:
            type: string
        provisioningState:
          $ref: '#/components/schemas/JobProvisioningState'
          description: The current provisioning state of the job.
          readOnly: true
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      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
  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.