Citrix Broker SDK - AutoTagRules
Overview of administrator defined rules for automatic addition and removal of tags on machines, application groups, applications, desktop groups or desktops.
Auto tag rules enable administrators to automatically to set and/or remove tags for machines, application groups, applications, desktop groups or desktops. The rules are periodically evaluated and the tags of associated objects updated. Each auto tag rule is associated with exactly one Tag. A Tag is associated with at most one auto tag rule.
For example: tag = New-BrokerTag -Name MyExample New-BrokerAutoTagRule -Name StaticCatalogs -TagUid tag.Uid -ObjectType Catalog -RuleText "-AllocationType Static"