Commands › Microsoft Teams

Update-CsPhoneNumberTag

Microsoft Teams MicrosoftTeams Update-*

This cmdlet allows admin to update existing telephone number tags.

Quick start script

# Update-CsPhoneNumberTag — 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-CsPhoneNumberTag
$before | Format-List

# 3. Make the change
Update-CsPhoneNumberTag -NewTag <String> -Tag <String>

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

Syntax

Update-CsPhoneNumberTag -NewTag <String> -Tag <String> [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-NewTag String yes This is the new tag. A tag can be maximum 50 characters long.
-Tag String yes This is the old tag which the admin wants to update.

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