Skip to content

Commit 272cf38

Browse files
authored
Update New-CsEdgeDomainPattern.md
Updating additional examples
1 parent 3ae4c6d commit 272cf38

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

teams/teams-ps/MicrosoftTeams/New-CsEdgeDomainPattern.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,30 @@ Set-CsTenantFederationConfiguration -BlockedDomains $x
6161
```
6262

6363
Example 1 demonstrates how you can assign a single domain to the blocked domains list for a specified tenant.
64-
To do this, the first command in the example creates a domain object for the domain fabrikam.com; this is done by calling the New-CsEdgeDomainPattern cmdlet and by saving the resulting domain object in a variable named $x.
65-
The second command then uses the Set-CsTenantFederationConfiguration cmdlet and the BlockedDomains parameter to configure fabrikam.com as the only domain blocked by the current tenant.
64+
To do this, the first command in the example creates a domain object for the domain fabrikam.com; this is done by calling the `New-CsEdgeDomainPattern` cmdlet and by saving the resulting domain object in a variable named $x.
65+
The second command then uses the `Set-CsTenantFederationConfiguration` cmdlet and the `BlockedDomains` parameter to configure fabrikam.com as the only domain blocked by the current tenant. Please note that `AllowFederatedUsers` should be `True` for this to work.
66+
67+
### Example 2
68+
```
69+
$x = New-CsEdgeDomainPattern -Domain "fabrikam.com"
70+
71+
Set-CsTenantFederationConfiguration -AllowedDomains $x
72+
```
73+
74+
Example 2 demonstrates how you can assign a single domain to the allowed domains list for a specified tenant.
75+
To do this, the first command in the example creates a domain object for the domain fabrikam.com; this is done by calling the `New-CsEdgeDomainPattern` cmdlet and by saving the resulting domain object in a variable named $x.
76+
The second command then uses the `Set-CsTenantFederationConfiguration` cmdlet and the `AllowedDomains` parameter to configure fabrikam.com as the only domain allowed by the current tenant. Please note that `AllowFederatedUsers` should be `True` for this to work.
77+
78+
### Example 3
79+
```
80+
$x = New-CsEdgeDomainPattern -Domain ""
81+
82+
Set-CsTenantFederationConfiguration -AllowedDomains $x
83+
```
84+
85+
Example 3 demonstrates how you can block a specified tenant from any external federation.
86+
To do this, the first command in the example creates an empty domain object; this is done by calling the `New-CsEdgeDomainPattern` cmdlet and by saving the resulting domain object in a variable named $x.
87+
The second command then uses the `Set-CsTenantFederationConfiguration` cmdlet and the `AllowedDomains` parameter to configure the current tenant with a Block-All setting. Please note that `AllowFederatedUsers` should be `True` in case you want to allow specific users to be able to communicate externally via `ExternalAccessPolicy` instances.
6688

6789
## PARAMETERS
6890

0 commit comments

Comments
 (0)