Skip to content

Add-CitrixTag

Citrix: Adds a tag to a resource

param(
	[Parameter(Mandatory = $true)]
	[string]$TagName,

	[Parameter(Mandatory = $true)]
	[string]$ResourceName
)

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	Add-BrokerTag -Name $TagName -MachineName $ResourceName -ErrorAction Stop
	Write-Output "Successfully added tag '$TagName' to '$ResourceName'."
} catch {
	Write-Error $_
	exit 1
}

The name of the tag.

The name of the resource to tag.

An interactive directory of PowerShell scripts.