Azure Policy Policy Set Definition Versions API

The PolicySetDefinitionVersions API from Azure Policy — 9 operation(s) for policysetdefinitionversions.

GitHub OpenAPI

Operations 13

POST /providers/Microsoft.Authorization/listPolicySetDefinitionVersions Lists all built-in policy set definition versions #
POST /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/listPolicySetDefinitionVersions Lists all policy set definition versions at management group scope #
POST /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/listPolicySetDefinitionVersions Lists all policy set definition versions within a subscription #
PUT /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion} Creates or updates a policy set definition version #
DELETE /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion} Deletes a policy set definition version #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion} Retrieves a policy set definition version #
GET /providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion} Retrieves a built in policy set definition version #
GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions Retrieves the policy set definition versions for a given policy set definition… #
GET /providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions Retrieves built-in policy set definition versions #
PUT /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion} Creates or updates a policy set definition version #
DELETE /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion} Deletes a policy set definition version #
GET /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion} Retrieves a policy set definition version #
GET /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions Retrieves all policy set definition versions for a given policy set definition… #

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-policy:microsoft-azure-policy-policysetdefinitionversions-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-policysetdefinitionversions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PolicyClient Policy Set Definition Versions API
  version: '2025-01-01'
  description: To manage and control access to your resources, you can define customized policies and assign them at a scope.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: PolicySetDefinitionVersions
paths:
  /providers/Microsoft.Authorization/listPolicySetDefinitionVersions:
    post:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_ListAllBuiltins
      summary: Lists all built-in policy set definition versions
      description: This operation lists all the built-in policy set definition versions for all built-in policy set definitions.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK - Returns an array of policy set definition versions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersionListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
  ? /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/listPolicySetDefinitionVersions
  : post:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_ListAllAtManagementGroup
      summary: Lists all policy set definition versions at management group scope
      description: This operation lists all the policy set definition versions for all policy set definitions at the management group scope.
      parameters:
      - $ref: '#/components/parameters/ManagementGroupNameParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK - Returns an array of policy set definition versions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersionListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/listPolicySetDefinitionVersions:
    post:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_ListAll
      summary: Lists all policy set definition versions within a subscription
      description: This operation lists all the policy set definition versions for all policy set definitions within a subscription.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK - Returns an array of policy set definition versions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersionListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}
  : put:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_CreateOrUpdate
      summary: Creates or updates a policy set definition version
      description: This operation creates or updates a policy set definition version in the given subscription with the given name and version.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/PolicySetDefinitionVersion'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '201':
          description: Created - Returns information about the policy set definition version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersion'
        '200':
          description: OK - Successfully updated policy set definition version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersion'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicySetDefinitionVersion'
        description: The policy set definition properties.
        required: true
    delete:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_Delete
      summary: Deletes a policy set definition version
      description: This operation deletes the policy set definition version in the given subscription with the given name and version.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/PolicySetDefinitionVersion'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '204':
          description: No Content - the policy set definition doesn't exist in the subscription.
        '200':
          description: OK
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
    get:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_Get
      summary: Retrieves a policy set definition version
      description: This operation retrieves the policy set definition version in the given subscription with the given name and version.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/PolicySetDefinitionVersion'
      - $ref: '#/components/parameters/PolicySetDefinitionsExpandParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK - Returns information about the policy set definition version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersion'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
  /providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}:
    get:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_GetBuiltIn
      summary: Retrieves a built in policy set definition version
      description: This operation retrieves the built-in policy set definition version with the given name and version.
      parameters:
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/PolicySetDefinitionVersion'
      - $ref: '#/components/parameters/PolicySetDefinitionsExpandParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK - Returns information about the built in policy set definition version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersion'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
  /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions:
    get:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_List
      summary: Retrieves the policy set definition versions for a given policy set definition…
      description: This operation retrieves a list of all the policy set definition versions for the given policy set definition.
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionsExpandParameter'
      - $ref: '#/components/parameters/TopParameter'
      responses:
        '200':
          description: OK - Returns an array of policy set definition versions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersionListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
  /providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions:
    get:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_ListBuiltIn
      summary: Retrieves built-in policy set definition versions
      description: This operation retrieves a list of all the built-in policy set definition versions for the given built-in policy set definition.
      parameters:
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionsExpandParameter'
      - $ref: '#/components/parameters/TopParameter'
      responses:
        '200':
          description: OK - Returns an array of built in policy set definition versions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersionListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
  ? /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions/{policyDefinitionVersion}
  : put:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_CreateOrUpdateAtManagementGroup
      summary: Creates or updates a policy set definition version
      description: This operation creates or updates a policy set definition version in the given management group with the given name and version.
      parameters:
      - $ref: '#/components/parameters/ManagementGroupNameParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/PolicySetDefinitionVersion'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '201':
          description: Created - Returns information about the policy set definition version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersion'
        '200':
          description: OK - Successfully updated policy set definition version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersion'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicySetDefinitionVersion'
        description: The policy set definition version properties.
        required: true
    delete:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_DeleteAtManagementGroup
      summary: Deletes a policy set definition version
      description: This operation deletes the policy set definition version in the given management group with the given name and version.
      parameters:
      - $ref: '#/components/parameters/ManagementGroupNameParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/PolicySetDefinitionVersion'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '204':
          description: No Content - the policy set definition doesn't exist in the subscription.
        '200':
          description: OK
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
    get:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_GetAtManagementGroup
      summary: Retrieves a policy set definition version
      description: This operation retrieves the policy set definition version in the given management group with the given name and version.
      parameters:
      - $ref: '#/components/parameters/ManagementGroupNameParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/PolicySetDefinitionVersion'
      - $ref: '#/components/parameters/PolicySetDefinitionsExpandParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK - Returns information about the policy set definition version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersion'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
  ? /providers/Microsoft.Management/managementGroups/{managementGroupName}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions
  : get:
      tags:
      - PolicySetDefinitionVersions
      operationId: PolicySetDefinitionVersions_ListByManagementGroup
      summary: Retrieves all policy set definition versions for a given policy set definition…
      description: This operation retrieves a list of all the policy set definition versions for the given policy set definition in a given management group.
      parameters:
      - $ref: '#/components/parameters/ManagementGroupNameParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/PolicySetDefinitionsExpandParameter'
      - $ref: '#/components/parameters/TopParameter'
      responses:
        '200':
          description: OK - Returns an array of policy set definition versions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicySetDefinitionVersionListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
components:
  schemas:
    ParameterValues:
      type: object
      additionalProperties:
        $ref: '#/components/schemas/ParameterValuesValue'
      description: The parameter values for the policy rule. The keys are the parameter names.
    ParameterDefinitions:
      description: The parameter definitions for parameters used in the policy. The keys are the parameter names.
      type: object
      additionalProperties:
        $ref: '#/components/schemas/ParameterDefinitionsValue'
    PolicySetDefinitionVersion:
      type: object
      properties:
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/PolicySetDefinitionVersionProperties'
          description: The policy set definition version properties.
        id:
          readOnly: true
          type: string
          description: The ID of the policy set definition version.
        name:
          readOnly: true
          type: string
          description: The name of the policy set definition version.
        type:
          readOnly: true
          type: string
          description: The type of the resource (Microsoft.Authorization/policySetDefinitions/versions).
        systemData:
          $ref: '#/components/schemas/systemData'
          readOnly: true
          description: The system metadata relating to this resource.
      description: The policy set definition version.
      x-ms-azure-resource: true
    systemData:
      type: object
      description: Metadata pertaining to creation and last modification of the resource.
      properties:
        createdBy:
          type: string
          description: The identity that created the resource.
        createdByType:
          type: string
          description: The type of identity that created the resource.
          enum:
          - User
          - Application
          - ManagedIdentity
          - Key
          x-ms-enum:
            name: createdByType
            modelAsString: true
        createdAt:
          type: string
          format: date-time
          description: The timestamp of resource creation (UTC).
        lastModifiedBy:
          type: string
          description: The identity that last modified the resource.
        lastModifiedByType:
          type: string
          description: The type of identity that last modified the resource.
          enum:
          - User
          - Application
          - ManagedIdentity
          - Key
          x-ms-enum:
            name: createdByType
            modelAsString: true
        lastModifiedAt:
          type: string
          format: date-time
          description: The timestamp of resource last modification (UTC)
      readOnly: true
    ErrorResponse:
      title: Error Response
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.)
      type: object
      properties:
        code:
          readOnly: true
          type: string
          description: The error code.
        message:
          readOnly: true
          type: string
          description: The error message.
        target:
          readOnly: true
          type: string
          description: The error target.
        details:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/ErrorResponse'
          x-ms-identifiers:
          - message
          - target
          description: The error details.
        additionalInfo:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/ErrorAdditionalInfo'
          x-ms-identifiers: []
          description: The error additional info.
    PolicySetDefinitionVersionListResult:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/PolicySetDefinitionVersion'
          description: An array of policy set definition versions.
        nextLink:
          type: string
          description: The URL to use for getting the next set of results.
      description: List of policy set definition versions.
    PolicyDefinitionGroup:
      type: object
      properties:
        name:
          type: string
          description: The name of the group.
        displayName:
          type: string
          description: The group's display name.
        category:
          type: string
          description: The group's category.
        description:
          type: string
          description: The group's description.
        additionalMetadataId:
          type: string
          description: A resource ID of a resource that contains additional metadata about the group.
      required:
      - name
      description: The policy definition group.
    PolicyDefinitionReference:
      type: object
      properties:
        policyDefinitionId:
          type: string
          description: The ID of the policy definition or policy set definition.
        definitionVersion:
          type: string
          description: The version of the policy definition to use.
        latestDefinitionVersion:
          type: string
          description: The latest version of the policy definition available. This is only present if requested via the $expand query parameter.
          readOnly: true
        effectiveDefinitionVersion:
          type: string
          description: The effective version of the policy definition in use. This is only present if requested via the $expand query parameter.
          readOnly: true
        parameters:
          description: The parameter values for the referenced policy rule. The keys are the parameter names.
          $ref: '#/components/schemas/ParameterValues'
        policyDefinitionReferenceId:
          type: string
          description: A unique id (within the policy set definition) for this policy definition reference.
        groupNames:
          type: array
          items:
            type: string
          description: The name of the groups that this policy definition reference belongs to.
      required:
      - policyDefinitionId
      description: The policy definition reference.
    PolicySetDefinitionVersionProperties:
      type: object
      properties:
        policyType:
          type: string
          description: The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.
          enum:
          - NotSpecified
          - BuiltIn
          - Custom
          - Static
          x-ms-enum:
            name: policyType
            modelAsString: true
        displayName:
          type: string
          description: The display name of the policy set definition.
        description:
          type: string
          description: The policy set definition description.
        metadata:
          type: object
          description: The policy set definition metadata.  Metadata is an open ended object and is typically a collection of key value pairs.
        parameters:
          description: The policy set definition parameters that can be used in policy definition references.
          $ref: '#/components/schemas/ParameterDefinitions'
        policyDefinitions:
          type: array
          items:
            $ref: '#/components/schemas/PolicyDefinitionReference'
          x-ms-identifiers:
          - policyDefinitionReferenceId
          description: An array of policy definition references.
        policyDefinitionGroups:
          type: array
          items:
            $ref: '#/components/schemas/PolicyDefinitionGroup'
          x-ms-identifiers:
          - name
          description: The metadata describing groups of policy definition references within the policy set definition.
        version:
          type: string
          description: 'The policy set definition version in #.#.# format.'
      required:
      - policyDefinitions
      description: The policy set definition properties.
    CloudError:
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ErrorResponse'
      description: An error response from a policy operation.
  parameters:
    TopParameter:
      name: $top
      in: query
      required: false
      description: Maximum number of records to return. When the $top filter is not provided, it will return 500 records.
      x-ms-parameter-location: method
      schema:
        type: integer
        format: int32
        maximum: 1000
        minimum: 1
    PolicySetDefinitionsExpandParameter:
      name: $expand
      in: query
      required: false
      description: Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'.
      x-ms-parameter-location: method
      schema:
        type: string
    PolicySetDefinitionVersion:
      name: policyDefinitionVersion
      in: path
      required: true
      description: The policy set definition version.  The format is x.y.z where x is the major version number, y is the minor version number, and z is the patch number
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^\d+\.\d+\.\d+$
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    ManagementGroupNameParameter:
      name: managementGroupName
      in: path
      description: The name of the management group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    PolicySetDefinitionName:
      name: policySetDefinitionName
      in: path
      required: true
      description: The name of the policy set definition.
      x-ms-parameter-location: method
      schema:
        type: string
        pattern: ^[^<>%&:\?/]*[^<>%&:\?/ ]+$
  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.