We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.desktopvirtualization.getHostPool
Explore with Pulumi AI
Use this data source to access information about an existing Virtual Desktop Host Pool.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.desktopvirtualization.getHostPool({
    name: "example-pool",
    resourceGroupName: "example-resources",
});
import pulumi
import pulumi_azure as azure
example = azure.desktopvirtualization.get_host_pool(name="example-pool",
    resource_group_name="example-resources")
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/desktopvirtualization"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := desktopvirtualization.LookupHostPool(ctx, &desktopvirtualization.LookupHostPoolArgs{
			Name:              "example-pool",
			ResourceGroupName: "example-resources",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.DesktopVirtualization.GetHostPool.Invoke(new()
    {
        Name = "example-pool",
        ResourceGroupName = "example-resources",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.desktopvirtualization.DesktopvirtualizationFunctions;
import com.pulumi.azure.desktopvirtualization.inputs.GetHostPoolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = DesktopvirtualizationFunctions.getHostPool(GetHostPoolArgs.builder()
            .name("example-pool")
            .resourceGroupName("example-resources")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: azure:desktopvirtualization:getHostPool
      arguments:
        name: example-pool
        resourceGroupName: example-resources
Using getHostPool
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getHostPool(args: GetHostPoolArgs, opts?: InvokeOptions): Promise<GetHostPoolResult>
function getHostPoolOutput(args: GetHostPoolOutputArgs, opts?: InvokeOptions): Output<GetHostPoolResult>def get_host_pool(name: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetHostPoolResult
def get_host_pool_output(name: Optional[pulumi.Input[str]] = None,
                  resource_group_name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetHostPoolResult]func LookupHostPool(ctx *Context, args *LookupHostPoolArgs, opts ...InvokeOption) (*LookupHostPoolResult, error)
func LookupHostPoolOutput(ctx *Context, args *LookupHostPoolOutputArgs, opts ...InvokeOption) LookupHostPoolResultOutput> Note: This function is named LookupHostPool in the Go SDK.
public static class GetHostPool 
{
    public static Task<GetHostPoolResult> InvokeAsync(GetHostPoolArgs args, InvokeOptions? opts = null)
    public static Output<GetHostPoolResult> Invoke(GetHostPoolInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHostPoolResult> getHostPool(GetHostPoolArgs args, InvokeOptions options)
public static Output<GetHostPoolResult> getHostPool(GetHostPoolArgs args, InvokeOptions options)
fn::invoke:
  function: azure:desktopvirtualization/getHostPool:getHostPool
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of the Virtual Desktop Host Pool to retrieve.
- ResourceGroup stringName 
- The name of the resource group where the Virtual Desktop Host Pool exists.
- Name string
- The name of the Virtual Desktop Host Pool to retrieve.
- ResourceGroup stringName 
- The name of the resource group where the Virtual Desktop Host Pool exists.
- name String
- The name of the Virtual Desktop Host Pool to retrieve.
- resourceGroup StringName 
- The name of the resource group where the Virtual Desktop Host Pool exists.
- name string
- The name of the Virtual Desktop Host Pool to retrieve.
- resourceGroup stringName 
- The name of the resource group where the Virtual Desktop Host Pool exists.
- name str
- The name of the Virtual Desktop Host Pool to retrieve.
- resource_group_ strname 
- The name of the resource group where the Virtual Desktop Host Pool exists.
- name String
- The name of the Virtual Desktop Host Pool to retrieve.
- resourceGroup StringName 
- The name of the resource group where the Virtual Desktop Host Pool exists.
getHostPool Result
The following output properties are available:
- CustomRdp stringProperties 
- The custom RDP properties string for the Virtual Desktop Host Pool.
- Description string
- The description for the Virtual Desktop Host Pool.
- FriendlyName string
- The friendly name for the Virtual Desktop Host Pool.
- Id string
- The provider-assigned unique ID for this managed resource.
- LoadBalancer stringType 
- The type of load balancing performed by the Host Pool
- Location string
- The location/region where the Virtual Desktop Host Pool is located.
- MaximumSessions intAllowed 
- The maximum number of users that can have concurrent sessions on a session host.
- Name string
- PersonalDesktop stringAssignment Type 
- The type of personal desktop assignment in use by the Host Pool
- PreferredApp stringGroup Type 
- The preferred Application Group type for the Virtual Desktop Host Pool.
- ResourceGroup stringName 
- ScheduledAgent List<GetUpdates Host Pool Scheduled Agent Update> 
- A scheduled_agent_updatesblock as defined below.
- StartVm boolOn Connect 
- Returns trueif the Start VM on Connection Feature is enabled.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Type string
- The type of the Virtual Desktop Host Pool.
- ValidateEnvironment bool
- Returns trueif the Host Pool is in Validation mode.
- CustomRdp stringProperties 
- The custom RDP properties string for the Virtual Desktop Host Pool.
- Description string
- The description for the Virtual Desktop Host Pool.
- FriendlyName string
- The friendly name for the Virtual Desktop Host Pool.
- Id string
- The provider-assigned unique ID for this managed resource.
- LoadBalancer stringType 
- The type of load balancing performed by the Host Pool
- Location string
- The location/region where the Virtual Desktop Host Pool is located.
- MaximumSessions intAllowed 
- The maximum number of users that can have concurrent sessions on a session host.
- Name string
- PersonalDesktop stringAssignment Type 
- The type of personal desktop assignment in use by the Host Pool
- PreferredApp stringGroup Type 
- The preferred Application Group type for the Virtual Desktop Host Pool.
- ResourceGroup stringName 
- ScheduledAgent []GetUpdates Host Pool Scheduled Agent Update 
- A scheduled_agent_updatesblock as defined below.
- StartVm boolOn Connect 
- Returns trueif the Start VM on Connection Feature is enabled.
- map[string]string
- A mapping of tags to assign to the resource.
- Type string
- The type of the Virtual Desktop Host Pool.
- ValidateEnvironment bool
- Returns trueif the Host Pool is in Validation mode.
- customRdp StringProperties 
- The custom RDP properties string for the Virtual Desktop Host Pool.
- description String
- The description for the Virtual Desktop Host Pool.
- friendlyName String
- The friendly name for the Virtual Desktop Host Pool.
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringType 
- The type of load balancing performed by the Host Pool
- location String
- The location/region where the Virtual Desktop Host Pool is located.
- maximumSessions IntegerAllowed 
- The maximum number of users that can have concurrent sessions on a session host.
- name String
- personalDesktop StringAssignment Type 
- The type of personal desktop assignment in use by the Host Pool
- preferredApp StringGroup Type 
- The preferred Application Group type for the Virtual Desktop Host Pool.
- resourceGroup StringName 
- scheduledAgent List<GetUpdates Host Pool Scheduled Agent Update> 
- A scheduled_agent_updatesblock as defined below.
- startVm BooleanOn Connect 
- Returns trueif the Start VM on Connection Feature is enabled.
- Map<String,String>
- A mapping of tags to assign to the resource.
- type String
- The type of the Virtual Desktop Host Pool.
- validateEnvironment Boolean
- Returns trueif the Host Pool is in Validation mode.
- customRdp stringProperties 
- The custom RDP properties string for the Virtual Desktop Host Pool.
- description string
- The description for the Virtual Desktop Host Pool.
- friendlyName string
- The friendly name for the Virtual Desktop Host Pool.
- id string
- The provider-assigned unique ID for this managed resource.
- loadBalancer stringType 
- The type of load balancing performed by the Host Pool
- location string
- The location/region where the Virtual Desktop Host Pool is located.
- maximumSessions numberAllowed 
- The maximum number of users that can have concurrent sessions on a session host.
- name string
- personalDesktop stringAssignment Type 
- The type of personal desktop assignment in use by the Host Pool
- preferredApp stringGroup Type 
- The preferred Application Group type for the Virtual Desktop Host Pool.
- resourceGroup stringName 
- scheduledAgent GetUpdates Host Pool Scheduled Agent Update[] 
- A scheduled_agent_updatesblock as defined below.
- startVm booleanOn Connect 
- Returns trueif the Start VM on Connection Feature is enabled.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- type string
- The type of the Virtual Desktop Host Pool.
- validateEnvironment boolean
- Returns trueif the Host Pool is in Validation mode.
- custom_rdp_ strproperties 
- The custom RDP properties string for the Virtual Desktop Host Pool.
- description str
- The description for the Virtual Desktop Host Pool.
- friendly_name str
- The friendly name for the Virtual Desktop Host Pool.
- id str
- The provider-assigned unique ID for this managed resource.
- load_balancer_ strtype 
- The type of load balancing performed by the Host Pool
- location str
- The location/region where the Virtual Desktop Host Pool is located.
- maximum_sessions_ intallowed 
- The maximum number of users that can have concurrent sessions on a session host.
- name str
- personal_desktop_ strassignment_ type 
- The type of personal desktop assignment in use by the Host Pool
- preferred_app_ strgroup_ type 
- The preferred Application Group type for the Virtual Desktop Host Pool.
- resource_group_ strname 
- scheduled_agent_ Sequence[Getupdates Host Pool Scheduled Agent Update] 
- A scheduled_agent_updatesblock as defined below.
- start_vm_ boolon_ connect 
- Returns trueif the Start VM on Connection Feature is enabled.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- type str
- The type of the Virtual Desktop Host Pool.
- validate_environment bool
- Returns trueif the Host Pool is in Validation mode.
- customRdp StringProperties 
- The custom RDP properties string for the Virtual Desktop Host Pool.
- description String
- The description for the Virtual Desktop Host Pool.
- friendlyName String
- The friendly name for the Virtual Desktop Host Pool.
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringType 
- The type of load balancing performed by the Host Pool
- location String
- The location/region where the Virtual Desktop Host Pool is located.
- maximumSessions NumberAllowed 
- The maximum number of users that can have concurrent sessions on a session host.
- name String
- personalDesktop StringAssignment Type 
- The type of personal desktop assignment in use by the Host Pool
- preferredApp StringGroup Type 
- The preferred Application Group type for the Virtual Desktop Host Pool.
- resourceGroup StringName 
- scheduledAgent List<Property Map>Updates 
- A scheduled_agent_updatesblock as defined below.
- startVm BooleanOn Connect 
- Returns trueif the Start VM on Connection Feature is enabled.
- Map<String>
- A mapping of tags to assign to the resource.
- type String
- The type of the Virtual Desktop Host Pool.
- validateEnvironment Boolean
- Returns trueif the Host Pool is in Validation mode.
Supporting Types
GetHostPoolScheduledAgentUpdate     
- Enabled bool
- Are scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) enabled on session hosts.
- Schedules
List<GetHost Pool Scheduled Agent Update Schedule> 
- A scheduleblock as defined below.
- Timezone string
- The time zone in which the agent update schedule will apply.
- UseSession boolHost Timezone 
- Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host.
- Enabled bool
- Are scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) enabled on session hosts.
- Schedules
[]GetHost Pool Scheduled Agent Update Schedule 
- A scheduleblock as defined below.
- Timezone string
- The time zone in which the agent update schedule will apply.
- UseSession boolHost Timezone 
- Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host.
- enabled Boolean
- Are scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) enabled on session hosts.
- schedules
List<GetHost Pool Scheduled Agent Update Schedule> 
- A scheduleblock as defined below.
- timezone String
- The time zone in which the agent update schedule will apply.
- useSession BooleanHost Timezone 
- Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host.
- enabled boolean
- Are scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) enabled on session hosts.
- schedules
GetHost Pool Scheduled Agent Update Schedule[] 
- A scheduleblock as defined below.
- timezone string
- The time zone in which the agent update schedule will apply.
- useSession booleanHost Timezone 
- Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host.
- enabled bool
- Are scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) enabled on session hosts.
- schedules
Sequence[GetHost Pool Scheduled Agent Update Schedule] 
- A scheduleblock as defined below.
- timezone str
- The time zone in which the agent update schedule will apply.
- use_session_ boolhost_ timezone 
- Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host.
- enabled Boolean
- Are scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) enabled on session hosts.
- schedules List<Property Map>
- A scheduleblock as defined below.
- timezone String
- The time zone in which the agent update schedule will apply.
- useSession BooleanHost Timezone 
- Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host.
GetHostPoolScheduledAgentUpdateSchedule      
- day_of_ strweek 
- The day of the week on which agent updates should be performed.
- hour_of_ intday 
- The hour of day the update window should start.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.