Microsoft Azure Diagnostic Service API

The DiagnosticService API from Microsoft Azure, for diagnosticservice.

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.IoTOperationsMQ/mq/{mqName}/diagnosticService List diagnostic services on an MQ broker · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which diagnostic services are configured on my IoT Operations MQ resource?”
“Can I see all diagnostic service resources for one MQ?”
Tell an agent
List diagnostic services on MQ resource {mq}.
Show every diagnostic service configured under {mq}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/diagnosticService/{diagnosticServiceName} Get an MQ diagnostic service · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What settings does a specific MQ diagnostic service have?”
“Can I look up one diagnostic service by name?”
Tell an agent
Get diagnostic service {name} on MQ {mq}.
Show the configuration of diagnostic service {name} under {mq}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/diagnosticService/{diagnosticServiceName} Create an MQ diagnostic service · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I add a diagnostic service to my IoT Operations MQ broker?”
“Does creating an MQ diagnostic service need an extended location?”
Tell an agent
Create diagnostic service {name} on MQ {mq} at extended location {loc}.
Add a new diagnostic service {name} to MQ {mq}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/diagnosticService/{diagnosticServiceName} Update an existing MQ diagnostic service · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change the tags on an existing MQ diagnostic service?”
“How do I patch a diagnostic service without recreating it?”
Tell an agent
Set tags {tags} on diagnostic service {name} of MQ {mq}.
Patch properties of existing diagnostic service {name} on {mq}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/diagnosticService/{diagnosticServiceName} Delete an MQ diagnostic service · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I remove a diagnostic service from an MQ resource?”
“Can I delete an MQ diagnostic service by name?”
Tell an agent destructive · confirm first
Delete diagnostic service {name} from MQ {mq}.
Remove the {name} diagnostic service on {mq}.

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-diagnosticservice-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-diagnosticservice-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Microsoft.IoTOperationsMQ management…
  version: 2023-10-04-preview
  description: Microsoft.IoTOperationsMQ Resource Provider management API.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: DiagnosticService
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/diagnosticService
  : get:
      operationId: microsoftAzureDiagnosticserviceListbymqresource
      tags:
      - DiagnosticService
      description: List DiagnosticServiceResource resources by MqResource
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: mqName
        in: path
        description: Name of MQ resource
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{3,24}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiagnosticServiceResourceListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        DiagnosticService_ListByMqResource:
          $ref: ./examples/DiagnosticService_ListByMqResource_MaximumSet_Gen.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/diagnosticService/{diagnosticServiceName}
  : get:
      operationId: microsoftAzureDiagnosticserviceGet
      tags:
      - DiagnosticService
      description: Get a DiagnosticServiceResource
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: mqName
        in: path
        description: Name of MQ resource
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{3,24}$
      - name: diagnosticServiceName
        in: path
        description: Name of MQ diagnostic resource
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{3,24}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiagnosticServiceResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        DiagnosticService_Get:
          $ref: ./examples/DiagnosticService_Get_MaximumSet_Gen.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      operationId: microsoftAzureDiagnosticserviceCreateorupdate
      tags:
      - DiagnosticService
      description: Create a DiagnosticServiceResource
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: mqName
        in: path
        description: Name of MQ resource
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{3,24}$
      - name: diagnosticServiceName
        in: path
        description: Name of MQ diagnostic resource
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{3,24}$
      responses:
        '200':
          description: Resource 'DiagnosticServiceResource' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiagnosticServiceResource'
        '201':
          description: Resource 'DiagnosticServiceResource' create operation succeeded
          headers:
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiagnosticServiceResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        DiagnosticService_CreateOrUpdate:
          $ref: ./examples/DiagnosticService_CreateOrUpdate_MaximumSet_Gen.json
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DiagnosticServiceResource'
        description: Resource create parameters.
        required: true
    patch:
      operationId: microsoftAzureDiagnosticserviceUpdate
      tags:
      - DiagnosticService
      description: Update a DiagnosticServiceResource
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: mqName
        in: path
        description: Name of MQ resource
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{3,24}$
      - name: diagnosticServiceName
        in: path
        description: Name of MQ diagnostic resource
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{3,24}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DiagnosticServiceResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        DiagnosticService_Update:
          $ref: ./examples/DiagnosticService_Update_MaximumSet_Gen.json
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DiagnosticServiceResourceUpdate'
        description: The resource properties to be updated.
        required: true
    delete:
      operationId: microsoftAzureDiagnosticserviceDelete
      tags:
      - DiagnosticService
      description: Delete a DiagnosticServiceResource
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: mqName
        in: path
        description: Name of MQ resource
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{3,24}$
      - name: diagnosticServiceName
        in: path
        description: Name of MQ diagnostic resource
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9-]{3,24}$
      responses:
        '202':
          description: Resource deletion accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        DiagnosticService_Delete:
          $ref: ./examples/DiagnosticService_Delete_MaximumSet_Gen.json
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    DiagnosticServiceResourceUpdate:
      type: object
      description: The type used for update operations of the DiagnosticServiceResource.
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
        properties:
          $ref: '#/components/schemas/DiagnosticServiceResourceUpdateProperties'
          x-ms-client-flatten: true
    ExtendedLocationType:
      type: string
      description: The enum defining type of ExtendedLocation accepted.
      enum:
      - CustomLocation
      x-ms-enum:
        name: ExtendedLocationType
        modelAsString: true
        values:
        - name: CustomLocation
          value: CustomLocation
          description: CustomLocation type
    ContainerImage:
      type: object
      description: Defines the Docker image details
      properties:
        pullPolicy:
          type: string
          description: Image pull policy.
        pullSecrets:
          type: string
          description: Image pull secrets.
        repository:
          type: string
          description: The Docker image name.
        tag:
          type: string
          description: The Docker  image tag.
      required:
      - repository
      - tag
    ContainerImageUpdate:
      type: object
      description: Defines the Docker image details
      properties:
        pullPolicy:
          type: string
          description: Image pull policy.
        pullSecrets:
          type: string
          description: Image pull secrets.
        repository:
          type: string
          description: The Docker image name.
        tag:
          type: string
          description: The Docker  image tag.
    DiagnosticServiceResourceUpdateProperties:
      type: object
      description: The updatable properties of the DiagnosticServiceResource.
      properties:
        dataExportFrequencySeconds:
          type: integer
          format: int32
          description: The frequency at which the data will be exported.
          default: 10
          minimum: 0
          maximum: 65535
        image:
          $ref: '#/components/schemas/ContainerImageUpdate'
          description: The details of Diagnostic Service Docker Image.
        logFormat:
          type: string
          description: The format for the logs generated.
          default: json
        logLevel:
          type: string
          description: The format for the logs generated.
          default: info
        maxDataStorageSize:
          type: integer
          format: int64
          description: The maximum data stored in MiB.
          default: 16
          minimum: 0
          maximum: 4294967295
        metricsPort:
          type: integer
          format: int32
          description: The port at which metrics is exposed.
          default: 9600
          minimum: 0
          maximum: 65535
        openTelemetryTracesCollectorAddr:
          type: string
          description: The destination to collect traces. Diagnostic service will push traces to this endpoint
        staleDataTimeoutSeconds:
          type: integer
          format: int32
          description: Metric inactivity timeout.
          default: 600
          minimum: 0
          maximum: 65535
    DiagnosticServiceResourceListResult:
      type: object
      description: The response of a DiagnosticServiceResource list operation.
      properties:
        value:
          type: array
          description: The DiagnosticServiceResource items on this page
          items:
            $ref: '#/components/schemas/DiagnosticServiceResource'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    ProvisioningState:
      type: string
      description: The enum defining status of resource.
      enum:
      - Succeeded
      - Failed
      - Canceled
      - Provisioning
      - Updating
      - Deleting
      - Accepted
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
        values:
        - name: Succeeded
          value: Succeeded
          description: Resource has been created.
        - name: Failed
          value: Failed
          description: Resource creation failed.
        - name: Canceled
          value: Canceled
          description: Resource creation was canceled.
        - name: Provisioning
          value: Provisioning
          description: Resource is getting provisioned.
        - name: Updating
          value: Updating
          description: Resource is Updating.
        - name: Deleting
          value: Deleting
          description: Resource is Deleting.
        - name: Accepted
          value: Accepted
          description: Resource has been Accepted.
    ExtendedLocationProperty:
      type: object
      description: ExtendedLocation properties
      properties:
        name:
          type: string
          description: The name of the extended location.
        type:
          $ref: '#/components/schemas/ExtendedLocationType'
          description: Type of ExtendedLocation.
      required:
      - name
      - type
    DiagnosticServiceProperties:
      type: object
      description: MQ Diagnostic Services Resource properties
      properties:
        dataExportFrequencySeconds:
          type: integer
          format: int32
          description: The frequency at which the data will be exported.
          default: 10
          minimum: 0
          maximum: 65535
        image:
          $ref: '#/components/schemas/ContainerImage'
          description: The details of Diagnostic Service Docker Image.
        logFormat:
          type: string
          description: The format for the logs generated.
          default: json
        logLevel:
          type: string
          description: The format for the logs generated.
          default: info
        maxDataStorageSize:
          type: integer
          format: int64
          description: The maximum data stored in MiB.
          default: 16
          minimum: 0
          maximum: 4294967295
        metricsPort:
          type: integer
          format: int32
          description: The port at which metrics is exposed.
          default: 9600
          minimum: 0
          maximum: 65535
        openTelemetryTracesCollectorAddr:
          type: string
          description: The destination to collect traces. Diagnostic service will push traces to this endpoint
        provisioningState:
          $ref: '#/components/schemas/ProvisioningState'
          description: The status of the last operation.
          readOnly: true
        staleDataTimeoutSeconds:
          type: integer
          format: int32
          description: Metric inactivity timeout.
          default: 600
          minimum: 0
          maximum: 65535
      required:
      - image
    DiagnosticServiceResource:
      type: object
      description: MQ diagnostic services resource
      properties:
        properties:
          $ref: '#/components/schemas/DiagnosticServiceProperties'
          description: The resource-specific properties for this resource.
          x-ms-client-flatten: true
          x-ms-mutability:
          - read
          - create
        extendedLocation:
          $ref: '#/components/schemas/ExtendedLocationProperty'
          description: Extended Location
          x-ms-mutability:
          - read
          - create
      required:
      - extendedLocation
      allOf:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/TrackedResource
  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.