Commands › Microsoft Teams
New-CsOnlineLisLocation
Create a new emergency dispatch location within an existing civic address. Typically the civic address designates the building, and locations are specific parts of that building such as a floor, office, or wing.
Quick start script
# New-CsOnlineLisLocation — 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-CsOnlineLisLocation
$before | Format-List
# 3. Make the change (dry run first)
New-CsOnlineLisLocation -CivicAddressId <Guid> -CountryOrRegion <String> -Location <String> -WhatIf
New-CsOnlineLisLocation -CivicAddressId <Guid> -CountryOrRegion <String> -Location <String>
# 4. Verify and diff
$after = Get-CsOnlineLisLocation
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax
New-CsOnlineLisLocation -Location <string> -CivicAddressId <guid> [-Elin <string>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters (23)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.