Commands › Microsoft Teams

New-CsTagsTemplate

Microsoft Teams MicrosoftTeams New-*

Creates new tag template.

Quick start script

# New-CsTagsTemplate — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsTagsTemplate
$before | Format-List

# 3. Make the change
New-CsTagsTemplate -Name <String> -Description <String> -Tags <List>

# 4. Verify and diff
$after = Get-CsTagsTemplate
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

New-CsTagsTemplate -Name <String> -Description <String> -Tags <List> [-Tenant <Guid>] [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Name String yes The name of the tag
-Description String yes A description for the purpose of the tag template
-Tags List yes The list of tags to add to the template.
-Tenant Guid This parameter is reserved for Microsoft internal use only.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.