Commands › Microsoft Teams

Get-CsOnlineLisSubnet

Microsoft Teams MicrosoftTeams Get-*

Retrieves one or more subnets from the location configuration database.

Quick start script

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

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

Syntax

Get-CsOnlineLisSubnet [[-TenantId] <Guid>] [[-Subnet] <String>] [-IsDebug <Boolean>] [-TargetStore <String>]
 [-NCSApiUrl <String>] [-Force] [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-Force SwitchParameter The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn't provided in the command, you're prompted for...
-IsDebug Boolean This parameter is reserved for internal Microsoft use.
-NCSApiUrl String This parameter is reserved for internal Microsoft use.
-Subnet String The IP address of the subnet. This value can be either IPv4 or IPv6 format.
-TargetStore String This parameter is reserved for internal Microsoft use.
-TenantId Guid This parameter is reserved for internal Microsoft use.

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