Skip to content

Commit f087015

Browse files
authored
Merge pull request #12468 from rhrivnak/new-example-allowedtrialtenantdomains
New example allowedtrialtenantdomains
2 parents 99f7c2f + 7d525bf commit f087015

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

teams/teams-ps/teams/Set-CsTenantFederationConfiguration.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,34 +187,43 @@ When this command completes, the Allowed Trial Tenant Domains list will be repla
187187

188188
### -------------------------- Example 13 --------------------------
189189
```
190+
Set-CsTenantFederationConfiguration -AllowedTrialTenantDomains @("contoso.com", "fabrikam.com")
191+
```
192+
193+
Example 13 shows another way to set a value of `AllowedTrialTenantDomains`. It uses array of objects and it always replaces value of the `AllowedTrialTenantDomains`. When this command completes, the result is the same as in example 12.
194+
195+
The array of `AllowedTrialTenantDomains` can be emptied by running the following command: `Set-CsTenantFederationConfiguration -AllowedTrialTenantDomains @()`.
196+
197+
### -------------------------- Example 14 --------------------------
198+
```
190199
$list = New-Object Collections.Generic.List[String]
191200
$list.add("contoso.com")
192201
193202
Set-CsTenantFederationConfiguration -AllowedTrialTenantDomains @{Add=$list}
194203
```
195204

196-
Example 13 shows how you can add domains to the existing Allowed Trial Tenant Domains using a List collection object.
205+
Example 14 shows how you can add domains to the existing Allowed Trial Tenant Domains using a List collection object.
197206
First, a List is created and domains are added to it, then, use the Add method in the `AllowedTrialTenantDomains` parameter to add the domains to the existing allowed domains list.
198207
When this command completes, the domains in the list will be added to any domains already on the Allowed Trial Tenant Domains list.
199208

200-
### -------------------------- Example 14 --------------------------
209+
### -------------------------- Example 15 --------------------------
201210
```
202211
$list = New-Object Collections.Generic.List[String]
203212
$list.add("contoso.com")
204213
205214
Set-CsTenantFederationConfiguration -AllowedTrialTenantDomains @{Remove=$list}
206215
```
207216

208-
Example 14 shows how you can remove domains from the existing Allowed Trial Tenant Domains using a List collection object.
217+
Example 15 shows how you can remove domains from the existing Allowed Trial Tenant Domains using a List collection object.
209218
First, a List is created and domains are added to it, then use the Remove method in the `AllowedTrialTenantDomains` parameter to remove the domains from the existing allowed domains list.
210219
When this command completes, the domains in the list will be removed from the Allowed Trial Tenant Domains list.
211220

212-
### -------------------------- Example 15 -------------------------
221+
### -------------------------- Example 16 -------------------------
213222
```
214223
Set-CsTenantFederationConfiguration -CustomizeFederation $True
215224
```
216225

217-
Example 15 shows how you can enable the feature where you can customize your federation in ExternalAccessPolicy.
226+
Example 16 shows how you can enable the feature where you can customize your federation in ExternalAccessPolicy.
218227

219228
## PARAMETERS
220229

0 commit comments

Comments
 (0)