Citrix Virtual Apps and Desktops 2411 SDK

Add-BrokerApplicationGroup

Adds application groups to a desktop group.

Syntax

Add-BrokerApplicationGroup
   [-InputObject] <ApplicationGroup[]>
   [-DesktopGroup <DesktopGroup>]
   [-Priority <Int32>]
   [-LoggingId <Guid>]
   [<CitrixCommonParameters>]
   [<CommonParameters>]
<!--NeedCopy-->
Add-BrokerApplicationGroup
   [-Name] <String>
   [-DesktopGroup <DesktopGroup>]
   [-Priority <Int32>]
   [-LoggingId <Guid>]
   [<CitrixCommonParameters>]
   [<CommonParameters>]
<!--NeedCopy-->

Description

The Add-BrokerApplicationGroup cmdlet is used to associate one or more application groups with an existing desktop group.

Associating an application group with a desktop group makes the desktop groups’s machines available for launching applications in that application group. Until an application group is associated with a desktop group, its applications cannot be launched.

There are two parameter sets for this cmdlet, allowing you to specify the application groups either by Name or by an array of object references. Uids can also be substituted for the object references.

See about_Broker_Applications for more information.

Examples

EXAMPLE 1

Adds the application group with the Name “Office Apps” to the desktop group called “Private DesktopGroup”.

Add-BrokerApplicationGroup -Name "Office Apps" -DesktopGroup "Private DesktopGroup"
<!--NeedCopy-->

Parameters

-InputObject

Specifies the application group to associate with the desktop group. Its Uid can also be substituted for the object reference.

Type: ApplicationGroup[]
Position: 2
Default value: None
Required: True
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Name

Specifies the name of the application group to associate with the desktop group.

Type: String
Position: 2
Default value: None
Required: True
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True

-DesktopGroup

Specifies the desktop groups with which the application groups should be associated.

Note that application groups can only be associated with desktop groups whose delivery type is either AppsOnly or DesktopsAndApps.

Type: DesktopGroup
Position: Named
Default value: None
Required: False
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Priority

Specifies the priority of the mapping between the application group and desktop group. Lower numbers imply higher priority with zero being highest.

If one association has a higher priority than the other, machines from that group will be selected for launching sessions until all machines are at maximum load, in maintenance mode, unregistered, or unavailable for any other reason. Only when all machines from the higher-priority desktop group are unavailable will new connections be routed to the next lowest priority desktop group.

If multiple associations with equal priorities are encountered, session launches will be load balanced across all machines in both desktop groups. The least-loaded machine across the desktop groups will be chosen.

Type: Int32
Position: Named
Default value: 0
Required: False
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-LoggingId

Specifies the identifier of the high level operation that this cmdlet call forms a part of. Desktop Studio and Desktop Director typically create High Level Operations. PowerShell scripts can also wrap a series of cmdlet calls in a High Level Operation by way of the Start-LogHighLevelOperation and Stop-LogHighLevelOperation cmdlets.

Type: Guid
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

CitrixCommonParameters

This cmdlet supports the common Citrix parameters: -AdminAddress, -AdminClientIP, -BearerToken, -TraceParent, -TraceState and -VirtualSiteId. For more information, see about_CitrixCommonParameters.

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

Citrix.Broker.Admin.SDK.ApplicationGroup, or as appropriate by property name

You can pipe the application group to be added to Add-BrokerApplicationGroup. You can also pipe some of the other parameters by name.

Outputs

None

By default, this cmdlet returns no output.

Add-BrokerApplicationGroup