Microsoft Azure Guest Diagnostics Settings API

The GuestDiagnosticsSettings API from Microsoft Azure, for guestdiagnosticssettings.

GitHub OpenAPI

Operations 3

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.insights/guestDiagnosticSettings/{diagnosticSettingsName} Create or update guest diagnostic settings · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I collect guest OS performance counters and logs from my VMs?”
“Which location does a guest diagnostic setting need?”
Tell an agent
Create guest diagnostic setting {setting} in {location} with {properties}.
Update guest diagnostic setting {setting} in {location}.
GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings/{diagnosticSettingsName} Get guest diagnostic settings · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What guest OS diagnostics are configured in a guest diagnostic setting?”
“Can I look up one guest diagnostic setting by name?”
Tell an agent
Get guest diagnostic setting {setting}.
Show the VM guest diagnostics configured in {setting}.
DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings/{diagnosticSettingsName} Delete guest diagnostic settings · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I delete a guest diagnostic setting I no longer need?”
“Will deleting a guest diagnostic setting stop VM guest data collection?”
Tell an agent destructive · confirm first
Delete guest diagnostic setting {setting}.
Remove the {setting} guest diagnostics configuration.

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-guestdiagnosticssettings-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-guestdiagnosticssettings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Guest Diagnostic Settings Guest Diagnostics…
  description: API to Add/Remove/List Guest Diagnostics Configuration to Azure Resources
  x-ms-code-generation-settings:
    name: MonitorManagementClient
  version: 2018-06-01-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: GuestDiagnosticsSettings
paths:
  ? /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/guestDiagnosticSettings/{diagnosticSettingsName}
  : put:
      description: Creates or updates guest diagnostics settings.
      tags:
      - GuestDiagnosticsSettings
      operationId: microsoftAzureGuestdiagnosticssettingsCreateorupdate
      x-ms-examples:
        Create or update a guest diagnostic settings:
          $ref: ./examples/createOrUpdateGuestDiagnosticSettings.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DiagnosticSettingNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: An existing guest diagnostic settings was successfully updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GuestDiagnosticSettingsResource'
        '201':
          description: A new guest diagnostic settings was successfully created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GuestDiagnosticSettingsResource'
        default:
          description: An error occurred and the guest diagnostic settings could not be created or updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GuestDiagnosticSettingsResource'
        description: The configuration to create or update.
        required: true
    get:
      description: Gets guest diagnostics settings.
      tags:
      - GuestDiagnosticsSettings
      operationId: microsoftAzureGuestdiagnosticssettingsGet
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DiagnosticSettingNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: The request succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GuestDiagnosticSettingsResource'
        default:
          description: An error occurred and the diagnostic settings could not be retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    delete:
      description: Delete guest diagnostics settings.
      tags:
      - GuestDiagnosticsSettings
      operationId: microsoftAzureGuestdiagnosticssettingsDelete
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DiagnosticSettingNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: The diagnostic settings was successfully deleted.
        '204':
          description: The diagnostic settings does not exist. It may have already been deleted.
        default:
          description: An error occurred and the diagnostic settings could not be deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
components:
  parameters:
    DiagnosticSettingNameParameter:
      name: diagnosticSettingsName
      in: path
      required: true
      description: The name of the diagnostic setting.
      x-ms-parameter-location: method
      schema:
        type: string
  schemas:
    SinkConfiguration:
      type: object
      required:
      - kind
      properties:
        kind:
          type: string
          enum:
          - EventHub
          - ApplicationInsights
          - LogAnalytics
    ErrorResponse:
      description: Describes the format of Error response.
      type: object
      properties:
        code:
          description: Error code
          type: string
        message:
          description: Error message indicating why the operation failed.
          type: string
    EtwProviderConfiguration:
      type: object
      required:
      - id
      - events
      properties:
        id:
          type: string
        events:
          type: array
          items:
            $ref: '#/components/schemas/EtwEventConfiguration'
    DataSource:
      type: object
      required:
      - kind
      - configuration
      - sinks
      properties:
        kind:
          type: string
          enum:
          - PerformanceCounter
          - ETWProviders
          - WindowsEventLogs
          description: Datasource kind
        configuration:
          type: object
          $ref: '#/components/schemas/DataSourceConfiguration'
        sinks:
          type: array
          items:
            $ref: '#/components/schemas/SinkConfiguration'
      description: Data source object contains configuration to collect telemetry and one or more sinks to send that telemetry data to
    EtwEventConfiguration:
      type: object
      required:
      - name
      - id
      properties:
        name:
          type: string
        id:
          type: integer
        filter:
          type: string
    EventLogConfiguration:
      type: object
      required:
      - logName
      properties:
        logName:
          type: string
        filter:
          type: string
    GuestDiagnosticSettingsResource:
      type: object
      allOf:
      - $ref: '#/components/schemas/Resource'
      required:
      - properties
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/GuestDiagnosticSettings'
          description: The diagnostic settings to be applied to azure resources.
      description: Virtual machine guest diagnostics settings resource.
    DataSourceConfiguration:
      type: object
      properties:
        providers:
          type: array
          items:
            $ref: '#/components/schemas/EtwProviderConfiguration'
          description: ETW providers configuration
        perfCounters:
          type: array
          items:
            $ref: '#/components/schemas/PerformanceCounterConfiguration'
          description: Performance counter configuration
        eventLogs:
          type: array
          items:
            $ref: '#/components/schemas/EventLogConfiguration'
          description: Windows event logs configuration.
    GuestDiagnosticSettings:
      description: Virtual machine diagnostic settings
      properties:
        osType:
          type: string
          enum:
          - Windows
          - Linux
          description: Operating system type for the configuration
        dataSources:
          type: array
          items:
            $ref: '#/components/schemas/DataSource'
          description: the array of data source object which are configured to collect and send data
        proxySetting:
          type: string
    PerformanceCounterConfiguration:
      type: object
      required:
      - name
      - samplingPeriod
      properties:
        name:
          type: string
        samplingPeriod:
          type: string
        instance:
          type: string
    Resource:
      properties:
        id:
          type: string
          readOnly: true
          description: Azure resource Id
        name:
          type: string
          readOnly: true
          description: Azure resource name
        type:
          type: string
          readOnly: true
          description: Azure resource type
        location:
          type: string
          description: Resource location
          x-ms-mutability:
          - create
          - read
        tags:
          additionalProperties:
            type: string
          description: Resource tags
      required:
      - location
      x-ms-azure-resource: true
      description: An azure resource object
  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/monitor/resource-manager/Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettings_API.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)