Microsoft Azure Active Session Host Configuration API

The ActiveSessionHostConfiguration API from Microsoft Azure, for activesessionhostconfiguration.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

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}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default Get the active session host configuration · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which session host configuration is my host pool currently using for updates?”
“How can I see the active configuration applied to an Azure Virtual Desktop host pool?”
Tell an agent
Get the active session host configuration for host pool {hostPoolName}.
Show the default configuration in use for updates on host pool {hostPoolName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations List active session host configurations · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What active session host configurations exist for a host pool?”
“Can I list every active configuration record on an AVD host pool?”
Tell an agent
List active session host configurations for host pool {hostPoolName}.
Enumerate all activeSessionHostConfigurations of 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-activesessionhostconfiguration-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-activesessionhostconfiguration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2023-11-01-preview
  title: Microsoft Azure Desktop Virtualization API Client Active…
servers:
- url: https://management.azure.com
tags:
- name: ActiveSessionHostConfiguration
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default
  : get:
      tags:
      - ActiveSessionHostConfiguration
      operationId: microsoftAzureActivesessionhostconfigurationsGet
      description: Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for update operations.
      x-ms-examples:
        SessionHostConfigurations_Get:
          $ref: ./examples/ActiveSessionHostConfigurations_Get.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/HostPoolNameParameter'
      responses:
        '200':
          description: Successfully retrieved activeSessionHostConfiguration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActiveSessionHostConfiguration'
        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…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations
  : get:
      tags:
      - ActiveSessionHostConfiguration
      operationId: microsoftAzureActivesessionhostconfigurationsListbyhostpool
      description: List activeSessionHostConfigurations.
      x-ms-examples:
        SessionHostConfigurations_ListByHostPool:
          $ref: ./examples/ActiveSessionHostConfigurations_ListByHostPool.json
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - $ref: '#/components/parameters/HostPoolNameParameter'
      responses:
        '200':
          description: Successfully retrieved activeSessionHostConfigurations in HostPool.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ActiveSessionHostConfigurationList'
        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:
    ActiveSessionHostConfiguration:
      type: object
      description: Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except provisioningState
      allOf:
      - $ref: ../../../../../common-types/resource-management/v1/types.json#/definitions/Resource
      required:
      - properties
      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 SessionHostConfiguration
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ActiveSessionHostConfigurationProperties'
    KeyVaultCredentialsProperties:
      description: Credentials kept in the keyvault.
      type: object
      required:
      - usernameKeyVaultSecretUri
      - passwordKeyVaultSecretUri
      properties:
        usernameKeyVaultSecretUri:
          type: string
          description: The uri to access the secret that the username is stored in.
        passwordKeyVaultSecretUri:
          type: string
          description: The uri to access the secret that the password is stored in.
    AzureActiveDirectoryInfoProperties:
      description: Azure Active directory info. Only one should be populated based on the join type.
      type: object
      required:
      - mdmProviderGuid
      properties:
        mdmProviderGuid:
          type: string
          description: The mdm guid.
    NetworkInfoProperties:
      description: Network information.
      type: object
      required:
      - subnetId
      properties:
        subnetId:
          type: string
          description: The resource ID of the subnet.
        securityGroupId:
          type: string
          description: The resource ID of the security group. Any allowable/open ports should be specified in the NSG.
    ActiveSessionHostConfigurationProperties:
      description: Session host configurations of HostPool.
      type: object
      required:
      - vmNamePrefix
      - networkInfo
      - vmSizeId
      - diskInfo
      - imageInfo
      - domainInfo
      - vmAdminCredentials
      properties:
        version:
          format: date-time
          type: string
          description: The timestamp of the last update.
          readOnly: true
        friendlyName:
          type: string
          description: Friendly name to describe this version of the SessionHostConfiguration.
          maxLength: 260
        vmTags:
          type: object
          additionalProperties:
            type: string
          description: Hashtable that lists key/value pair tags to apply to the VMs
        vmLocation:
          type: string
          description: The Location for the session host to be created in. It will default to the location of the hostpool if not provided.
        vmResourceGroup:
          type: string
          description: The ResourceGroup for the session hosts to be created in. It will default to the ResourceGroup of the hostpool if not provided.
        vmNamePrefix:
          type: string
          description: The prefix that should be associated with session host names
          maxLength: 11
        availabilityZones:
          type: array
          items:
            type: integer
            format: int32
          description: Value for availability zones to be used by the session host. Should be from [1,2,3].
        networkInfo:
          $ref: '#/components/schemas/NetworkInfoProperties'
          description: Network information.
        vmSizeId:
          type: string
          description: The id of the size of a virtual machine connected to a hostpool.
        diskInfo:
          $ref: '#/components/schemas/DiskInfoProperties'
          description: Disk information.
        customConfigurationScriptUrl:
          type: string
          description: The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning.
        imageInfo:
          $ref: '#/components/schemas/ImageInfoProperties'
          description: Image configurations of HostPool.
        domainInfo:
          $ref: '#/components/schemas/DomainInfoProperties'
          description: Domain configurations of session hosts.
        securityInfo:
          $ref: '#/components/schemas/SecurityInfoProperties'
          description: Security information.
        vmAdminCredentials:
          $ref: '#/components/schemas/KeyVaultCredentialsProperties'
          description: Local Admin credentials for session hosts.
        bootDiagnosticsInfo:
          $ref: '#/components/schemas/BootDiagnosticsInfoProperties'
          description: Boot Diagnostics information.
    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
    CloudError:
      description: Cloud error object.
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorProperties'
    CustomInfoProperties:
      description: Custom image information.
      type: object
      required:
      - resourceId
      properties:
        resourceId:
          type: string
          format: arm-id
          description: The resource id of the custom image.
    MarketplaceInfoProperties:
      description: Marketplace image information.
      type: object
      required:
      - offer
      - publisher
      - sku
      - exactVersion
      properties:
        offer:
          type: string
          description: The offer of the image.
        publisher:
          type: string
          description: The publisher of the image.
        sku:
          type: string
          description: The sku of the image.
        exactVersion:
          type: string
          description: The exact version of the image.
    SecurityInfoProperties:
      description: Security information.
      type: object
      properties:
        type:
          type: string
          enum:
          - Standard
          - TrustedLaunch
          - ConfidentialVM
          x-ms-enum:
            name: VirtualMachineSecurityType
            modelAsString: true
            values:
            - value: Standard
              description: Standard security protocol. No additional parameters
            - value: TrustedLaunch
              description: TrustedLaunch allows for secure boot adn vTPM
            - value: ConfidentialVM
              description: Confidential Virtual Machine security protocol
          default: Standard
          description: The security type used by virtual machine in hostpool session host. Default is Standard.
        secureBootEnabled:
          type: boolean
          description: Whether to use secureBoot on the virtual machine.
        vTpmEnabled:
          type: boolean
          description: Whether to use vTPM on the virtual machine.
    ImageInfoProperties:
      description: Image configurations of session host in a HostPool.
      type: object
      required:
      - type
      properties:
        type:
          enum:
          - Marketplace
          - Custom
          x-ms-enum:
            name: type
            modelAsString: true
            values:
            - value: Marketplace
              description: Using default marketplace images offered by Azure Marketplace.
            - value: Custom
              description: Using a custom image.
          type: string
          description: The type of image session hosts use in the hostpool.
        marketplaceInfo:
          $ref: '#/components/schemas/MarketplaceInfoProperties'
          description: The values to uniquely identify a marketplace image. Only one should be populated based on the image type.
        customInfo:
          $ref: '#/components/schemas/CustomInfoProperties'
          description: The values to uniquely identify a custom image. Only one should be populated based on the image type.
    ActiveDirectoryInfoProperties:
      description: Active directory info. Only one should be populated based on the join type.
      type: object
      required:
      - domainCredentials
      - ouPath
      properties:
        domainCredentials:
          $ref: '#/components/schemas/KeyVaultCredentialsProperties'
          description: Credentials needed to create the virtual machine.
        ouPath:
          type: string
          description: The ou path.
        domainName:
          type: string
          description: The domain a virtual machine connected to a hostpool will join.
    DiskInfoProperties:
      description: Disk information.
      type: object
      required:
      - type
      properties:
        type:
          type: string
          enum:
          - Standard_LRS
          - Premium_LRS
          - StandardSSD_LRS
          x-ms-enum:
            name: VirtualMachineDiskType
            modelAsString: true
            values:
            - value: Standard_LRS
              description: Standard HDD locally redundant storage. Best for backup, non-critical, and infrequent access.
            - value: Premium_LRS
              description: Premium SSD locally redundant storage. Best for production and performance sensitive workloads.
            - value: StandardSSD_LRS
              description: Standard SSD locally redundant storage. Best for web servers, lightly used enterprise applications and dev/test.
          description: The disk type used by virtual machine in hostpool session host.
    BootDiagnosticsInfoProperties:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether boot diagnostics should be enabled on the Virtual Machine.
        storageUri:
          type: string
          description: Uri of the storage account to use for placing the console output and screenshot. <br><br>If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
      description: Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
    DomainInfoProperties:
      description: Domain configurations of session hosts.
      type: object
      required:
      - joinType
      properties:
        joinType:
          enum:
          - ActiveDirectory
          - AzureActiveDirectory
          x-ms-enum:
            name: DomainJoinType
            modelAsString: true
            values:
            - value: ActiveDirectory
              description: Using microsoft active directory.
            - value: AzureActiveDirectory
              description: Using microsoft azure active directory.
          type: string
          description: The type of domain join done by the virtual machine.
        activeDirectoryInfo:
          $ref: '#/components/schemas/ActiveDirectoryInfoProperties'
          description: Active directory info. Only one should be populated based on the join type.
        azureActiveDirectoryInfo:
          $ref: '#/components/schemas/AzureActiveDirectoryInfoProperties'
          description: Azure active directory info. Only one should be populated based on the join type.
    ActiveSessionHostConfigurationList:
      type: object
      title: ActiveSessionHostConfigurationList
      description: List of ActiveSessionHostConfiguration definitions.
      properties:
        value:
          type: array
          description: List of ActiveSessionHostConfiguration definitions.
          items:
            $ref: '#/components/schemas/ActiveSessionHostConfiguration'
        nextLink:
          type: string
          readOnly: true
          description: Link to the next page of results.
  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
  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