Commands › Microsoft Teams

Set-CsOnlineLisSubnet

Microsoft Teams MicrosoftTeams Set-*

Creates a Location Information Server (LIS) subnet, creates an association between a subnet and a location, or modifies an existing subnet and its associated location. The association between a subnet and location is used in an Enhanced 9-1-1 (E9-1-1) Enterprise Voice implementation to notify an emergency services operator of the caller's location.

Quick start script

# Set-CsOnlineLisSubnet — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsOnlineLisSubnet
$before | Format-List

# 3. Make the change (dry run first)
Set-CsOnlineLisSubnet -LocationId <Guid> -Subnet <String> -WhatIf
Set-CsOnlineLisSubnet -LocationId <Guid> -Subnet <String>

# 4. Verify and diff
$after = Get-CsOnlineLisSubnet
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-CsOnlineLisSubnet [[-TenantId] <Guid>] [-Subnet] <String> -LocationId <Guid> [-Description <String>]
 [-IsDebug <Boolean>] [-TargetStore <String>] [-NCSApiUrl <String>] [-Force] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Parameters (10)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Description String Specifies the administrator defined description of the Location Information Service subnet.
-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.
-LocationId Guid yes Specifies the unique identifier of the location to be modified.
-NCSApiUrl String This parameter is reserved for internal Microsoft use.
-Subnet String yes 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.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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