Commands › Microsoft Teams

Test-CsTeamsTranslationRule

Microsoft Teams MicrosoftTeams Test-*

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)

ParameterTypeRequiredWhat it controls
-Break SwitchParameter {{ Fill Break Description }}
-HttpPipelineAppend SendAsyncStep[] {{ Fill HttpPipelineAppend Description }}
-HttpPipelinePrepend SendAsyncStep[] {{ Fill HttpPipelinePrepend Description }}
-PhoneNumber String yes The phone number to test.
-Proxy Uri {{ Fill Proxy Description }}
-ProxyCredential PSCredential {{ Fill ProxyCredential Description }}
-ProxyUseDefaultCredentials SwitchParameter {{ Fill ProxyUseDefaultCredentials Description }}

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