Microsoft Azure Subscription Definitions API

The SubscriptionDefinitions API from Microsoft Azure, for subscriptiondefinitions.

GitHub OpenAPI

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /providers/Microsoft.Subscription/operations List Microsoft.Subscription API operations · Microsoft Azure Get Providers Microsoft Subscription Operations #
Ask an LLM
“Which operations does the Microsoft.Subscription provider support?”
“Can I list the available subscription API operations?”
Tell an agent
List all Microsoft.Subscription API operations.
Show the operations offered by the subscription resource provider.
PUT /providers/Microsoft.Subscription/subscriptionDefinitions/{subscriptionDefinitionName} Create a subscription definition · Microsoft Azure Put Providers Microsoft Subscription Subscriptiondefinitions… #
Ask an LLM
“How do I create an Azure subscription programmatically through a definition?”
“Can I define a new subscription with specific properties?”
Tell an agent
Create subscription definition {def}.
Create Azure subscription definition {def} with properties {props}.
GET /providers/Microsoft.Subscription/subscriptionDefinitions/{subscriptionDefinitionName} Get a subscription definition · Microsoft Azure Get Providers Microsoft Subscription Subscriptiondefinitions… #
Ask an LLM
“What does one of my Azure subscription definitions contain?”
“Can I look up a subscription definition by name?”
Tell an agent
Get subscription definition {def}.
Show the Azure subscription definition named {def}.
GET /providers/Microsoft.Subscription/subscriptionDefinitions List subscription definitions · Microsoft Azure Get Providers Microsoft Subscription Subscriptiondefinitions #
Ask an LLM
“What subscription definitions exist for my subscription?”
“Can I see all Azure subscription definitions at once?”
Tell an agent
List my subscription definitions.
Show every Azure subscription definition.
GET /providers/Microsoft.Subscription/subscriptionOperations/{operationId} Get the status of a subscription definition creation · Microsoft Azure Get Providers Microsoft Subscription Subscriptionoperations… #
Ask an LLM
“Has my subscription definition creation finished yet?”
“Where do I check the progress of a subscription definition PUT?”
Tell an agent
Get the status of subscription operation {op}.
Check whether subscription definition operation {op} has completed.

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-subscriptiondefinitions-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-subscriptiondefinitions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2017-11-01-preview
  title: Microsoft Azure SubscriptionDefinitionsClient Subscription…
  description: Subscription definitions client provides an interface to create, modify and retrieve azure subscriptions programmatically.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: SubscriptionDefinitions
paths:
  /providers/Microsoft.Subscription/operations:
    get:
      tags:
      - SubscriptionDefinitions
      description: Lists all of the available Microsoft.Subscription API operations.
      operationId: microsoftAzureSubscriptiondefinitionsoperationmetadataList
      x-ms-examples:
        getSubscriptionDefinitionOperations:
          $ref: ./examples/getOperations.json
      parameters:
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK. The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationListResult'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Providers Microsoft Subscription Operations
  /providers/Microsoft.Subscription/subscriptionDefinitions/{subscriptionDefinitionName}:
    put:
      tags:
      - SubscriptionDefinitions
      description: Create an Azure subscription definition.
      operationId: microsoftAzureSubscriptiondefinitionsCreate
      x-ms-examples:
        createSubscriptionDefinition:
          $ref: ./examples/createSubscriptionDefinition.json
      parameters:
      - name: subscriptionDefinitionName
        in: path
        description: The name of the Azure subscription definition.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: Normal response for a successful query. The response body will contain the data that matches the filters specified in the query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionDefinition'
        '202':
          description: Accepted. Subscription creation is in progress.
          headers:
            Location:
              description: GET this URL to retrieve the status of the asynchronous operation.
              schema:
                type: string
            Retry-After:
              description: The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
              schema:
                type: string
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation: true
      summary: Microsoft Azure Put Providers Microsoft Subscription Subscriptiondefinitions…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionDefinition'
        description: The subscription definition creation.
        required: true
    get:
      tags:
      - SubscriptionDefinitions
      description: Get an Azure subscription definition.
      operationId: microsoftAzureSubscriptiondefinitionsGet
      x-ms-examples:
        getSubscriptionDefinition:
          $ref: ./examples/getSubscriptionDefinition.json
      parameters:
      - name: subscriptionDefinitionName
        in: path
        description: The name of the Azure subscription definition.
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: Normal response for a successful query. The response body will contain the data that matches the filters specified in the query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionDefinition'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      summary: Microsoft Azure Get Providers Microsoft Subscription Subscriptiondefinitions…
  /providers/Microsoft.Subscription/subscriptionDefinitions:
    get:
      tags:
      - SubscriptionDefinitions
      description: List an Azure subscription definition by subscriptionId.
      operationId: microsoftAzureSubscriptiondefinitionsList
      x-ms-examples:
        ListSubscriptionDefinition:
          $ref: ./examples/listSubscriptionDefinitions.json
      parameters:
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: Normal response for a successful query. The response body will contain the data that matches the filters specified in the query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionDefinitionList'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Providers Microsoft Subscription Subscriptiondefinitions
  /providers/Microsoft.Subscription/subscriptionOperations/{operationId}:
    get:
      tags:
      - SubscriptionDefinitions
      description: Retrieves the status of the subscription definition PUT operation. The URI of this API is returned in the Location field of the response header.
      operationId: microsoftAzureSubscriptiondefinitionsGetoperationstatus
      x-ms-examples:
        getSubscriptionDefinitionOperation:
          $ref: ./examples/getSubscriptionDefinitionOperation.json
      parameters:
      - $ref: '#/components/parameters/apiVersionParameter'
      - name: operationId
        in: path
        description: The operation ID, which can be found from the Location field in the generate recommendation response header.
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Successful completion of the asynchronous operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionDefinition'
        '202':
          description: Accepted. Subscription update is in progress.
          headers:
            Location:
              description: The URL where the status of the asynchronous operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.
              schema:
                type: string
      deprecated: false
      summary: Microsoft Azure Get Providers Microsoft Subscription Subscriptionoperations…
components:
  schemas:
    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
    OperationListResult:
      description: Result of the request to list operations. It contains a list of operations and a URL link to get the next set of results.
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/Operation'
          description: List of operations.
        nextLink:
          type: string
          description: URL to get the next set of operation list results if there are any.
    SubscriptionDefinitionProperties:
      description: The subscription definition properties.
      properties:
        subscriptionId:
          description: The ID of the subscription.
          readOnly: true
          type: string
        subscriptionDisplayName:
          description: The display name of the subscription.
          type: string
        offerType:
          type: string
          description: The offer type of the subscription. For example, MS-AZR-0017P (EnterpriseAgreement) and MS-AZR-0148P (EnterpriseAgreement devTest) are available.
          x-ms-mutability:
          - create
          - read
        etag:
          description: The etag the subscription definition.
          type: string
    Operation:
      description: REST API operation
      type: object
      properties:
        name:
          description: 'Operation name: {provider}/{resource}/{operation}'
          type: string
        display:
          description: The object that represents the operation.
          properties:
            provider:
              description: 'Service provider: Microsoft.Subscription'
              type: string
            resource:
              description: 'Resource on which the operation is performed: Profile, endpoint, etc.'
              type: string
            operation:
              description: 'Operation type: Read, write, delete, etc.'
              type: string
    SubscriptionDefinitionList:
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/SubscriptionDefinition'
          description: An array of subscriptionDefinitions
        nextLink:
          type: string
          description: URL to get the next set of operation list results if there are any.
      description: Subscription Definition List operation response.
    SubscriptionDefinition:
      description: The subscription definition used to create the subscription.
      x-ms-azure-resource: true
      properties:
        id:
          description: The resource ID.
          type: string
          readOnly: true
        name:
          description: The name of the resource.
          type: string
          readOnly: true
        type:
          description: The type of the resource.
          type: string
          readOnly: true
        properties:
          description: the subscription definition properties
          x-ms-client-flatten: true
          $ref: '#/components/schemas/SubscriptionDefinitionProperties'
  parameters:
    apiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Version of the API to be used with the client request. Current version is 2015-06-01
      schema:
        type: string
  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/subscription/resource-manager/Microsoft.Subscription/preview/2017-11-01-preview/subscriptionDefinitions.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)