Commands › Microsoft Teams

New-CsEdgeDomainPattern

Microsoft Teams MicrosoftTeams New-*

Used to specify a domain that will be added or removed from the set of domains enabled for federation or the set of domains disabled for federation.

Quick start script

# New-CsEdgeDomainPattern — 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-CsEdgeDomainPattern
$before | Format-List

# 3. Make the change
New-CsEdgeDomainPattern

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

Syntax

New-CsEdgeDomainPattern -Domain <String> [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-Domain String Fully qualified domain name of the domain to be added to the allow list. For example:

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