Commands › Microsoft Teams

Get-CsHybridTelephoneNumber

Microsoft Teams MicrosoftTeams Get-*

This cmdlet displays information about one or more hybrid telephone numbers.

Quick start script

# Get-CsHybridTelephoneNumber — 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
Get-CsHybridTelephoneNumber -InputObject <IConfigApiBasedCmdletsIdentity> -TelephoneNumber <String> | Format-List

# 3. Export for evidence / drift tracking
Get-CsHybridTelephoneNumber | Export-Clixml .\CsHybridTelephoneNumber-$(Get-Date -Format yyyyMMdd).xml

Syntax — 3 parameter sets

Get1 (Default)

Get-CsHybridTelephoneNumber [-Break] [-HttpPipelineAppend <SendAsyncStep[]>]
 [-HttpPipelinePrepend <SendAsyncStep[]>] [-Proxy <Uri>] [-ProxyCredential <PSCredential>]
 [-ProxyUseDefaultCredentials] [<CommonParameters>]

Get

Get-CsHybridTelephoneNumber -TelephoneNumber <String> [-Break] [-HttpPipelineAppend <SendAsyncStep[]>]
 [-HttpPipelinePrepend <SendAsyncStep[]>] [-Proxy <Uri>] [-ProxyCredential <PSCredential>]
 [-ProxyUseDefaultCredentials] [<CommonParameters>]

GetViaIdentity

Get-CsHybridTelephoneNumber -InputObject <IConfigApiBasedCmdletsIdentity> [-Break]
 [-HttpPipelineAppend <SendAsyncStep[]>] [-HttpPipelinePrepend <SendAsyncStep[]>] [-Proxy <Uri>]
 [-ProxyCredential <PSCredential>] [-ProxyUseDefaultCredentials] [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Break SwitchParameter {{ Fill Break Description }}
-HttpPipelineAppend SendAsyncStep[] {{ Fill HttpPipelineAppend Description }}
-HttpPipelinePrepend SendAsyncStep[] {{ Fill HttpPipelinePrepend Description }}
-InputObject IConfigApiBasedCmdletsIdentity yes The identity parameter.
-Proxy Uri {{ Fill Proxy Description }}
-ProxyCredential PSCredential {{ Fill ProxyCredential Description }}
-ProxyUseDefaultCredentials SwitchParameter {{ Fill ProxyUseDefaultCredentials Description }}
-TelephoneNumber String yes Filters the returned results to a specific phone number. The number should be specified without a prefixed "+". The phone number can't have "tel:" prefixed.

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