Commands › Microsoft Teams
Test-CsTeamsTranslationRule
This cmdlet tests a phone number against the configured number manipulation rules and returns information about the matching rule.
Quick start script
# Test-CsTeamsTranslationRule — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Run and inspect
Test-CsTeamsTranslationRule -PhoneNumber <String> | Format-List
# 3. Export for evidence / drift tracking
Test-CsTeamsTranslationRule | Export-Clixml .\CsTeamsTranslationRule-$(Get-Date -Format yyyyMMdd).xml
Syntax
Test-CsTeamsTranslationRule -PhoneNumber <String> [-Break] [-HttpPipelineAppend <SendAsyncStep[]>]
[-HttpPipelinePrepend <SendAsyncStep[]>] [-Proxy <Uri>] [-ProxyCredential <PSCredential>]
[-ProxyUseDefaultCredentials] [<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.