New-RASAVDHostPool

NAME

New-RASAVDHostPool

SYNOPSIS

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

SYNTAX

New-RASAVDHostPool [[-SiteIdarrow-up-right] <uint>] -AzureIdarrow-up-right <string> -WorkspaceIdarrow-up-right <uint> [-AutoScaleEnabledarrow-up-right <bool>] [-DefaultPowerStatearrow-up-right {PoweredOn | PoweredOff | Suspended}] [-DrainRemainsBelowSecarrow-up-right <uint>] [-Enabledarrow-up-right <bool>] [-HostNamearrow-up-right <string>] [-MaxServersFromTemplatearrow-up-right <uint>] [-MinServersFromTemplatearrow-up-right <uint>] [-RemoveServersAfterDrainAndPowerOffarrow-up-right <bool>] [-ServersToAddPerRequestarrow-up-right <uint>] [-TemplateIdarrow-up-right <uint>] [-TemplateVersionIdarrow-up-right <uint>] [-ValidationEnvironmentarrow-up-right <bool>] [-WorkLoadDrainarrow-up-right <uint>] [-WorkloadThresholdarrow-up-right <uint>] [<CommonParametersarrow-up-right>] New-RASAVDHostPool [-Namearrow-up-right] <string> [[-SiteIdarrow-up-right] <uint>] -LoadBalancerTypearrow-up-right {BreadthFirst | DepthFirst | Persistent} -Locationarrow-up-right <string> -PoolTypearrow-up-right {Pooled | Personal} -ProvisioningTypearrow-up-right {Template | Standalone} -PublishingTypearrow-up-right {RemoteApp | Desktop} -ResourceGrouparrow-up-right <string> -WorkspaceIdarrow-up-right <uint> [-AutoScaleEnabledarrow-up-right <bool>] [-DefaultPowerStatearrow-up-right {PoweredOn | PoweredOff | Suspended}] [-Descriptionarrow-up-right <string>] [-DrainRemainsBelowSecarrow-up-right <uint>] [-Enabledarrow-up-right <bool>] [-FriendlyNamearrow-up-right <string>] [-HostNamearrow-up-right <string>] [-LimitHostsarrow-up-right <uint>] [-MaxServersFromTemplatearrow-up-right <uint>] [-MinServersFromTemplatearrow-up-right <uint>] [-PowerOnHostarrow-up-right <bool>] [-RemoveServersAfterDrainAndPowerOffarrow-up-right <bool>] [-ServersToAddPerRequestarrow-up-right <uint>] [-TemplateIdarrow-up-right <uint>] [-TemplateVersionIdarrow-up-right <uint>] [-ValidationEnvironmentarrow-up-right <bool>] [-WorkLoadDrainarrow-up-right <uint>] [-WorkloadThresholdarrow-up-right <uint>] [<CommonParametersarrow-up-right>]

DESCRIPTION

Creates a new Azure Virtual Desktop Host Pool or imports an existing Azure Virtual Desktop Host Pool This is an Experimental feature which is subject to slight changes.

PARAMETERS

-Name <string> The name of the AVD Host Pool.

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SiteId <uint> 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 <uint> The Workspace ID.

-Description <string> Description of the AVD Host Pool.

-Enabled <bool> Enable or disable the AVD Host Pool upon creation. If the parameter is omitted, the AVD Host Pool is initialised as Disabled.

-FriendlyName <string> Friendly name of the AVD Host Pool.

-ResourceGroup <string> Resource Group of the AVD Host Pool.

-Location <string> Location of the AVD Host Pool.

-AzureId <string> The Azure ID of the AVD Host Pool.

-PoolType <PoolTypearrow-up-right> The Type of AVD Host Pool. Possible values: Pooled, Personal

-LimitHosts <uint> The Limit of session on host. Default: Pooled: 50, Personal: 1 (always).

-PublishingType <PublishingTypearrow-up-right> The Type of AVD Host Pool. Possible values: RemoteApp, Desktop

-LoadBalancerType <LoadBalancerTypearrow-up-right> The Type of AVD Host Pool. Possible values: BreadthFirst, DepthFirst, Persistent

-PowerOnHost <bool> The Type of AVD Host Pool.

-ValidationEnvironment <bool> Whether Validation Environment is Enabled or not.

-ProvisioningType <ProvisioningTypearrow-up-right> The Provisioning Type of the Host Pool Possible values: Template, Standalone

-TemplateId <uint> The Template ID.

-TemplateVersionId <uint> The RAS Template Version ID.

-AutoScaleEnabled <bool> Whether AutoScale is Enabled or not

-MinServersFromTemplate <uint> The Minimum Number of Hosts added from the template. Default: 1

-MaxServersFromTemplate <uint> The Maximum Number of Hosts added from the template. Default: 2

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

-DefaultPowerState <DefaultPowerStatearrow-up-right> The Default Power State Possible values: PoweredOn, PoweredOff, Suspended

-WorkloadThreshold <uint> The Workload Threshold. Default: 75

-ServersToAddPerRequest <uint> The amount of servers to add per request. Default: 1

-WorkLoadDrain <uint> The Drain Workload. Default: 20

-DrainRemainsBelowSec <uint> The Remaining Drain level. Default: 0 (Immediate)

-RemoveServersAfterDrainAndPowerOff <bool> Remove hosts from host pool after drain and power off.

<CommonParameters>

INPUTS

-none-

OUTPUTS

AVDHostPoolarrow-up-right

EXAMPLES

---------- EXAMPLE 1 ---------- New-RASAVDHostPool -Name "NGTstHostPool" -WorkspaceId 5 -ResourceGroup "NGResource" -Location "westeurope" -PoolType Pooled -PublishingType "Desktop" -ProvisioningType Template -LoadBalancer "DepthFirst" Creates a new Pooled Templated Azure Virtual Desktop Host Pool. ---------- EXAMPLE 2 ---------- New-RASAVDHostPool -Name "NGTstHostPool" -WorkspaceId 5 -ResourceGroup "NGResource" -Location "westeurope" -PoolType Personal -PublishingType "Desktop" -ProvisioningType Template -LoadBalancer "Persistent" Creates a new Personal Templated Azure Virtual Desktop Host Pool. ---------- EXAMPLE 3 ---------- New-RASAVDHostPool -WorkspaceId 1 -ProviderId 1 -AzureId "subscriptions/b0375739-05f3-859f-ac89-20ef4dcd92cb/resourceGroups/My_Resource_Group/providers/Microsoft.DesktopVirtualization/hostpools/my-hostpool" Imports an existing Azure Virtual Desktop Host Pool.

Last updated