Commands › Microsoft Teams
Set-CsOnlineLisSubnet
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.