Microsoft Azure Scaling Plan API

The ScalingPlan API from Microsoft Azure, for scalingplan.

GitHub OpenAPI

Operations 7

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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName} Get an Azure Virtual Desktop scaling plan · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What schedule and settings does my Azure Virtual Desktop scaling plan use?”
“Can I look up one scaling plan by name?”
Tell an agent
Get scaling plan {scalingPlanName}.
Show the configuration of scaling plan {scalingPlanName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName} Create or replace a scaling plan · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I set up autoscaling for session hosts with a new scaling plan?”
“Can I overwrite a scaling plan's full definition in one call?”
Tell an agent
Create scaling plan {scalingPlanName} with properties {properties}.
Create or replace the scaling plan {scalingPlanName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName} Remove a scaling plan · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I delete a scaling plan I'm no longer using?”
“Can I remove autoscaling by deleting its scaling plan?”
Tell an agent destructive · confirm first
Delete scaling plan {scalingPlanName}.
Remove the Virtual Desktop scaling plan {scalingPlanName}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName} Update a scaling plan · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change only the tags on a scaling plan?”
“Is there a way to tweak some scaling plan settings without resending everything?”
Tell an agent
Update the tags on scaling plan {scalingPlanName} to {tags}.
Patch scaling plan {scalingPlanName} with {properties}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans List scaling plans in a resource group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which scaling plans are defined in this resource group?”
“Can I page resource group scaling plans in descending order?”
Tell an agent
List the scaling plans in this resource group.
List resource group scaling plans, {pageSize} per page.
GET /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans List scaling plans in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“What scaling plans exist across my whole subscription?”
“Can I see subscription-wide scaling plans a page at a time?”
Tell an agent
List every scaling plan in my subscription.
Show subscription scaling plans skipping the first {initialSkip}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/scalingPlans List scaling plans for a host pool · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which scaling plan is attached to my host pool?”
“Can I check what autoscaling applies to one host pool?”
Tell an agent
List scaling plans for host pool {hostPoolName}.
Show which scaling plans are associated with host pool {hostPoolName}.

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-scalingplan-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-scalingplan-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2023-11-01-preview
  title: Microsoft Azure Desktop Virtualization API Client Scaling…
servers:
- url: https://management.azure.com
tags:
- name: ScalingPlan
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}
  : get:
      tags:
      - ScalingPlan
      operationId: microsoftAzureScalingplansGet
      description: Get a scaling plan.
      x-ms-examples:
        ScalingPlans_Get:
          $ref: ./examples/ScalingPlan_Get.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/ScalingPlanNameParameter'
      responses:
        '200':
          description: Successfully retrieved scaling plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScalingPlan'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      tags:
      - ScalingPlan
      operationId: microsoftAzureScalingplansCreate
      description: Create or update a scaling plan.
      x-ms-examples:
        ScalingPlans_Create:
          $ref: ./examples/ScalingPlan_Create.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/ScalingPlanNameParameter'
      responses:
        '200':
          description: Successfully updated scaling plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScalingPlan'
        '201':
          description: Successfully created scaling plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScalingPlan'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScalingPlan'
        description: Object containing scaling plan definitions.
        required: true
    delete:
      tags:
      - ScalingPlan
      operationId: microsoftAzureScalingplansDelete
      description: Remove a scaling plan.
      x-ms-examples:
        ScalingPlans_Delete:
          $ref: ./examples/ScalingPlan_Delete.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/ScalingPlanNameParameter'
      responses:
        '200':
          description: Successfully deleted scaling plan.
        '204':
          description: Scaling plan does not exist.
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    patch:
      tags:
      - ScalingPlan
      operationId: microsoftAzureScalingplansUpdate
      description: Update a scaling plan.
      x-ms-examples:
        ScalingPlans_Update:
          $ref: ./examples/ScalingPlan_Update.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/ScalingPlanNameParameter'
      responses:
        '200':
          description: Successfully updated scaling plan.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScalingPlan'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ScalingPlanPatch'
        description: Object containing scaling plan definitions.
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans:
    get:
      tags:
      - ScalingPlan
      operationId: microsoftAzureScalingplansListbyresourcegroup
      description: List scaling plans.
      x-ms-examples:
        ScalingPlans_ListByResourceGroup:
          $ref: ./examples/ScalingPlan_ListByResourceGroup.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter
      - name: pageSize
        in: query
        required: false
        description: Number of items per page.
        schema:
          type: integer
          format: int32
      - name: isDescending
        in: query
        required: false
        description: Indicates whether the collection is descending.
        schema:
          type: boolean
      - name: initialSkip
        in: query
        required: false
        description: Initial number of items to skip.
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Successfully retrieved scaling plans in resource group.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScalingPlanList'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans:
    get:
      tags:
      - ScalingPlan
      operationId: microsoftAzureScalingplansListbysubscription
      description: List scaling plans in subscription.
      x-ms-examples:
        ScalingPlans_ListBySubscription:
          $ref: ./examples/ScalingPlan_ListBySubscription.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter
      - name: pageSize
        in: query
        required: false
        description: Number of items per page.
        schema:
          type: integer
          format: int32
      - name: isDescending
        in: query
        required: false
        description: Indicates whether the collection is descending.
        schema:
          type: boolean
      - name: initialSkip
        in: query
        required: false
        description: Initial number of items to skip.
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Successfully retrieved scaling plans in subscription.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScalingPlanList'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/scalingPlans
  : get:
      tags:
      - ScalingPlan
      operationId: microsoftAzureScalingplansListbyhostpool
      description: List scaling plan associated with hostpool.
      x-ms-examples:
        ScalingPlan_ListByHostPool:
          $ref: ./examples/ScalingPlan_ListByHostPool.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/HostPoolNameParameter'
      - name: pageSize
        in: query
        required: false
        description: Number of items per page.
        schema:
          type: integer
          format: int32
      - name: isDescending
        in: query
        required: false
        description: Indicates whether the collection is descending.
        schema:
          type: boolean
      - name: initialSkip
        in: query
        required: false
        description: Initial number of items to skip.
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Successfully retrieved scaling plan associated with hostpool.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScalingPlanList'
        default:
          description: Automation error response describing why the operation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    ScalingHostPoolReference:
      description: Scaling plan reference to hostpool.
      type: object
      properties:
        hostPoolArmPath:
          type: string
          description: Arm path of referenced hostpool.
        scalingPlanEnabled:
          type: boolean
          description: Is the scaling plan enabled for this hostpool.
    CloudErrorProperties:
      description: Cloud error object properties.
      type: object
      properties:
        code:
          description: Error code
          type: string
        message:
          description: Error message indicating why the operation failed.
          type: string
    Time:
      description: The time for a scaling action to occur.
      required:
      - hour
      - minute
      type: object
      properties:
        hour:
          format: int32
          description: The hour.
          maximum: 23
          minimum: 0
          type: integer
        minute:
          format: int32
          description: The minute.
          maximum: 59
          minimum: 0
          type: integer
    ScalingPlan:
      type: object
      title: ScalingPlan
      description: Represents a scaling plan definition.
      required:
      - properties
      allOf:
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/definitions/ResourceModelWithAllowedPropertySet
      properties:
        systemData:
          $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/systemData
          description: Metadata pertaining to creation and last modification of the resource.
        properties:
          description: Detailed properties for scaling plan.
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ScalingPlanProperties'
    ScalingPlanProperties:
      type: object
      description: Scaling plan properties.
      required:
      - timeZone
      properties:
        objectId:
          type: string
          description: ObjectId of scaling plan. (internal use)
          readOnly: true
        description:
          type: string
          description: Description of scaling plan.
        friendlyName:
          type: string
          description: User friendly name of scaling plan.
        timeZone:
          type: string
          description: Timezone of the scaling plan.
        hostPoolType:
          enum:
          - Pooled
          x-ms-enum:
            name: ScalingHostPoolType
            modelAsString: true
            values:
            - value: Pooled
              description: Users get a new (random) SessionHost every time it connects to the HostPool.
          default: Pooled
          type: string
          description: HostPool type for desktop.
        exclusionTag:
          type: string
          description: Exclusion tag for scaling plan.
        schedules:
          type: array
          description: List of ScalingPlanPooledSchedule definitions.
          items:
            $ref: '#/components/schemas/ScalingSchedule'
        hostPoolReferences:
          type: array
          description: List of ScalingHostPoolReference definitions.
          items:
            $ref: '#/components/schemas/ScalingHostPoolReference'
    CloudError:
      description: Cloud error object.
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorProperties'
    ScalingPlanPatchProperties:
      type: object
      description: Scaling plan properties.
      properties:
        description:
          type: string
          description: Description of scaling plan.
        friendlyName:
          type: string
          description: User friendly name of scaling plan.
        timeZone:
          type: string
          description: Timezone of the scaling plan.
        exclusionTag:
          type: string
          description: Exclusion tag for scaling plan.
        schedules:
          type: array
          description: List of ScalingSchedule definitions.
          items:
            $ref: '#/components/schemas/ScalingSchedule'
        hostPoolReferences:
          type: array
          description: List of ScalingHostPoolReference definitions.
          items:
            $ref: '#/components/schemas/ScalingHostPoolReference'
    ScalingPlanList:
      type: object
      title: ScalingPlanList
      description: List of scaling plan definitions.
      properties:
        value:
          type: array
          description: List of scaling plan definitions.
          items:
            $ref: '#/components/schemas/ScalingPlan'
        nextLink:
          type: string
          readOnly: true
          description: Link to the next page of results.
    ScalingSchedule:
      description: A ScalingPlanPooledSchedule.
      type: object
      properties:
        name:
          type: string
          description: Name of the ScalingPlanPooledSchedule.
        daysOfWeek:
          type: array
          description: Set of days of the week on which this schedule is active.
          items:
            enum:
            - Sunday
            - Monday
            - Tuesday
            - Wednesday
            - Thursday
            - Friday
            - Saturday
            type: string
        rampUpStartTime:
          $ref: '#/components/schemas/Time'
          description: Starting time for ramp up period.
        rampUpLoadBalancingAlgorithm:
          enum:
          - BreadthFirst
          - DepthFirst
          x-ms-enum:
            name: SessionHostLoadBalancingAlgorithm
            modelAsString: true
          type: string
          description: Load balancing algorithm for ramp up period.
        rampUpMinimumHostsPct:
          type: integer
          format: int32
          minimum: 0
          maximum: 100
          description: Minimum host percentage for ramp up period.
        rampUpCapacityThresholdPct:
          type: integer
          format: int32
          minimum: 1
          maximum: 100
          description: Capacity threshold for ramp up period.
        peakStartTime:
          $ref: '#/components/schemas/Time'
          description: Starting time for peak period.
        peakLoadBalancingAlgorithm:
          enum:
          - BreadthFirst
          - DepthFirst
          x-ms-enum:
            name: SessionHostLoadBalancingAlgorithm
            modelAsString: true
          type: string
          description: Load balancing algorithm for peak period.
        rampDownStartTime:
          $ref: '#/components/schemas/Time'
          description: Starting time for ramp down period.
        rampDownLoadBalancingAlgorithm:
          enum:
          - BreadthFirst
          - DepthFirst
          x-ms-enum:
            name: SessionHostLoadBalancingAlgorithm
            modelAsString: true
          type: string
          description: Load balancing algorithm for ramp down period.
        rampDownMinimumHostsPct:
          type: integer
          format: int32
          minimum: 0
          maximum: 100
          description: Minimum host percentage for ramp down period.
        rampDownCapacityThresholdPct:
          type: integer
          format: int32
          minimum: 1
          maximum: 100
          description: Capacity threshold for ramp down period.
        rampDownForceLogoffUsers:
          type: boolean
          description: Should users be logged off forcefully from hosts.
        rampDownStopHostsWhen:
          enum:
          - ZeroSessions
          - ZeroActiveSessions
          x-ms-enum:
            name: StopHostsWhen
            modelAsString: true
          type: string
          description: Specifies when to stop hosts during ramp down period.
        rampDownWaitTimeMinutes:
          type: integer
          format: int32
          description: Number of minutes to wait to stop hosts during ramp down period.
        rampDownNotificationMessage:
          type: string
          description: Notification message for users during ramp down period.
        offPeakStartTime:
          $ref: '#/components/schemas/Time'
          description: Starting time for off-peak period.
        offPeakLoadBalancingAlgorithm:
          enum:
          - BreadthFirst
          - DepthFirst
          x-ms-enum:
            name: SessionHostLoadBalancingAlgorithm
            modelAsString: true
          type: string
          description: Load balancing algorithm for off-peak period.
    ScalingPlanPatch:
      type: object
      description: Scaling plan properties that can be patched.
      properties:
        tags:
          type: object
          additionalProperties:
            type: string
          description: tags to be updated
        properties:
          description: Detailed properties for scaling plan
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ScalingPlanPatchProperties'
  parameters:
    HostPoolNameParameter:
      name: hostPoolName
      in: path
      required: true
      description: The name of the host pool within the specified resource group
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 64
        minLength: 3
    ScalingPlanNameParameter:
      name: scalingPlanName
      in: path
      required: true
      description: The name of the scaling plan.
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 64
        minLength: 3
  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