Skip to content

New example allowedtrialtenantdomains #12468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions teams/teams-ps/teams/Set-CsTenantFederationConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,34 +187,43 @@ When this command completes, the Allowed Trial Tenant Domains list will be repla

### -------------------------- Example 13 --------------------------
```
Set-CsTenantFederationConfiguration -AllowedTrialTenantDomains @("contoso.com", "fabrikam.com")
```

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.

The array of `AllowedTrialTenantDomains` can be emptied by running the following command: `Set-CsTenantFederationConfiguration -AllowedTrialTenantDomains @()`.

### -------------------------- Example 14 --------------------------
```
$list = New-Object Collections.Generic.List[String]
$list.add("contoso.com")

Set-CsTenantFederationConfiguration -AllowedTrialTenantDomains @{Add=$list}
```

Example 13 shows how you can add domains to the existing Allowed Trial Tenant Domains using a List collection object.
Example 14 shows how you can add domains to the existing Allowed Trial Tenant Domains using a List collection object.
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.
When this command completes, the domains in the list will be added to any domains already on the Allowed Trial Tenant Domains list.

### -------------------------- Example 14 --------------------------
### -------------------------- Example 15 --------------------------
```
$list = New-Object Collections.Generic.List[String]
$list.add("contoso.com")

Set-CsTenantFederationConfiguration -AllowedTrialTenantDomains @{Remove=$list}
```

Example 14 shows how you can remove domains from the existing Allowed Trial Tenant Domains using a List collection object.
Example 15 shows how you can remove domains from the existing Allowed Trial Tenant Domains using a List collection object.
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.
When this command completes, the domains in the list will be removed from the Allowed Trial Tenant Domains list.

### -------------------------- Example 15 -------------------------
### -------------------------- Example 16 -------------------------
```
Set-CsTenantFederationConfiguration -CustomizeFederation $True
```

Example 15 shows how you can enable the feature where you can customize your federation in ExternalAccessPolicy.
Example 16 shows how you can enable the feature where you can customize your federation in ExternalAccessPolicy.

## PARAMETERS

Expand Down