For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-RASAVDHostPool

SYNOPSIS

The cmdlet creates an object of type Azure Virtual Desktop Host Pool.

SYNTAX

New-RASAVDHostPool [[-SiteId] <uint>] -AzureId <string> -HostName <string> -WorkspaceId <uint>
 [-AutoScaleEnabled <bool>]
 [-AvailabilityOptions {NoInfrastructure | AvailabilitySet | AvailabilityZone}]
 [-AvailabilityPreferredZone {Zone1 | Zone2 | Zone3}]
 [-DefaultPowerState {PoweredOn | PoweredOff | Suspended}] [-DeployLocation {Standard | Hybrid}]
 [-DomainOrgUnit <string>] [-DrainRemainsBelowSec <uint>] [-Duration <uint>] [-Enabled <bool>]
 [-HostsToCreate <uint>] [-HybridHostPoolId <uint>] [-MaxHosts <uint>]
 [-MaxServersFromTemplate <uint>] [-MinServersFromTemplate <uint>] [-OverrideDomainOrgUnit <bool>]
 [-OverrideHighAvailability <bool>] [-OverrideSize <bool>] [-PreCreatedHosts <uint>]
 [-RemoveServersAfterDrainAndPowerOff <bool>] [-ServersToAddPerRequest <uint>] [-TemplateId <uint>]
 [-TemplateTagId <uint>] [-TemplateVersionId <uint>] [-ValidationEnvironment <bool>]
 [-VMSize <string>] [-WorkLoadDrain <uint>] [-WorkloadThreshold <uint>] [<CommonParameters>]
New-RASAVDHostPool [-Name] <string> [[-SiteId] <uint>]
 -LoadBalancerType {BreadthFirst | DepthFirst | Persistent} -Location <string>
 -PoolType {Pooled | Personal} -ProvisioningType {Template | Standalone}
 -PublishingType {RemoteApp | Desktop} -ResourceGroup <string> -WorkspaceId <uint>
 [-AutoScaleEnabled <bool>]
 [-AvailabilityOptions {NoInfrastructure | AvailabilitySet | AvailabilityZone}]
 [-AvailabilityPreferredZone {Zone1 | Zone2 | Zone3}]
 [-DefaultPowerState {PoweredOn | PoweredOff | Suspended}] [-DeployLocation {Standard | Hybrid}]
 [-Description <string>] [-DomainOrgUnit <string>] [-DrainRemainsBelowSec <uint>] [-Duration <uint>]
 [-Enabled <bool>] [-FriendlyName <string>] [-HostName <string>] [-HostsToCreate <uint>]
 [-HybridHostPoolId <uint>] [-LimitHosts <uint>] [-MaxHosts <uint>] [-MaxServersFromTemplate <uint>]
 [-MinServersFromTemplate <uint>] [-OverrideDomainOrgUnit <bool>] [-OverrideHighAvailability <bool>]
 [-OverrideSize <bool>] [-PowerOnHost <bool>] [-PreCreatedHosts <uint>]
 [-RemoveServersAfterDrainAndPowerOff <bool>] [-ServersToAddPerRequest <uint>] [-TemplateId <uint>]
 [-TemplateTagId <uint>] [-TemplateVersionId <uint>] [-ValidationEnvironment <bool>]
 [-VMSize <string>] [-WorkLoadDrain <uint>] [-WorkloadThreshold <uint>] [<CommonParameters>]

DESCRIPTION

Creates a new Azure Virtual Desktop Host Pool or imports an existing Azure Virtual Desktop Host Pool

EXAMPLES

Example 1

Creates a new Pooled Templated AVD Host Pool.

Example 2

Creates a new Personal Templated AVD Host Pool.

Example 3

Imports an existing AVD Host Pool.

PARAMETERS

-Name

The name of the AVD Host Pool.

-SiteId

Site ID in which to modify the specified AVD Host Pool.

If the parameter is omitted, the site ID of the Licensing Server will be used.

-WorkspaceId

The Workspace ID.

-Description

Description of the AVD Host Pool.

-Enabled

Enable or disable the AVD Host Pool upon creation.

If the parameter is omitted, the AVD Host Pool is initialised as Disabled.

-FriendlyName

Friendly name of the AVD Host Pool.

-ResourceGroup

Resource Group of the AVD Host Pool.

-Location

Location of the AVD Host Pool.

-AzureId

The Azure ID of the AVD Host Pool.

-PoolType

The Pool Type of the AVD Host Pool.

Possible values: Pooled, Personal

Type reference: PoolType

-LimitHosts

The Limit of session on host. Default: Pooled: 50, Personal: 1 (always).

Available to Pooled Host Pools

-PublishingType

The Publishing Type of the AVD Host Pool.

Possible values: RemoteApp, Desktop

Type reference: PublishingType

-LoadBalancerType

The Load Balancer Type of the AVD Host Pool.

Possible values: BreadthFirst, DepthFirst, Persistent

Type reference: LoadBalancerType

-PowerOnHost

Whether Power On Host is Enabled or not.

-ValidationEnvironment

Whether Validation Environment is Enabled or not.

-ProvisioningType

The Provisioning Type of the Host Pool

Possible values: Template, Standalone

Type reference: ProvisioningType

-TemplateId

The Template ID.

Available to Templated Host Pools

-TemplateVersionId

The Template Version ID.

Available to Templated Host Pools

-TemplateTagId

The Template Tag ID.

Available to Templated Host Pools

-MaxHosts

The maximum number of hosts that can be created from the template.

Available to Templated Personal Host Pools

-PreCreatedHosts

The maximum number of pre-created hosts. (Keep available buffer)

Available to Templated Personal Host Pools

-Duration

The duration (in seconds) before the unused hosts are deleted (0 = Never)

Available to Templated Personal Host Pools

-HostsToCreate

The number of hosts that will be created after template creation process has finished. These desktops are created only once.

-AutoScaleEnabled

Whether AutoScale is Enabled or not

Available to Templated Pooled Host Pools

-MinServersFromTemplate

The Minimum Number of Hosts added from the template.

Default: 1

-MaxServersFromTemplate

The Maximum Number of Hosts added from the template.

Default: 2

-WorkloadThreshold

The Workload Threshold.

Default: 75

-ServersToAddPerRequest

The amount of servers to add per request.

Default: 1

-WorkLoadDrain

The Drain Workload.

Default: 20

-DrainRemainsBelowSec

The Remaining Drain level.

Default: 1 (Immediate)

-RemoveServersAfterDrainAndPowerOff

Remove hosts from host pool after drain and power off.

-HostName

The host name format. All VMs created from the template will have this name with %ID:N:S% replaced.

-DefaultPowerState

The Default Power State

Possible values: PoweredOn, PoweredOff, Suspended

Type reference: DefaultPowerState

-OverrideSize

Whether Override Size is Enabled or not.

Available to Templated Host Pools

-VMSize

VMSize which will override the size specified in template properties.

Example: Standard_B2s

-OverrideDomainOrgUnit

Specifications: Whether Override Domain Org Unit is Enabled or not. (OverrideDomainOrgUnit)

-DomainOrgUnit

Domain Organization unit

-OverrideHighAvailability

Whether to override high availability options.

-AvailabilityOptions

Availability Options.

Possible values: NoInfrastructure, AvailabilitySet, AvailabilityZone

Type reference: HighAvailability

-AvailabilityPreferredZone

Availability Preferred Zone.

Possible values: Zone1, Zone2, Zone3

Type reference: PreferredZone

-DeployLocation

Specifies the deploy location type.

Possible values: Standard, Hybrid

Type reference: DeployLocation

-HybridHostPoolId

On-premises host pool ID to link when deploy location is Hybrid.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

AVDHostPool

Last updated