Commands › Microsoft Teams

Set-CsTenantNetworkSite

Microsoft Teams MicrosoftTeams Set-*

Changes the definition of network sites.

Quick start script

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

# 3. Make the change (dry run first)
Set-CsTenantNetworkSite  -WhatIf
Set-CsTenantNetworkSite

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

Syntax

Set-CsTenantNetworkSite [[-Identity] <string>] [-Description <string>] [-EmergencyCallingPolicy <string>] [-EmergencyCallRoutingPolicy <string>]
 [-EnableLocationBasedRouting <bool>] [-LocationPolicy <string>] [-NetworkRegionID <string>] [-NetworkRoamingPolicy <string>]
 [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (10)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Description String Provide a description of the network site to identify purpose of setting it.
-EmergencyCallingPolicy String This parameter is used to assign a custom emergency calling policy to a network site. For more information, see [Assign a custom emergency calling policy to a network...
-EmergencyCallRoutingPolicy String This parameter is used to assign a custom emergency call routing policy to a network site. For more information, see [Assign a custom emergency call routing policy to a network...
-EnableLocationBasedRouting Boolean This parameter determines whether the current site is enabled for Location-Based Routing.
-Identity String Unique identifier for the network site to be set.
-LocationPolicy String This parameter is reserved for internal Microsoft use.
-NetworkRegionID String NetworkRegionID is the identifier for the network region which the current network site is associating to.
-NetworkRoamingPolicy String NetworkRoamingPolicy is the identifier for the network roaming policy to which the network site will associate to.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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