Microsoft Azure Prediction API

The Prediction API from Microsoft Azure, for prediction.

GitHub OpenAPI

Operations 1

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

POST /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/predict Get an Advisor prediction · Microsoft Azure Predicts A Recommendation #
Ask an LLM
“Can Azure Advisor predict recommendations for a resource I am planning?”
“What does an Advisor prediction return for my subscription?”
Tell an agent
Run an Advisor prediction in subscription {sub} with properties {properties}.
Ask Advisor for a prediction using {properties}.

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-prediction-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-prediction-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2022-02-01-preview
  title: Microsoft Azure AdvisorManagementClient Prediction API
  description: REST APIs for Azure Advisor
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Prediction
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Advisor/predict:
    post:
      tags:
      - Prediction
      summary: Microsoft Azure Predicts A Recommendation
      operationId: microsoftAzurePredict
      parameters:
      - $ref: '#/components/parameters/subscriptionIdParameter'
      - $ref: '#/components/parameters/apiVersionParameter'
      responses:
        '200':
          description: OK. Successfully obtained prediction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PredictionResponse'
        default:
          description: Error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArmErrorResponse'
      deprecated: false
      x-ms-examples:
        Predict:
          $ref: ./examples/Predict.json
      description: Needs a more full description created.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PredictionRequest'
        description: Parameters for predict recommendation.
        required: true
components:
  schemas:
    PredictionResponseProperties:
      description: Properties of the prediction
      type: object
      properties:
        extendedProperties:
          description: Extended properties
          type: object
        predictionType:
          description: Type of the prediction.
          enum:
          - PredictiveRightsizing
          type: string
          x-ms-enum:
            name: predictionType
            modelAsString: true
        category:
          description: The category of the recommendation.
          enum:
          - HighAvailability
          - Security
          - Performance
          - Cost
          - OperationalExcellence
          type: string
          x-ms-enum:
            name: category
            modelAsString: true
        impact:
          description: The business impact of the recommendation.
          enum:
          - High
          - Medium
          - Low
          type: string
          x-ms-enum:
            name: impact
            modelAsString: true
        impactedField:
          description: The resource type identified by Advisor.
          type: string
        lastUpdated:
          format: date-time
          description: The most recent time that Advisor checked the validity of the recommendation.
          type: string
        shortDescription:
          $ref: '#/components/schemas/ShortDescription'
          description: A summary of the recommendation.
    PredictionRequestProperties:
      description: Properties given for the predictor.
      type: object
      properties:
        predictionType:
          description: Type of the prediction.
          enum:
          - PredictiveRightsizing
          type: string
          x-ms-enum:
            name: predictionType
            modelAsString: true
        extendedProperties:
          description: Extended properties are arguments specific for each prediction type.
          type: object
    ArmErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/ARMErrorResponseBody'
    PredictionRequest:
      description: Parameters for predict recommendation.
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/PredictionRequestProperties'
          description: Request properties for prediction recommendation.
          x-ms-client-flatten: true
    ShortDescription:
      description: A summary of the recommendation.
      type: object
      properties:
        solution:
          description: The remediation action suggested by the recommendation.
          type: string
    PredictionResponse:
      description: Response used by predictions.
      type: object
      properties:
        properties:
          $ref: '#/components/schemas/PredictionResponseProperties'
          description: The properties of the prediction.
          x-ms-client-flatten: true
      x-ms-azure-resource: true
    ARMErrorResponseBody:
      description: ARM error response body.
      type: object
      properties:
        message:
          description: Gets or sets the string that describes the error in detail and provides debugging information.
          type: string
        code:
          description: Gets or sets the string that can be used to programmatically identify the error.
          type: string
  parameters:
    apiVersionParameter:
      name: api-version
      in: query
      description: The version of the API to be used with the client request.
      required: true
      schema:
        type: string
    subscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The Azure subscription ID.
      required: true
      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.