Commands › Microsoft Teams

New-CsOnlineLisLocation

Microsoft Teams MicrosoftTeams New-*

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)

ParameterTypeRequiredWhat it controls
-City String Specifies the city of the civic address.
-CityAlias String Specifies the city alias.
-CivicAddressId Guid yes Specifies the unique identifier of the civic address that will contain the new location. Civic address identities can be discovered by using the Get-CsOnlineLisCivicAddress cmdlet.
-CompanyName String Specifies the name of your organization.
-CompanyTaxId String The company tax ID.
-Confidence String This parameter is reserved for internal Microsoft use.
-Confirm SwitchParameter The Confirm switch causes the command to pause processing, and requires confirmation to proceed.
-CountryOrRegion String yes Specifies the country or region of the civic address.
-Description String Specifies an administrator defined description of the civic address.
-Elin String Specifies the Emergency Location Identification Number. This is used in Direct Routing EGW scenarios.
-Force SwitchParameter Suppresses the display of any non-fatal error message that might arise when running the command.
-HouseNumber String Specifies the numeric portion of the civic address.
-HouseNumberSuffix String Specifies the numeric suffix of the civic address. For example, if the property was multiplexed, the HouseNumberSuffix parameter would be the multiplex specifier: "425A Smith Avenue", or "425B Smith Avenue".
-Latitude String Specifies the angular distance of a place north or south of the earth's equator using the decimal degrees format.
-Location String yes Specifies an administrator-defined description of the new location. For example, "2nd Floor Cafe", "Main Lobby", or "Office 250".
-Longitude String Specifies the angular distance of a place east or west of the meridian at Greenwich, England, using the decimal degrees format.
-PostalCode String Specifies the postal code of the civic address.
-PostDirectional String Specifies the directional attribute of the civic address which follows the street name. For example, "425 Smith Avenue NE".
-PreDirectional String Specifies the directional attribute of the civic address which precedes the street name. For example, "425 NE Smith Avenue".
-StateOrProvince String Specifies the state or province of the civic address.
-StreetName String Specifies the street name of the civic address.
-StreetSuffix String Specifies the modifier of the street name. The street suffix will typically be something like street, avenue, way, or boulevard.
-WhatIf SwitchParameter The WhatIf switch causes the command to simulate its results. By using this switch, you can view what changes would occur without having to commit those changes.

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