Microsoft Azure Watcher API

The Watcher API from Microsoft Azure, for watcher.

GitHub OpenAPI

Operations 7

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

PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} Create an Automation watcher · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I create a watcher in Azure Automation to run a runbook on a schedule?”
“What properties do I set when creating a new Automation watcher?”
Tell an agent
Create watcher {watcher} in Automation account {account} with properties {properties}.
Add a new watcher named {watcher} in {location}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} Get an Automation watcher · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I look up a watcher task in my Azure Automation account?”
“What runbook and schedule does a given watcher use?”
Tell an agent
Get watcher {watcher} in Automation account {account}.
Show the settings of watcher {watcher}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} Update an Automation watcher · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change the properties of an existing Automation watcher?”
“How do I modify a watcher's execution frequency after creating it?”
Tell an agent
Update existing watcher {watcher} in Automation account {account} with properties {properties}.
Change the settings of existing watcher {watcher}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName} Delete an Automation watcher · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I remove a watcher from my Automation account?”
“Can I delete a watcher I no longer need?”
Tell an agent destructive · confirm first
Delete watcher {watcher} from Automation account {account}.
Remove watcher {watcher} from the Automation account.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/start Start an Automation watcher · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I resume a stopped watcher in Azure Automation?”
“Can I start a watcher so it begins running again?”
Tell an agent
Start watcher {watcher} in Automation account {account}.
Resume watcher {watcher}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/stop Stop an Automation watcher · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I stop a running watcher in Azure Automation?”
“Can I pause a watcher without deleting it?”
Tell an agent
Stop watcher {watcher} in Automation account {account}.
Pause watcher {watcher} without removing it.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers List watchers in an Automation account · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which watchers exist in my Azure Automation account?”
“Can I filter the list of Automation watchers?”
Tell an agent
List all watchers in Automation account {account}.
List Automation watchers matching filter {filter}.

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-watcher-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-watcher-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure AutomationManagement Watcher API
  version: 2023-05-15-preview
  x-ms-code-generation-settings:
    useDateTimeOffset: true
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Watcher
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}
  : put:
      tags:
      - Watcher
      operationId: microsoftAzureWatcherCreateorupdate
      description: Create the watcher identified by watcher name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/watcheroperations
      x-ms-examples:
        Create or update watcher:
          $ref: ./examples/createOrUpdateWatcher.json
      parameters:
      - $ref: ../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter
      - $ref: ../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter
      - name: watcherName
        in: path
        required: true
        description: The watcher name.
        schema:
          type: string
      - $ref: ../../common/v1/definitions.json#/parameters/SubscriptionIdParameter
      - $ref: ../../common/v1/definitions.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../common/v1/definitions.json#/definitions/ErrorResponse
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Watcher'
        description: The create or update parameters for watcher.
        required: true
    get:
      tags:
      - Watcher
      operationId: microsoftAzureWatcherGet
      description: Retrieve the watcher identified by watcher name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/watcheroperations
      x-ms-examples:
        Get watcher:
          $ref: ./examples/getWatcher.json
      parameters:
      - $ref: ../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter
      - $ref: ../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter
      - name: watcherName
        in: path
        required: true
        description: The watcher name.
        schema:
          type: string
      - $ref: ../../common/v1/definitions.json#/parameters/SubscriptionIdParameter
      - $ref: ../../common/v1/definitions.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../common/v1/definitions.json#/definitions/ErrorResponse
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    patch:
      tags:
      - Watcher
      operationId: microsoftAzureWatcherUpdate
      description: Update the watcher identified by watcher name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/watcheroperations
      x-ms-examples:
        Update watcher:
          $ref: ./examples/updateWatcher.json
      parameters:
      - $ref: ../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter
      - $ref: ../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter
      - name: watcherName
        in: path
        required: true
        description: The watcher name.
        schema:
          type: string
      - $ref: ../../common/v1/definitions.json#/parameters/SubscriptionIdParameter
      - $ref: ../../common/v1/definitions.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Watcher'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../common/v1/definitions.json#/definitions/ErrorResponse
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WatcherUpdateParameters'
        description: The update parameters for watcher.
        required: true
    delete:
      tags:
      - Watcher
      operationId: microsoftAzureWatcherDelete
      description: Delete the watcher by name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/watcheroperations
      x-ms-examples:
        Delete watcher:
          $ref: ./examples/deleteWatcher.json
      parameters:
      - $ref: ../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter
      - $ref: ../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter
      - name: watcherName
        in: path
        required: true
        description: The watcher name.
        schema:
          type: string
      - $ref: ../../common/v1/definitions.json#/parameters/SubscriptionIdParameter
      - $ref: ../../common/v1/definitions.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: OK
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../common/v1/definitions.json#/definitions/ErrorResponse
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/start
  : post:
      tags:
      - Watcher
      operationId: microsoftAzureWatcherStart
      description: Resume the watcher identified by watcher name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/watcheroperations
      x-ms-examples:
        Start Watcher:
          $ref: ./examples/startWatcher.json
      parameters:
      - $ref: ../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter
      - $ref: ../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter
      - name: watcherName
        in: path
        required: true
        description: The watcher name.
        schema:
          type: string
      - $ref: ../../common/v1/definitions.json#/parameters/SubscriptionIdParameter
      - $ref: ../../common/v1/definitions.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: OK
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../common/v1/definitions.json#/definitions/ErrorResponse
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}/stop
  : post:
      tags:
      - Watcher
      operationId: microsoftAzureWatcherStop
      description: Resume the watcher identified by watcher name.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/watcheroperations
      x-ms-examples:
        Start Watcher:
          $ref: ./examples/stopWatcher.json
      parameters:
      - $ref: ../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter
      - $ref: ../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter
      - name: watcherName
        in: path
        required: true
        description: The watcher name.
        schema:
          type: string
      - $ref: ../../common/v1/definitions.json#/parameters/SubscriptionIdParameter
      - $ref: ../../common/v1/definitions.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: OK
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../common/v1/definitions.json#/definitions/ErrorResponse
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers
  : get:
      tags:
      - Watcher
      operationId: microsoftAzureWatcherListbyautomationaccount
      description: Retrieve a list of watchers.
      externalDocs:
        url: http://aka.ms/azureautomationsdk/watcheroperations
      x-ms-examples:
        List watchers by Automation Account:
          $ref: ./examples/listWatchersByAutomationAccount.json
      parameters:
      - $ref: ../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter
      - $ref: ../../common/v1/definitions.json#/parameters/AutomationAccountNameParameter
      - name: $filter
        in: query
        required: false
        description: The filter to apply on the operation.
        schema:
          type: string
      - $ref: ../../common/v1/definitions.json#/parameters/SubscriptionIdParameter
      - $ref: ../../common/v1/definitions.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WatcherListResult'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: ../../common/v1/definitions.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-odata: '#/definitions/Watcher'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    Watcher:
      properties:
        properties:
          $ref: '#/components/schemas/WatcherProperties'
          x-ms-client-flatten: true
          description: Gets or sets the watcher properties.
        etag:
          type: string
          description: Gets or sets the etag of the resource.
        tags:
          type: object
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - create
          - update
          description: Resource tags.
        location:
          type: string
          x-ms-mutability:
          - read
          - create
          description: The geo-location where the resource lives
      description: Definition of the watcher type.
      allOf:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/Resource
    WatcherUpdateProperties:
      properties:
        executionFrequencyInSeconds:
          type: integer
          format: int64
          description: Gets or sets the frequency at which the watcher is invoked.
      description: The properties of the update watcher operation.
    WatcherListResult:
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/Watcher'
          description: Gets or sets a list of watchers.
        nextLink:
          type: string
          description: Gets or sets the next link.
      description: The response model for the list watcher operation.
    WatcherUpdateParameters:
      properties:
        properties:
          $ref: '#/components/schemas/WatcherUpdateProperties'
          x-ms-client-flatten: true
          description: Gets or sets the watcher update properties.
        name:
          type: string
          description: Gets or sets the name of the resource.
    WatcherProperties:
      properties:
        executionFrequencyInSeconds:
          type: integer
          format: int64
          description: Gets or sets the frequency at which the watcher is invoked.
        scriptName:
          type: string
          description: Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
        scriptParameters:
          type: object
          additionalProperties:
            type: string
          description: Gets or sets the parameters of the script.
        scriptRunOn:
          type: string
          description: Gets or sets the name of the hybrid worker group the watcher will run on.
        status:
          type: string
          readOnly: true
          description: Gets the current status of the watcher.
        creationTime:
          type: string
          readOnly: true
          format: date-time
          description: Gets or sets the creation time.
        lastModifiedTime:
          type: string
          readOnly: true
          format: date-time
          description: Gets or sets the last modified time.
        lastModifiedBy:
          type: string
          readOnly: true
          description: Details of the user who last modified the watcher.
        description:
          type: string
          description: Gets or sets the description.
      description: Definition of the watcher properties
  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-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/watcher.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)