Commands › Microsoft Teams

Set-CsOnlineLisLocation

Microsoft Teams MicrosoftTeams Set-*

Modify an existing emergency dispatch location. There can be multiple locations in a 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

# Set-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)
Set-CsOnlineLisLocation -CivicAddressId <Guid> -LocationId <Guid> -WhatIf
Set-CsOnlineLisLocation -CivicAddressId <Guid> -LocationId <Guid>

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

Syntax — 2 parameter sets

UseCivicAddressId (Default)

Set-CsOnlineLisLocation -CivicAddressId <guid> [-City <string>] [-CityAlias <string>] [-CompanyName <string>] [-CompanyTaxId <string>]
 [-Confidence <string>] [-CountryOrRegion <string>] [-Description <string>] [-Elin <string>] [-Force] [-HouseNumber <string>] [-HouseNumberSuffix <string>]
 [-Latitude <string>] [-Longitude <string>] [-PostalCode <string>] [-PostDirectional <string>] [-PreDirectional <string>]
 [-StateOrProvince <string>] [-StreetName <string>] [-StreetSuffix <string>] [-IsAzureMapValidationRequired <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

UseLocationId

Set-CsOnlineLisLocation -LocationId <guid> [-CityAlias <string>] [-Confidence <string>] [-Elin <string>] [-Force]
 [-Latitude <string>] [-Longitude <string>] [-Location <string>] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (25)

ParameterTypeRequiredWhat it controls
-City String Specifies the city of the civic address.
-CityAlias String **Note:** This parameter has been deprecated from the Teams PowerShell Module version 3.0.0 or later.
-CivicAddressId Guid yes Specifies the unique identifier of the civic address that contains the location to be modified. 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 **Note:** This parameter is not supported and will be deprecated.
-Confirm SwitchParameter The Confirm switch causes the command to pause processing and requires confirmation to proceed.
-CountryOrRegion String 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 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...
-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".
-IsAzureMapValidationRequired String This parameter is reserved for internal Microsoft use.
-Latitude String Specifies the angular distance of a place north or south of the earth's equator using the decimal degrees format.
-Location String Specifies an administrator defined description of the new location. For example, "2nd Floor Cafe", "Main Lobby", or "Office 250".
-LocationId Guid yes Specifies the unique identifier of the location to be modified. Location identities can be discovered by using the \`Get-CsOnlineLisLocation\` cmdlet.
-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 a modifier of the street name of the civic address. 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.