Commands › Microsoft Teams

Get-CsTenantNetworkSubnet

Microsoft Teams MicrosoftTeams Get-*

Returns information about the network subnet setting in the tenant. Tenant network subnet is used for Location Based Routing.

Quick start script

# Get-CsTenantNetworkSubnet — 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-CsTenantNetworkSubnet | Format-List

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

Syntax — 2 parameter sets

Identity (Default)

Get-CsTenantNetworkSubnet [[-Identity] <string>] [<CommonParameters>]

Filter

Get-CsTenantNetworkSubnet [-Filter <string>] [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Filter String The Filter parameter allows you to limit the number of results based on filters you specify.
-Identity String The Identity parameter is a unique identifier that designates the scope. It specifies the collection of tenant network subnets to be returned.

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