We recommend using Azure Native.
azure.desktopvirtualization.HostPool
Explore with Pulumi AI
Manages a Virtual Desktop Host Pool.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleHostPool = new azure.desktopvirtualization.HostPool("example", {
location: example.location,
resourceGroupName: example.name,
name: "pooleddepthfirst",
friendlyName: "pooleddepthfirst",
validateEnvironment: true,
startVmOnConnect: true,
customRdpProperties: "audiocapturemode:i:1;audiomode:i:0;",
description: "Acceptance Test: A pooled host pool - pooleddepthfirst",
type: "Pooled",
maximumSessionsAllowed: 50,
loadBalancerType: "DepthFirst",
scheduledAgentUpdates: {
enabled: true,
schedules: [{
dayOfWeek: "Saturday",
hourOfDay: 2,
}],
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_host_pool = azure.desktopvirtualization.HostPool("example",
location=example.location,
resource_group_name=example.name,
name="pooleddepthfirst",
friendly_name="pooleddepthfirst",
validate_environment=True,
start_vm_on_connect=True,
custom_rdp_properties="audiocapturemode:i:1;audiomode:i:0;",
description="Acceptance Test: A pooled host pool - pooleddepthfirst",
type="Pooled",
maximum_sessions_allowed=50,
load_balancer_type="DepthFirst",
scheduled_agent_updates={
"enabled": True,
"schedules": [{
"day_of_week": "Saturday",
"hour_of_day": 2,
}],
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"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 {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = desktopvirtualization.NewHostPool(ctx, "example", &desktopvirtualization.HostPoolArgs{
Location: example.Location,
ResourceGroupName: example.Name,
Name: pulumi.String("pooleddepthfirst"),
FriendlyName: pulumi.String("pooleddepthfirst"),
ValidateEnvironment: pulumi.Bool(true),
StartVmOnConnect: pulumi.Bool(true),
CustomRdpProperties: pulumi.String("audiocapturemode:i:1;audiomode:i:0;"),
Description: pulumi.String("Acceptance Test: A pooled host pool - pooleddepthfirst"),
Type: pulumi.String("Pooled"),
MaximumSessionsAllowed: pulumi.Int(50),
LoadBalancerType: pulumi.String("DepthFirst"),
ScheduledAgentUpdates: &desktopvirtualization.HostPoolScheduledAgentUpdatesArgs{
Enabled: pulumi.Bool(true),
Schedules: desktopvirtualization.HostPoolScheduledAgentUpdatesScheduleArray{
&desktopvirtualization.HostPoolScheduledAgentUpdatesScheduleArgs{
DayOfWeek: pulumi.String("Saturday"),
HourOfDay: pulumi.Int(2),
},
},
},
})
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 = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleHostPool = new Azure.DesktopVirtualization.HostPool("example", new()
{
Location = example.Location,
ResourceGroupName = example.Name,
Name = "pooleddepthfirst",
FriendlyName = "pooleddepthfirst",
ValidateEnvironment = true,
StartVmOnConnect = true,
CustomRdpProperties = "audiocapturemode:i:1;audiomode:i:0;",
Description = "Acceptance Test: A pooled host pool - pooleddepthfirst",
Type = "Pooled",
MaximumSessionsAllowed = 50,
LoadBalancerType = "DepthFirst",
ScheduledAgentUpdates = new Azure.DesktopVirtualization.Inputs.HostPoolScheduledAgentUpdatesArgs
{
Enabled = true,
Schedules = new[]
{
new Azure.DesktopVirtualization.Inputs.HostPoolScheduledAgentUpdatesScheduleArgs
{
DayOfWeek = "Saturday",
HourOfDay = 2,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.desktopvirtualization.HostPool;
import com.pulumi.azure.desktopvirtualization.HostPoolArgs;
import com.pulumi.azure.desktopvirtualization.inputs.HostPoolScheduledAgentUpdatesArgs;
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) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleHostPool = new HostPool("exampleHostPool", HostPoolArgs.builder()
.location(example.location())
.resourceGroupName(example.name())
.name("pooleddepthfirst")
.friendlyName("pooleddepthfirst")
.validateEnvironment(true)
.startVmOnConnect(true)
.customRdpProperties("audiocapturemode:i:1;audiomode:i:0;")
.description("Acceptance Test: A pooled host pool - pooleddepthfirst")
.type("Pooled")
.maximumSessionsAllowed(50)
.loadBalancerType("DepthFirst")
.scheduledAgentUpdates(HostPoolScheduledAgentUpdatesArgs.builder()
.enabled(true)
.schedules(HostPoolScheduledAgentUpdatesScheduleArgs.builder()
.dayOfWeek("Saturday")
.hourOfDay(2)
.build())
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleHostPool:
type: azure:desktopvirtualization:HostPool
name: example
properties:
location: ${example.location}
resourceGroupName: ${example.name}
name: pooleddepthfirst
friendlyName: pooleddepthfirst
validateEnvironment: true
startVmOnConnect: true
customRdpProperties: audiocapturemode:i:1;audiomode:i:0;
description: 'Acceptance Test: A pooled host pool - pooleddepthfirst'
type: Pooled
maximumSessionsAllowed: 50
loadBalancerType: DepthFirst
scheduledAgentUpdates:
enabled: true
schedules:
- dayOfWeek: Saturday
hourOfDay: 2
Create HostPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HostPool(name: string, args: HostPoolArgs, opts?: CustomResourceOptions);
@overload
def HostPool(resource_name: str,
args: HostPoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HostPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
load_balancer_type: Optional[str] = None,
type: Optional[str] = None,
resource_group_name: Optional[str] = None,
preferred_app_group_type: Optional[str] = None,
friendly_name: Optional[str] = None,
maximum_sessions_allowed: Optional[int] = None,
name: Optional[str] = None,
personal_desktop_assignment_type: Optional[str] = None,
custom_rdp_properties: Optional[str] = None,
public_network_access: Optional[str] = None,
location: Optional[str] = None,
scheduled_agent_updates: Optional[HostPoolScheduledAgentUpdatesArgs] = None,
start_vm_on_connect: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
validate_environment: Optional[bool] = None,
vm_template: Optional[str] = None)
func NewHostPool(ctx *Context, name string, args HostPoolArgs, opts ...ResourceOption) (*HostPool, error)
public HostPool(string name, HostPoolArgs args, CustomResourceOptions? opts = null)
public HostPool(String name, HostPoolArgs args)
public HostPool(String name, HostPoolArgs args, CustomResourceOptions options)
type: azure:desktopvirtualization:HostPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HostPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HostPoolArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HostPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HostPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HostPoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hostPoolResource = new Azure.DesktopVirtualization.HostPool("hostPoolResource", new()
{
LoadBalancerType = "string",
Type = "string",
ResourceGroupName = "string",
PreferredAppGroupType = "string",
FriendlyName = "string",
MaximumSessionsAllowed = 0,
Name = "string",
PersonalDesktopAssignmentType = "string",
CustomRdpProperties = "string",
PublicNetworkAccess = "string",
Location = "string",
ScheduledAgentUpdates = new Azure.DesktopVirtualization.Inputs.HostPoolScheduledAgentUpdatesArgs
{
Enabled = false,
Schedules = new[]
{
new Azure.DesktopVirtualization.Inputs.HostPoolScheduledAgentUpdatesScheduleArgs
{
DayOfWeek = "string",
HourOfDay = 0,
},
},
Timezone = "string",
UseSessionHostTimezone = false,
},
StartVmOnConnect = false,
Tags =
{
{ "string", "string" },
},
Description = "string",
ValidateEnvironment = false,
VmTemplate = "string",
});
example, err := desktopvirtualization.NewHostPool(ctx, "hostPoolResource", &desktopvirtualization.HostPoolArgs{
LoadBalancerType: pulumi.String("string"),
Type: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
PreferredAppGroupType: pulumi.String("string"),
FriendlyName: pulumi.String("string"),
MaximumSessionsAllowed: pulumi.Int(0),
Name: pulumi.String("string"),
PersonalDesktopAssignmentType: pulumi.String("string"),
CustomRdpProperties: pulumi.String("string"),
PublicNetworkAccess: pulumi.String("string"),
Location: pulumi.String("string"),
ScheduledAgentUpdates: &desktopvirtualization.HostPoolScheduledAgentUpdatesArgs{
Enabled: pulumi.Bool(false),
Schedules: desktopvirtualization.HostPoolScheduledAgentUpdatesScheduleArray{
&desktopvirtualization.HostPoolScheduledAgentUpdatesScheduleArgs{
DayOfWeek: pulumi.String("string"),
HourOfDay: pulumi.Int(0),
},
},
Timezone: pulumi.String("string"),
UseSessionHostTimezone: pulumi.Bool(false),
},
StartVmOnConnect: pulumi.Bool(false),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
ValidateEnvironment: pulumi.Bool(false),
VmTemplate: pulumi.String("string"),
})
var hostPoolResource = new HostPool("hostPoolResource", HostPoolArgs.builder()
.loadBalancerType("string")
.type("string")
.resourceGroupName("string")
.preferredAppGroupType("string")
.friendlyName("string")
.maximumSessionsAllowed(0)
.name("string")
.personalDesktopAssignmentType("string")
.customRdpProperties("string")
.publicNetworkAccess("string")
.location("string")
.scheduledAgentUpdates(HostPoolScheduledAgentUpdatesArgs.builder()
.enabled(false)
.schedules(HostPoolScheduledAgentUpdatesScheduleArgs.builder()
.dayOfWeek("string")
.hourOfDay(0)
.build())
.timezone("string")
.useSessionHostTimezone(false)
.build())
.startVmOnConnect(false)
.tags(Map.of("string", "string"))
.description("string")
.validateEnvironment(false)
.vmTemplate("string")
.build());
host_pool_resource = azure.desktopvirtualization.HostPool("hostPoolResource",
load_balancer_type="string",
type="string",
resource_group_name="string",
preferred_app_group_type="string",
friendly_name="string",
maximum_sessions_allowed=0,
name="string",
personal_desktop_assignment_type="string",
custom_rdp_properties="string",
public_network_access="string",
location="string",
scheduled_agent_updates={
"enabled": False,
"schedules": [{
"dayOfWeek": "string",
"hourOfDay": 0,
}],
"timezone": "string",
"useSessionHostTimezone": False,
},
start_vm_on_connect=False,
tags={
"string": "string",
},
description="string",
validate_environment=False,
vm_template="string")
const hostPoolResource = new azure.desktopvirtualization.HostPool("hostPoolResource", {
loadBalancerType: "string",
type: "string",
resourceGroupName: "string",
preferredAppGroupType: "string",
friendlyName: "string",
maximumSessionsAllowed: 0,
name: "string",
personalDesktopAssignmentType: "string",
customRdpProperties: "string",
publicNetworkAccess: "string",
location: "string",
scheduledAgentUpdates: {
enabled: false,
schedules: [{
dayOfWeek: "string",
hourOfDay: 0,
}],
timezone: "string",
useSessionHostTimezone: false,
},
startVmOnConnect: false,
tags: {
string: "string",
},
description: "string",
validateEnvironment: false,
vmTemplate: "string",
});
type: azure:desktopvirtualization:HostPool
properties:
customRdpProperties: string
description: string
friendlyName: string
loadBalancerType: string
location: string
maximumSessionsAllowed: 0
name: string
personalDesktopAssignmentType: string
preferredAppGroupType: string
publicNetworkAccess: string
resourceGroupName: string
scheduledAgentUpdates:
enabled: false
schedules:
- dayOfWeek: string
hourOfDay: 0
timezone: string
useSessionHostTimezone: false
startVmOnConnect: false
tags:
string: string
type: string
validateEnvironment: false
vmTemplate: string
HostPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The HostPool resource accepts the following input properties:
- Load
Balancer stringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- Resource
Group stringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- Type string
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - Custom
Rdp stringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- Description string
- A description for the Virtual Desktop Host Pool.
- Friendly
Name string - A friendly name for the Virtual Desktop Host Pool.
- Location string
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- Maximum
Sessions intAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - Name string
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- Personal
Desktop stringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- Preferred
App stringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - Public
Network stringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - Scheduled
Agent HostUpdates Pool Scheduled Agent Updates - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - Start
Vm boolOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Validate
Environment bool - Allows you to test service changes before they are deployed to production. Defaults to
false
. - Vm
Template string - A VM template for session hosts configuration within hostpool. This is a JSON string.
- Load
Balancer stringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- Resource
Group stringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- Type string
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - Custom
Rdp stringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- Description string
- A description for the Virtual Desktop Host Pool.
- Friendly
Name string - A friendly name for the Virtual Desktop Host Pool.
- Location string
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- Maximum
Sessions intAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - Name string
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- Personal
Desktop stringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- Preferred
App stringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - Public
Network stringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - Scheduled
Agent HostUpdates Pool Scheduled Agent Updates Args - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - Start
Vm boolOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - map[string]string
- A mapping of tags to assign to the resource.
- Validate
Environment bool - Allows you to test service changes before they are deployed to production. Defaults to
false
. - Vm
Template string - A VM template for session hosts configuration within hostpool. This is a JSON string.
- load
Balancer StringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- resource
Group StringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- type String
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - custom
Rdp StringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- description String
- A description for the Virtual Desktop Host Pool.
- friendly
Name String - A friendly name for the Virtual Desktop Host Pool.
- location String
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- maximum
Sessions IntegerAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - name String
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- personal
Desktop StringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- preferred
App StringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - public
Network StringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - scheduled
Agent HostUpdates Pool Scheduled Agent Updates - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - start
Vm BooleanOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - Map<String,String>
- A mapping of tags to assign to the resource.
- validate
Environment Boolean - Allows you to test service changes before they are deployed to production. Defaults to
false
. - vm
Template String - A VM template for session hosts configuration within hostpool. This is a JSON string.
- load
Balancer stringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- resource
Group stringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- type string
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - custom
Rdp stringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- description string
- A description for the Virtual Desktop Host Pool.
- friendly
Name string - A friendly name for the Virtual Desktop Host Pool.
- location string
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- maximum
Sessions numberAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - name string
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- personal
Desktop stringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- preferred
App stringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - public
Network stringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - scheduled
Agent HostUpdates Pool Scheduled Agent Updates - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - start
Vm booleanOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- validate
Environment boolean - Allows you to test service changes before they are deployed to production. Defaults to
false
. - vm
Template string - A VM template for session hosts configuration within hostpool. This is a JSON string.
- load_
balancer_ strtype BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- resource_
group_ strname - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- type str
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - custom_
rdp_ strproperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- description str
- A description for the Virtual Desktop Host Pool.
- friendly_
name str - A friendly name for the Virtual Desktop Host Pool.
- location str
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- maximum_
sessions_ intallowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - name str
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- personal_
desktop_ strassignment_ type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- preferred_
app_ strgroup_ type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - public_
network_ straccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - scheduled_
agent_ Hostupdates Pool Scheduled Agent Updates Args - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - start_
vm_ boolon_ connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- validate_
environment bool - Allows you to test service changes before they are deployed to production. Defaults to
false
. - vm_
template str - A VM template for session hosts configuration within hostpool. This is a JSON string.
- load
Balancer StringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- resource
Group StringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- type String
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - custom
Rdp StringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- description String
- A description for the Virtual Desktop Host Pool.
- friendly
Name String - A friendly name for the Virtual Desktop Host Pool.
- location String
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- maximum
Sessions NumberAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - name String
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- personal
Desktop StringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- preferred
App StringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - public
Network StringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - scheduled
Agent Property MapUpdates - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - start
Vm BooleanOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - Map<String>
- A mapping of tags to assign to the resource.
- validate
Environment Boolean - Allows you to test service changes before they are deployed to production. Defaults to
false
. - vm
Template String - A VM template for session hosts configuration within hostpool. This is a JSON string.
Outputs
All input properties are implicitly available as output properties. Additionally, the HostPool resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing HostPool Resource
Get an existing HostPool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HostPoolState, opts?: CustomResourceOptions): HostPool
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_rdp_properties: Optional[str] = None,
description: Optional[str] = None,
friendly_name: Optional[str] = None,
load_balancer_type: Optional[str] = None,
location: Optional[str] = None,
maximum_sessions_allowed: Optional[int] = None,
name: Optional[str] = None,
personal_desktop_assignment_type: Optional[str] = None,
preferred_app_group_type: Optional[str] = None,
public_network_access: Optional[str] = None,
resource_group_name: Optional[str] = None,
scheduled_agent_updates: Optional[HostPoolScheduledAgentUpdatesArgs] = None,
start_vm_on_connect: Optional[bool] = None,
tags: Optional[Mapping[str, str]] = None,
type: Optional[str] = None,
validate_environment: Optional[bool] = None,
vm_template: Optional[str] = None) -> HostPool
func GetHostPool(ctx *Context, name string, id IDInput, state *HostPoolState, opts ...ResourceOption) (*HostPool, error)
public static HostPool Get(string name, Input<string> id, HostPoolState? state, CustomResourceOptions? opts = null)
public static HostPool get(String name, Output<String> id, HostPoolState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Custom
Rdp stringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- Description string
- A description for the Virtual Desktop Host Pool.
- Friendly
Name string - A friendly name for the Virtual Desktop Host Pool.
- Load
Balancer stringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- Location string
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- Maximum
Sessions intAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - Name string
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- Personal
Desktop stringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- Preferred
App stringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - Public
Network stringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - Resource
Group stringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- Scheduled
Agent HostUpdates Pool Scheduled Agent Updates - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - Start
Vm boolOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Type string
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - Validate
Environment bool - Allows you to test service changes before they are deployed to production. Defaults to
false
. - Vm
Template string - A VM template for session hosts configuration within hostpool. This is a JSON string.
- Custom
Rdp stringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- Description string
- A description for the Virtual Desktop Host Pool.
- Friendly
Name string - A friendly name for the Virtual Desktop Host Pool.
- Load
Balancer stringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- Location string
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- Maximum
Sessions intAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - Name string
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- Personal
Desktop stringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- Preferred
App stringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - Public
Network stringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - Resource
Group stringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- Scheduled
Agent HostUpdates Pool Scheduled Agent Updates Args - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - Start
Vm boolOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - map[string]string
- A mapping of tags to assign to the resource.
- Type string
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - Validate
Environment bool - Allows you to test service changes before they are deployed to production. Defaults to
false
. - Vm
Template string - A VM template for session hosts configuration within hostpool. This is a JSON string.
- custom
Rdp StringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- description String
- A description for the Virtual Desktop Host Pool.
- friendly
Name String - A friendly name for the Virtual Desktop Host Pool.
- load
Balancer StringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- location String
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- maximum
Sessions IntegerAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - name String
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- personal
Desktop StringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- preferred
App StringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - public
Network StringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - resource
Group StringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- scheduled
Agent HostUpdates Pool Scheduled Agent Updates - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - start
Vm BooleanOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - Map<String,String>
- A mapping of tags to assign to the resource.
- type String
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - validate
Environment Boolean - Allows you to test service changes before they are deployed to production. Defaults to
false
. - vm
Template String - A VM template for session hosts configuration within hostpool. This is a JSON string.
- custom
Rdp stringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- description string
- A description for the Virtual Desktop Host Pool.
- friendly
Name string - A friendly name for the Virtual Desktop Host Pool.
- load
Balancer stringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- location string
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- maximum
Sessions numberAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - name string
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- personal
Desktop stringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- preferred
App stringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - public
Network stringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - resource
Group stringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- scheduled
Agent HostUpdates Pool Scheduled Agent Updates - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - start
Vm booleanOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- type string
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - validate
Environment boolean - Allows you to test service changes before they are deployed to production. Defaults to
false
. - vm
Template string - A VM template for session hosts configuration within hostpool. This is a JSON string.
- custom_
rdp_ strproperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- description str
- A description for the Virtual Desktop Host Pool.
- friendly_
name str - A friendly name for the Virtual Desktop Host Pool.
- load_
balancer_ strtype BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- location str
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- maximum_
sessions_ intallowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - name str
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- personal_
desktop_ strassignment_ type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- preferred_
app_ strgroup_ type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - public_
network_ straccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - resource_
group_ strname - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- scheduled_
agent_ Hostupdates Pool Scheduled Agent Updates Args - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - start_
vm_ boolon_ connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- type str
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - validate_
environment bool - Allows you to test service changes before they are deployed to production. Defaults to
false
. - vm_
template str - A VM template for session hosts configuration within hostpool. This is a JSON string.
- custom
Rdp StringProperties - A valid custom RDP properties string for the Virtual Desktop Host Pool, available properties can be found in this article.
- description String
- A description for the Virtual Desktop Host Pool.
- friendly
Name String - A friendly name for the Virtual Desktop Host Pool.
- load
Balancer StringType BreadthFirst
load balancing distributes new user sessions across all available session hosts in the host pool. Possible values areBreadthFirst
,DepthFirst
andPersistent
.DepthFirst
load balancing distributes new user sessions to an available session host with the highest number of connections but has not reached its maximum session limit threshold.Persistent
should be used if the host pool type isPersonal
- location String
- The location/region where the Virtual Desktop Host Pool is located. Changing this forces a new resource to be created.
- maximum
Sessions NumberAllowed - A valid integer value from 0 to 999999 for the maximum number of users that have concurrent sessions on a session host.
Should only be set if the
type
of your Virtual Desktop Host Pool isPooled
. - name String
- The name of the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- personal
Desktop StringAssignment Type Automatic
assignment – The service will select an available host and assign it to an user. Possible values areAutomatic
andDirect
.Direct
Assignment – Admin selects a specific host to assign to an user. Changing this forces a new resource to be created.NOTE:
personal_desktop_assignment_type
is required if thetype
of your Virtual Desktop Host Pool isPersonal
- preferred
App StringGroup Type - Option to specify the preferred Application Group type for the Virtual Desktop Host Pool. Valid options are
None
,Desktop
orRailApplications
. Default isDesktop
. - public
Network StringAccess - Whether public network access is allowed for the Virtual Desktop Host Pool. Possible values are
Enabled
,Disabled
,EnabledForClientsOnly
andEnabledForSessionHostsOnly
. Defaults toEnabled
. - resource
Group StringName - The name of the resource group in which to create the Virtual Desktop Host Pool. Changing this forces a new resource to be created.
- scheduled
Agent Property MapUpdates - A
scheduled_agent_updates
block as defined below. This enables control of when Agent Updates will be applied to Session Hosts. - start
Vm BooleanOn Connect - Enables or disables the Start VM on Connection Feature. Defaults to
false
. - Map<String>
- A mapping of tags to assign to the resource.
- type String
- The type of the Virtual Desktop Host Pool. Valid options are
Personal
orPooled
. Changing the type forces a new resource to be created. - validate
Environment Boolean - Allows you to test service changes before they are deployed to production. Defaults to
false
. - vm
Template String - A VM template for session hosts configuration within hostpool. This is a JSON string.
Supporting Types
HostPoolScheduledAgentUpdates, HostPoolScheduledAgentUpdatesArgs
- Enabled bool
Enables or disables scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) on session hosts. If this is enabled then up to two
schedule
blocks must be defined. Default isfalse
.NOTE: if
enabled
is set totrue
then at least one and a maximum of twoschedule
blocks must be provided.- Schedules
List<Host
Pool Scheduled Agent Updates Schedule> - A
schedule
block as defined below. A maximum of two blocks can be added. - Timezone string
- Specifies the time zone in which the agent update schedule will apply, the possible values are defined here. If
use_session_host_timezone
is enabled then it will override this setting. Default isUTC
- Use
Session boolHost Timezone - Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host. If configured then this setting overrides
timezone
. Default isfalse
.
- Enabled bool
Enables or disables scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) on session hosts. If this is enabled then up to two
schedule
blocks must be defined. Default isfalse
.NOTE: if
enabled
is set totrue
then at least one and a maximum of twoschedule
blocks must be provided.- Schedules
[]Host
Pool Scheduled Agent Updates Schedule - A
schedule
block as defined below. A maximum of two blocks can be added. - Timezone string
- Specifies the time zone in which the agent update schedule will apply, the possible values are defined here. If
use_session_host_timezone
is enabled then it will override this setting. Default isUTC
- Use
Session boolHost Timezone - Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host. If configured then this setting overrides
timezone
. Default isfalse
.
- enabled Boolean
Enables or disables scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) on session hosts. If this is enabled then up to two
schedule
blocks must be defined. Default isfalse
.NOTE: if
enabled
is set totrue
then at least one and a maximum of twoschedule
blocks must be provided.- schedules
List<Host
Pool Scheduled Agent Updates Schedule> - A
schedule
block as defined below. A maximum of two blocks can be added. - timezone String
- Specifies the time zone in which the agent update schedule will apply, the possible values are defined here. If
use_session_host_timezone
is enabled then it will override this setting. Default isUTC
- use
Session BooleanHost Timezone - Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host. If configured then this setting overrides
timezone
. Default isfalse
.
- enabled boolean
Enables or disables scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) on session hosts. If this is enabled then up to two
schedule
blocks must be defined. Default isfalse
.NOTE: if
enabled
is set totrue
then at least one and a maximum of twoschedule
blocks must be provided.- schedules
Host
Pool Scheduled Agent Updates Schedule[] - A
schedule
block as defined below. A maximum of two blocks can be added. - timezone string
- Specifies the time zone in which the agent update schedule will apply, the possible values are defined here. If
use_session_host_timezone
is enabled then it will override this setting. Default isUTC
- use
Session booleanHost Timezone - Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host. If configured then this setting overrides
timezone
. Default isfalse
.
- enabled bool
Enables or disables scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) on session hosts. If this is enabled then up to two
schedule
blocks must be defined. Default isfalse
.NOTE: if
enabled
is set totrue
then at least one and a maximum of twoschedule
blocks must be provided.- schedules
Sequence[Host
Pool Scheduled Agent Updates Schedule] - A
schedule
block as defined below. A maximum of two blocks can be added. - timezone str
- Specifies the time zone in which the agent update schedule will apply, the possible values are defined here. If
use_session_host_timezone
is enabled then it will override this setting. Default isUTC
- use_
session_ boolhost_ timezone - Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host. If configured then this setting overrides
timezone
. Default isfalse
.
- enabled Boolean
Enables or disables scheduled updates of the AVD agent components (RDAgent, Geneva Monitoring agent, and side-by-side stack) on session hosts. If this is enabled then up to two
schedule
blocks must be defined. Default isfalse
.NOTE: if
enabled
is set totrue
then at least one and a maximum of twoschedule
blocks must be provided.- schedules List<Property Map>
- A
schedule
block as defined below. A maximum of two blocks can be added. - timezone String
- Specifies the time zone in which the agent update schedule will apply, the possible values are defined here. If
use_session_host_timezone
is enabled then it will override this setting. Default isUTC
- use
Session BooleanHost Timezone - Specifies whether scheduled agent updates should be applied based on the timezone of the affected session host. If configured then this setting overrides
timezone
. Default isfalse
.
HostPoolScheduledAgentUpdatesSchedule, HostPoolScheduledAgentUpdatesScheduleArgs
- Day
Of stringWeek - The day of the week on which agent updates should be performed. Possible values are
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
, andSunday
- Hour
Of intDay - The hour of day the update window should start. The update is a 2 hour period following the hour provided. The value should be provided as a number between 0 and 23, with 0 being midnight and 23 being 11pm. A leading zero should not be used.
- Day
Of stringWeek - The day of the week on which agent updates should be performed. Possible values are
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
, andSunday
- Hour
Of intDay - The hour of day the update window should start. The update is a 2 hour period following the hour provided. The value should be provided as a number between 0 and 23, with 0 being midnight and 23 being 11pm. A leading zero should not be used.
- day
Of StringWeek - The day of the week on which agent updates should be performed. Possible values are
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
, andSunday
- hour
Of IntegerDay - The hour of day the update window should start. The update is a 2 hour period following the hour provided. The value should be provided as a number between 0 and 23, with 0 being midnight and 23 being 11pm. A leading zero should not be used.
- day
Of stringWeek - The day of the week on which agent updates should be performed. Possible values are
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
, andSunday
- hour
Of numberDay - The hour of day the update window should start. The update is a 2 hour period following the hour provided. The value should be provided as a number between 0 and 23, with 0 being midnight and 23 being 11pm. A leading zero should not be used.
- day_
of_ strweek - The day of the week on which agent updates should be performed. Possible values are
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
, andSunday
- hour_
of_ intday - The hour of day the update window should start. The update is a 2 hour period following the hour provided. The value should be provided as a number between 0 and 23, with 0 being midnight and 23 being 11pm. A leading zero should not be used.
- day
Of StringWeek - The day of the week on which agent updates should be performed. Possible values are
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
, andSunday
- hour
Of NumberDay - The hour of day the update window should start. The update is a 2 hour period following the hour provided. The value should be provided as a number between 0 and 23, with 0 being midnight and 23 being 11pm. A leading zero should not be used.
Import
Virtual Desktop Host Pools can be imported using the resource id
, e.g.
text
$ pulumi import azure:desktopvirtualization/hostPool:HostPool example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup1/providers/Microsoft.DesktopVirtualization/hostPools/myhostpool
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.