Commands › Microsoft Teams
New-CsEdgeDomainPattern
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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.