Microsoft Azure Dns Forwarding Rulesets API

The DnsForwardingRulesets API from Microsoft Azure, for dnsforwardingrulesets.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

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.Network/dnsForwardingRulesets/{dnsForwardingRulesetName} Create or update a DNS forwarding ruleset · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I create a ruleset to forward DNS queries from my private resolver?”
“Can I avoid overwriting an existing ruleset by accident when creating one?”
Tell an agent
Create DNS forwarding ruleset {dnsForwardingRulesetName} with {properties}.
Create forwarding ruleset {dnsForwardingRulesetName} only if it doesn't exist, using If-None-Match {ifNoneMatch}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName} Update tags on a DNS forwarding ruleset · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I retag an existing DNS forwarding ruleset?”
“Can I patch a ruleset's tags without resending its whole definition?”
Tell an agent
Set tags on DNS forwarding ruleset {dnsForwardingRulesetName} to {tags}.
Patch ruleset {dnsForwardingRulesetName} tags if its etag matches {ifMatch}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName} Delete a DNS forwarding ruleset · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What happens to the forwarding rules when I delete their ruleset?”
“Can deleting a DNS forwarding ruleset be undone?”
Tell an agent destructive · confirm first
Delete DNS forwarding ruleset {dnsForwardingRulesetName}.
Delete forwarding ruleset {dnsForwardingRulesetName} only if its etag is {ifMatch}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName} Get a DNS forwarding ruleset · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What outbound endpoints does my DNS forwarding ruleset use?”
“Can I look up one forwarding ruleset by name?”
Tell an agent
Get DNS forwarding ruleset {dnsForwardingRulesetName}.
Show the properties of forwarding ruleset {dnsForwardingRulesetName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets List DNS forwarding rulesets in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which DNS forwarding rulesets are in this resource group?”
“Can I cap how many rulesets a resource group listing returns?”
Tell an agent
List the DNS forwarding rulesets in my resource group.
Show the first {top} forwarding rulesets in this resource group.
GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets List DNS forwarding rulesets across a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Network… #
Ask an LLM
“How many DNS forwarding rulesets do I have across all resource groups?”
“Can I see every forwarding ruleset in the subscription at once?”
Tell an agent
List all DNS forwarding rulesets in my subscription.
Show up to {top} forwarding rulesets across every resource group.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets List DNS forwarding rulesets linked to a virtual network · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which forwarding rulesets are attached to my virtual network?”
“Is any DNS forwarding ruleset linked to a given VNet?”
Tell an agent
List DNS forwarding rulesets attached to virtual network {virtualNetworkName}.
Show up to {top} ruleset IDs linked to VNet {virtualNetworkName}.

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-dnsforwardingrulesets-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-dnsforwardingrulesets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure DnsResolverManagementClient Dns Forwarding…
  description: The DNS Resolver Management Client.
  version: 2020-04-01-preview
servers:
- url: https://management.azure.com
tags:
- name: DnsForwardingRulesets
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}
  : put:
      tags:
      - DnsForwardingRulesets
      operationId: microsoftAzureDnsforwardingrulesetsCreateorupdate
      description: Creates or updates a DNS forwarding ruleset.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DnsForwardingRulesetNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/IfMatchParameter'
      - $ref: '#/components/parameters/IfNoneMatchParameter'
      responses:
        '200':
          description: The DNS forwarding ruleset has been updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DnsForwardingRuleset'
        '201':
          description: The DNS forwarding ruleset has been created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DnsForwardingRuleset'
        '202':
          description: The operation to upsert DNS forwarding ruleset has been accepted and will complete asynchronously.
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Upsert DNS forwarding ruleset:
          $ref: ./examples/DnsForwardingRuleset_Put.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DnsForwardingRuleset'
        description: Parameters supplied to the CreateOrUpdate operation.
        required: true
    patch:
      tags:
      - DnsForwardingRulesets
      operationId: microsoftAzureDnsforwardingrulesetsUpdate
      description: Updates a DNS forwarding ruleset.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DnsForwardingRulesetNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/IfMatchParameter'
      responses:
        '200':
          description: The DNS forwarding ruleset has been updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DnsForwardingRuleset'
        '202':
          description: The operation to update DNS forwarding ruleset has been accepted and will complete asynchronously.
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Update DNS forwarding ruleset:
          $ref: ./examples/DnsForwardingRuleset_Patch.json
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DnsForwardingRulesetPatch'
        description: Parameters supplied to the Update operation.
        required: true
    delete:
      tags:
      - DnsForwardingRulesets
      operationId: microsoftAzureDnsforwardingrulesetsDelete
      description: 'Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.'
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DnsForwardingRulesetNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/IfMatchParameter'
      responses:
        '200':
          description: The DNS forwarding ruleset has been deleted.
        '202':
          description: The operation to delete DNS forwarding ruleset has been accepted and will complete asynchronously.
        '204':
          description: The DNS forwarding ruleset was not found.
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation: true
      x-ms-examples:
        Delete DNS forwarding ruleset:
          $ref: ./examples/DnsForwardingRuleset_Delete.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    get:
      tags:
      - DnsForwardingRulesets
      operationId: microsoftAzureDnsforwardingrulesetsGet
      description: Gets a DNS forwarding ruleset properties.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/DnsForwardingRulesetNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: The DNS forwarding ruleset was found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DnsForwardingRuleset'
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Retrieve DNS forwarding ruleset:
          $ref: ./examples/DnsForwardingRuleset_Get.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets:
    get:
      tags:
      - DnsForwardingRulesets
      operationId: microsoftAzureDnsforwardingrulesetsListbyresourcegroup
      description: Lists DNS forwarding rulesets within a resource group.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/TopParameter'
      responses:
        '200':
          description: List of DNS forwarding rulesets in the resource group.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DnsForwardingRulesetListResult'
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        List DNS forwarding rulesets by resource group:
          $ref: ./examples/DnsForwardingRuleset_ListByResourceGroup.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets:
    get:
      tags:
      - DnsForwardingRulesets
      operationId: microsoftAzureDnsforwardingrulesetsList
      description: Lists DNS forwarding rulesets in all resource groups of a subscription.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/TopParameter'
      responses:
        '200':
          description: List of DNS forwarding rulesets in the subscription.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DnsForwardingRulesetListResult'
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        List DNS forwarding rulesets by subscription:
          $ref: ./examples/DnsForwardingRuleset_ListBySubscription.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Network…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets
  : post:
      tags:
      - DnsForwardingRulesets
      operationId: microsoftAzureDnsforwardingrulesetsListbyvirtualnetwork
      description: Lists DNS forwarding ruleset resource IDs attached to a virtual network.
      parameters:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/VirtualNetworkNameParameter'
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter
      - $ref: '#/components/parameters/TopParameter'
      responses:
        '200':
          description: List of DNS forwarding ruleset resource IDs and virtual network link resource IDs attached to the virtual network.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualNetworkDnsForwardingRulesetListResult'
        default:
          description: Default response. It will be deserialized as per the Error definition.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        List DNS forwarding rulesets by virtual network:
          $ref: ./examples/DnsForwardingRuleset_ListByVirtualNetwork.json
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    DnsForwardingRuleset:
      description: Describes a DNS forwarding ruleset.
      type: object
      properties:
        etag:
          description: ETag of the DNS forwarding ruleset.
          type: string
          readOnly: true
        properties:
          description: Properties of the DNS forwarding ruleset.
          $ref: '#/components/schemas/DnsForwardingRulesetProperties'
          x-ms-client-flatten: true
        systemData:
          $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/systemData
          description: Metadata pertaining to creation and last modification of the resource.
          readOnly: true
      allOf:
      - $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource
    DnsForwardingRulesetListResult:
      description: The response to an enumeration operation on DNS forwarding rulesets.
      type: object
      properties:
        value:
          description: Enumeration of the DNS forwarding rulesets.
          type: array
          items:
            $ref: '#/components/schemas/DnsForwardingRuleset'
        nextLink:
          description: The continuation token for the next page of results.
          type: string
          readOnly: true
    DnsForwardingRulesetPatch:
      description: Describes a DNS forwarding ruleset PATCH operation.
      type: object
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - create
          - update
          description: Tags for DNS Resolver.
    VirtualNetworkLinkSubResourceProperties:
      description: The reference to the virtual network link that associates between the DNS forwarding ruleset and virtual network.
      type: object
      properties:
        virtualNetworkLink:
          description: The reference to the virtual network link.
          $ref: '#/components/schemas/SubResource'
    VirtualNetworkDnsForwardingRulesetListResult:
      description: The response to an enumeration operation on Virtual Network DNS Forwarding Ruleset.
      type: object
      properties:
        value:
          description: Enumeration of the Virtual Network DNS Forwarding Ruleset.
          type: array
          items:
            $ref: '#/components/schemas/VirtualNetworkDnsForwardingRuleset'
        nextLink:
          description: The continuation token for the next page of results.
          type: string
          readOnly: true
    CloudErrorBody:
      description: The body of an error message
      type: object
      properties:
        code:
          description: The error code
          type: string
        message:
          description: A description of what caused the error
          type: string
        target:
          description: The target resource of the error message
          type: string
        details:
          description: Extra error information
          type: array
          items:
            $ref: '#/components/schemas/CloudErrorBody'
          x-ms-identifiers: []
      x-ms-external: true
    CloudError:
      description: An error message
      type: object
      properties:
        error:
          description: The error message body
          $ref: '#/components/schemas/CloudErrorBody'
      x-ms-external: true
    VirtualNetworkDnsForwardingRuleset:
      description: Reference to DNS forwarding ruleset and associated virtual network link.
      type: object
      properties:
        id:
          type: string
          description: DNS Forwarding Ruleset Resource ID.
        properties:
          description: Properties of the virtual network link sub-resource reference.
          $ref: '#/components/schemas/VirtualNetworkLinkSubResourceProperties'
          x-ms-client-flatten: true
    SubResource:
      description: Reference to another ARM resource.
      type: object
      properties:
        id:
          type: string
          description: Resource ID.
      x-ms-azure-resource: true
    ProvisioningState:
      description: The current provisioning state of the resource.
      type: string
      enum:
      - Creating
      - Updating
      - Deleting
      - Succeeded
      - Failed
      - Canceled
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
    DnsForwardingRulesetProperties:
      description: Represents the properties of a DNS forwarding ruleset.
      type: object
      properties:
        dnsResolverOutboundEndpoints:
          description: The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.
          type: array
          items:
            $ref: '#/components/schemas/SubResource'
        provisioningState:
          description: The current provisioning state of the DNS forwarding ruleset. This is a read-only property and any attempt to set this value will be ignored.
          $ref: '#/components/schemas/ProvisioningState'
          readOnly: true
        resourceGuid:
          description: The resourceGuid for the DNS forwarding ruleset.
          type: string
          readOnly: true
  parameters:
    IfMatchParameter:
      name: If-Match
      in: header
      required: false
      x-ms-client-name: IfMatch
      description: ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.
      x-ms-parameter-location: method
      schema:
        type: string
    DnsForwardingRulesetNameParameter:
      name: dnsForwardingRulesetName
      in: path
      required: true
      description: The name of the DNS forwarding ruleset.
      x-ms-parameter-location: method
      schema:
        type: string
    IfNoneMatchParameter:
      name: If-None-Match
      in: header
      required: false
      x-ms-client-name: IfNoneMatch
      description: Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.
      x-ms-parameter-location: method
      schema:
        type: string
    VirtualNetworkNameParameter:
      name: virtualNetworkName
      in: path
      required: true
      description: The name of the virtual network.
      x-ms-parameter-location: method
      schema:
        type: string
    TopParameter:
      name: $top
      in: query
      required: false
      description: The maximum number of results to return. If not specified, returns up to 100 results.
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
  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