Microsoft Azure Usage API

The Usage API from Microsoft Azure, for usage.

GitHub OpenAPI

Operations 2

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 /subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages Get storage usage and limits for a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Storage… #
Ask an LLM
“How many storage accounts am I using against my subscription limit?”
“What is the current storage resource usage and quota for my subscription?”
Tell an agent
Show storage usage and limits for subscription {subscription}.
Check how close subscription {subscription} is to its storage account limit.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web.Admin/environments/{environmentName}/usage Get usage records for an App Service environment · Microsoft Azure Returns Usage Records For Specified Subscription And Resource… #
Ask an LLM
“How do I pull usage records for an App Service environment from the admin API?”
“Can I page usage records for an environment in batches?”
Tell an agent
Get usage records for environment {environment} starting after {lastId} in batches of {size}.
Fetch {size} usage records for environment {environment} after {lastId} in resource group {rg}, subscription {subscription}.

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-usage-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-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure StorageManagement Usage API
  description: The Azure Storage Management API.
  version: '2016-12-01'
  x-ms-code-generation-settings:
    name: StorageManagementClient
servers:
- url: https://management.azure.com
tags:
- name: Usage
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages:
    get:
      tags:
      - Usage
      operationId: microsoftAzureUsageList
      description: Gets the current usage count and the limit for the resources under the subscription.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: OK -- current usage account and limit retrieved and returned successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageListResult'
            text/json:
              schema:
                $ref: '#/components/schemas/UsageListResult'
      x-ms-pageable:
        nextLinkName: null
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft Storage…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web.Admin/environments/{environmentName}/usage
  : get:
      tags:
      - Usage
      summary: Microsoft Azure Returns Usage Records For Specified Subscription And Resource…
      operationId: microsoftAzureUsageGetusage
      parameters:
      - name: resourceGroupName
        in: path
        description: Name of resource group
        required: true
        schema:
          type: string
      - name: environmentName
        in: path
        description: Environment name
        required: true
        schema:
          type: string
      - name: lastId
        in: query
        description: Last marker that was returned from the batch
        required: true
        schema:
          type: string
      - name: batchSize
        in: query
        description: size of the batch to be returned.
        required: true
        schema:
          type: integer
          format: int32
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
            text/json:
              schema:
                $ref: '#/components/schemas/Object'
            application/xml:
              schema:
                $ref: '#/components/schemas/Object'
            text/xml:
              schema:
                $ref: '#/components/schemas/Object'
      deprecated: false
      description: Needs a more full description created.
components:
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
      schema:
        type: string
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Client Api Version.
      schema:
        type: string
    apiVersionParameter:
      name: api-version
      in: query
      description: API Version
      required: true
      schema:
        type: string
    subscriptionIdParameter:
      name: subscriptionId
      in: path
      description: Subscription Id
      required: true
      schema:
        type: string
  schemas:
    UsageListResult:
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/Usage'
          description: Gets or sets the list of Storage Resource Usages.
      description: The response from the List Usages operation.
    Usage:
      properties:
        unit:
          readOnly: true
          type: string
          description: Gets the unit of measurement.
          enum:
          - Count
          - Bytes
          - Seconds
          - Percent
          - CountsPerSecond
          - BytesPerSecond
          x-ms-enum:
            name: UsageUnit
            modelAsString: false
        currentValue:
          readOnly: true
          type: integer
          format: int32
          description: Gets the current count of the allocated resources in the subscription.
        limit:
          readOnly: true
          type: integer
          format: int32
          description: Gets the maximum count of the resources that can be allocated in the subscription.
        name:
          $ref: '#/components/schemas/UsageName'
          readOnly: true
          description: Gets the name of the type of usage.
      description: Describes Storage Resource Usage.
    UsageName:
      properties:
        value:
          readOnly: true
          type: string
          description: Gets a string describing the resource name.
        localizedValue:
          readOnly: true
          type: string
          description: Gets a localized string describing the resource name.
      description: The usage names that can be used; currently limited to StorageAccount.
    Object:
      type: object
      properties: {}
  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