-
Notifications
You must be signed in to change notification settings - Fork 107
SPRemoteFarmTrust
dscbot edited this page Mar 17, 2023
·
18 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name | Key | String | A name of the remote farm, used to create token issuer and root authority | |
RemoteWebAppUrl | Required | String | The URL of a web app in the remote farm, must use HTTPS | |
LocalWebAppUrl | Required | String | The URL of a local web app to connect the remote farm to | |
Ensure | Write | String | Set to present to ensure the trust exists, or absent to ensure it is removed |
Present , Absent
|
Type: Distributed Requires CredSSP: No
This resource is used to trust a remote SharePoint farm. This is used when federating search results between two different SharePoint farms. The technique is described at: https://technet.microsoft.com/en-us/library/dn133749.aspx
The default value for the Ensure parameter is Present. When not specifying this parameter, the remote farm trust is created.
This example creates a remote farm trust so that the local web app trusts calls that will come from the remote web app.
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPRemoteFarmTrust TrustRemoteFarmForSearch
{
Name = "CentralSearchFarm"
RemoteWebAppUrl = "https://search.sharepoint.contoso.com"
LocalWebAppUrl = "https://local.sharepoint2.contoso.com"
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations