Microsoft Azure Policy API

The Policy API from Microsoft Azure, for policy.

GitHub OpenAPI

Operations 8

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 /policies/{attestationType} Get the attestation policy for a type · Microsoft Azure Retrieves The Current Policy For An Attestation Type #
Ask an LLM
“What attestation policy is currently set for SGX or TPM attestation?”
“Can I read back the policy my attestation provider is enforcing?”
Tell an agent
Get the attestation policy for type {attestationType}.
Show the current {attestationType} attestation policy.
PUT /policies/{attestationType} Set the attestation policy for a type · Microsoft Azure Sets The Policy For A Given Attestation Type #
Ask an LLM
“How do I upload a new attestation policy for an attestation type?”
“Can I replace the policy used to evaluate attestation evidence?”
Tell an agent
Set a new attestation policy for type {attestationType}.
Replace the {attestationType} attestation policy with my updated one.
POST /policies/{attestationType}:reset Reset an attestation policy to its default · Microsoft Azure Resets The Attestation Policy For The Specified Tenant And… #
Ask an LLM
“Can I put the attestation policy for an enclave type back to the service default?”
“What undoes a custom attestation policy I uploaded for a tenant?”
Tell an agent destructive · confirm first
Reset the attestation policy for type {attestationType} to default.
Discard my custom {attestationType} attestation policy.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName} Get a replication policy in a vault · Microsoft Azure Gets The Policy #
Ask an LLM
“What settings does a replication policy in my Data Replication vault have?”
“Can I look up one replication policy by its name?”
Tell an agent
Get replication policy {policyName} from vault {vaultName}.
Show the details of policy {policyName} in replication vault {vaultName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName} Create a replication policy · Microsoft Azure Puts The Policy #
Ask an LLM
“How do I create a replication policy in a data replication vault?”
“What properties are required when defining a replication policy?”
Tell an agent
Create replication policy {policyName} in vault {vaultName} with properties {properties}.
Add a new data replication policy {policyName} to {vaultName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName} Remove a replication policy · Microsoft Azure Deletes The Policy #
Ask an LLM
“Can I delete a replication policy from a data replication vault?”
“Is it possible to remove a replication policy I'm not using anymore?”
Tell an agent destructive · confirm first
Remove replication policy {policyName} from vault {vaultName}.
Delete data replication policy {policyName} in {vaultName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies List replication policies in a vault · Microsoft Azure Lists The Policies #
Ask an LLM
“Which replication policies exist in my data replication vault?”
“What policies are configured for a replication vault?”
Tell an agent
List replication policies in vault {vaultName}.
Show every data replication policy defined in {vaultName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}/operations/{operationId} Track an async replication policy operation · Microsoft Azure Gets The Policy Operation Status #
Ask an LLM
“Has the asynchronous operation on my replication policy finished?”
“How do I poll the result of a long-running policy change?”
Tell an agent
Check async operation {operationId} on replication policy {policyName} in vault {vaultName}.
Track the pending change on policy {policyName} of {vaultName}.

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-policy-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-policy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure AttestationClient Policy API
  description: Describes the interface for the per-tenant enclave service.
  version: 2022-09-01-preview
tags:
- name: Policy
paths:
  /policies/{attestationType}:
    get:
      tags:
      - Policy
      summary: Microsoft Azure Retrieves The Current Policy For An Attestation Type
      operationId: microsoftAzurePolicyGet
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/AttestationType'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponse'
        default:
          description: Error response describing why the operation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Get Policy:
          $ref: ./examples/Get_Policy.json
      description: Needs a more full description created.
    put:
      tags:
      - Policy
      summary: Microsoft Azure Sets The Policy For A Given Attestation Type
      operationId: microsoftAzurePolicySet
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/AttestationType'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponse'
        default:
          description: Error response describing why the operation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Set Policy:
          $ref: ./examples/Set_Policy.json
      description: Needs a more full description created.
      requestBody:
        content:
          text/plain:
            schema:
              $ref: '#/components/schemas/JsonWebToken'
        description: JWT Expressing the new policy whose body is a StoredAttestationPolicy object.
        required: true
  /policies/{attestationType}:reset:
    post:
      tags:
      - Policy
      summary: Microsoft Azure Resets The Attestation Policy For The Specified Tenant And…
      operationId: microsoftAzurePolicyReset
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/AttestationType'
      responses:
        '200':
          description: Success - Returns a JWT signed by the metadata signing key that contains the hash of the supplied policy to be set.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponse'
        default:
          description: Error response describing why the operation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-examples:
        Reset Policy:
          $ref: ./examples/Reset_Policy.json
      description: Needs a more full description created.
      requestBody:
        content:
          text/plain:
            schema:
              $ref: '#/components/schemas/JsonWebToken'
        description: JSON Web Signature with an empty policy document
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}
  : get:
      tags:
      - Policy
      summary: Microsoft Azure Gets The Policy
      description: Gets the details of the policy.
      operationId: microsoftAzurePolicyGet
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/VaultNameParameter'
      - $ref: '#/components/parameters/PolicyNameParameter'
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Policy Model on success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyModel'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Policy_Get:
          $ref: ./examples/Policy_Get.json
    put:
      tags:
      - Policy
      summary: Microsoft Azure Puts The Policy
      description: Creates the policy.
      operationId: microsoftAzurePolicyCreate
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/VaultNameParameter'
      - $ref: '#/components/parameters/PolicyNameParameter'
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyModel'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyModel'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Policy_Create:
          $ref: ./examples/Policy_Create.json
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicyModel'
        description: Policy model.
    delete:
      tags:
      - Policy
      summary: Microsoft Azure Deletes The Policy
      description: Removes the policy.
      operationId: microsoftAzurePolicyDelete
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/VaultNameParameter'
      - $ref: '#/components/parameters/PolicyNameParameter'
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '202':
          description: Returns success on deletion.
          headers:
            Azure-AsyncOperation:
              description: Tracking URL for long running operation.
              schema:
                type: string
            Location:
              schema:
                type: string
        '204':
          description: No Content
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        Policy_Delete:
          $ref: ./examples/Policy_Delete.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies
  : get:
      tags:
      - Policy
      summary: Microsoft Azure Lists The Policies
      description: Gets the list of policies in the given vault.
      operationId: microsoftAzurePolicyList
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/VaultNameParameter'
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Returns Policy Model Collection on success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyModelCollection'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        Policy_List:
          $ref: ./examples/Policy_List.json
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/replicationVaults/{vaultName}/replicationPolicies/{policyName}/operations/{operationId}
  : get:
      tags:
      - Policy
      summary: Microsoft Azure Gets The Policy Operation Status
      description: Tracks the results of an asynchronous operation on the policy.
      operationId: microsoftAzurePolicyoperationstatusGet
      parameters:
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/VaultNameParameter'
      - $ref: '#/components/parameters/PolicyNameParameter'
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/OperationIdParameter
      - $ref: ../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationStatus'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse
      x-ms-examples:
        PolicyOperationStatus_Get:
          $ref: ./examples/PolicyOperationStatus_Get.json
components:
  parameters:
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Client API version. Current version is 2022-09-01-preview
      schema:
        type: string
    AttestationType:
      description: Specifies the trusted execution environment to be used to validate the evidence
      name: attestationType
      in: path
      required: true
      x-ms-parameter-location: method
      x-ms-enum:
        name: AttestationType
        modelAsString: true
        values:
        - value: SgxEnclave
          description: Intel Software Guard eXtensions
        - value: OpenEnclave
          description: OpenEnclave extensions to SGX
        - value: SevSnpVm
          description: AMD SEV SNP Virtual Machine
        - value: Tpm
          description: Edge TPM Virtualization Based Security
      schema:
        type: string
        enum:
        - SgxEnclave
        - OpenEnclave
        - SevSnpVm
        - Tpm
    PolicyNameParameter:
      in: path
      name: policyName
      description: The policy name.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[a-zA-Z0-9]*$
    VaultNameParameter:
      in: path
      name: vaultName
      description: The vault name.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[a-zA-Z0-9]*$
  schemas:
    CloudErrorBody:
      x-ms-external: true
      properties:
        code:
          type: string
          description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
        message:
          type: string
          description: A message describing the error, intended to be suitable for displaying in a user interface.
      description: An error response from Attestation.
    CloudError:
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
      description: An error response from Attestation.
    JsonWebToken:
      description: An RFC 7519 Json Web Token
      type: string
      pattern: '[A-Za-z0-9_-]+\.[A-Za-z0-9_-]*\.[A-Za-z0-9_-]*'
      externalDocs:
        description: JSON Web Token RFC
        url: https://tools.ietf.org/html/rfc7519
    PolicyResponse:
      type: object
      description: The response to an attestation policy operation
      properties:
        token:
          description: An RFC7519 JSON Web Token structure whose body is an PolicyResult object.
          $ref: '#/components/schemas/JsonWebToken'
    OperationStatus:
      description: Defines the operation status.
      type: object
      properties:
        id:
          description: Gets or sets the Id.
          type: string
        name:
          description: Gets or sets the operation name.
          type: string
        status:
          description: 'Gets or sets the status of the operation. ARM expects the terminal status to be one of

            Succeeded/ Failed/ Canceled. All other values imply that the operation is still running.'
          type: string
        startTime:
          description: Gets or sets the start time.
          type: string
        endTime:
          description: Gets or sets the end time.
          type: string
    SystemDataModel:
      description: System data required to be defined for Azure resources.
      type: object
      properties:
        createdBy:
          description: Gets or sets identity that created the resource.
          type: string
        createdByType:
          description: 'Gets or sets the type of identity that created the resource: user, application,

            managedIdentity.'
          type: string
        createdAt:
          format: date-time
          description: Gets or sets the timestamp of resource creation (UTC).
          type: string
        lastModifiedBy:
          description: Gets or sets the identity that last modified the resource.
          type: string
        lastModifiedByType:
          description: 'Gets or sets the type of identity that last modified the resource: user, application,

            managedIdentity.'
          type: string
        lastModifiedAt:
          format: date-time
          description: Gets or sets the timestamp of resource last modification (UTC).
          type: string
    PolicyModelCollection:
      description: Policy model collection.
      type: object
      properties:
        value:
          description: Gets or sets the list of policies.
          type: array
          items:
            $ref: '#/components/schemas/PolicyModel'
          x-ms-identifiers: []
        nextLink:
          description: Gets or sets the value of next link.
          type: string
    PolicyModel:
      description: Policy model.
      required:
      - properties
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/PolicyModelProperties'
        id:
          description: Gets or sets the Id of the resource.
          type: string
          readOnly: true
        name:
          description: Gets or sets the name of the resource.
          type: string
          readOnly: true
        type:
          description: Gets or sets the type of the resource.
          type: string
          readOnly: true
        systemData:
          allOf:
          - $ref: '#/components/schemas/SystemDataModel'
          readOnly: true
      x-ms-azure-resource: true
    PolicyModelProperties:
      description: Policy model properties.
      required:
      - customProperties
      type: object
      properties:
        provisioningState:
          description: Gets or sets the provisioning state of the policy.
          enum:
          - Canceled
          - Creating
          - Deleting
          - Deleted
          - Failed
          - Succeeded
          - Updating
          type: string
          readOnly: true
          x-ms-enum:
            name: ProvisioningState
            modelAsString: true
        customProperties:
          $ref: '#/components/schemas/PolicyModelCustomProperties'
    PolicyModelCustomProperties:
      description: Policy model custom properties.
      required:
      - instanceType
      type: object
      properties:
        instanceType:
          description: Gets or sets the instance type.
          minLength: 1
          type: string
      discriminator:
        propertyName: instanceType
  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-ms-parameterized-host:
  hostTemplate: '{instanceUrl}'
  useSchemePrefix: false
  parameters:
  - name: instanceUrl
    x-ms-parameter-location: client
    description: The attestation instance base URI, for example https://mytenant.attest.azure.net.
    required: true
    type: string
    in: path
    x-ms-skip-url-encoding: true