Commands › Microsoft Teams
Set-CsOnlineLisPort
Creates a Location Information Server (LIS) port, creates an association between a port and a location, or modifies an existing port and its associated location. The association between a port 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-CsOnlineLisPort — 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-CsOnlineLisPort
$before | Format-List
# 3. Make the change (dry run first)
Set-CsOnlineLisPort -ChassisID <String> -LocationId <Guid> -PortID <String> -WhatIf
Set-CsOnlineLisPort -ChassisID <String> -LocationId <Guid> -PortID <String>
# 4. Verify and diff
$after = Get-CsOnlineLisPort
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
Set-CsOnlineLisPort [-ChassisID] <string> -LocationId <guid> -PortID <string> [-Description <string>] [-Force] [-IsDebug <bool>]
[-NCSApiUrl <string>] [-TargetStore <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (10)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.