Commands › Microsoft Teams

Set-CsTenantNetworkRegion

Microsoft Teams MicrosoftTeams Set-*

Changes the definintion of network regions.

Quick start script

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

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

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

Syntax

Set-CsTenantNetworkRegion [[-Identity] <string>] [-CentralSite <string>] [-Description <string>]
 [-NetworkRegionID <string>] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-CentralSite String This parameter is not used.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Description String Provide a description of the network region to identify purpose of setting it.
-Identity String Unique identifier for the network region to be set.
-NetworkRegionID String The name of the network region. Not required in this PowerShell command.
-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.