Commands › Microsoft Teams

Set-CsOnlineLisCivicAddress

Microsoft Teams MicrosoftTeams Set-*

Use the cmdlet to modify an existing civic address which has not been validated.

Quick start script

# Set-CsOnlineLisCivicAddress — 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-CsOnlineLisCivicAddress
$before | Format-List

# 3. Make the change (dry run first)
Set-CsOnlineLisCivicAddress -CivicAddressId <Guid> -WhatIf
Set-CsOnlineLisCivicAddress -CivicAddressId <Guid>

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

Syntax

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

Parameters (24)

ParameterTypeRequiredWhat it controls
-City String Specifies a new city for the civic address. Publicly editable.
-CityAlias String Short form of the city name. This parameter is reserved for internal Microsoft use.
-CivicAddressId Guid yes Specifies the unique identifier of the civic address to be modified.
-CompanyName String Specifies a new company name for the civic address. Publicly editable.
-CompanyTaxId String Used to store TaxId for regulatory reasons. This parameter is reserved for internal Microsoft use.
-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 Specifies a new country or region for the civic address. For public use, restricted to the following countries/regions:
-Description String Specifies a new description for the civic address. Publicly editable.
-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 new numeric portion of the civic address. Publicly editable.
-HouseNumberSuffix String Specifies the new numeric suffix of the new 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 in the decimal degrees format. Publicly editable.
-Longitude String Specifies the angular distance of a place east or west of the meridian at Greenwich, England, in the decimal degrees format. Publicly editable.
-PostalCode String Specifies the new postal code of the civic address. Publicly editable.
-PostDirectional String Specifies the new directional attribute of the civic address which follows the street name. For example, "425 Smith Avenue NE".
-PreDirectional String Specifies the new directional attribute of the civic address which precedes the street name. For example, "425 NE Smith Avenue ".
-StateOrProvince String Specifies the new state or province of the civic address. Publicly editable.
-StreetName String Specifies the new street name of the civic address. Publicly editable.
-StreetSuffix String Specifies the new modifier of the street name of the new civic address. The street suffix will typically be something like street, avenue, way, or boulevard.
-ValidationStatus String Microsoft internal use only
-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.