Skip to content

SPRemoteFarmTrust

Brian Farnhill edited this page Jul 27, 2016 · 19 revisions

Parameters

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
InstallAccount Write String POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5

Description

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

Example

SPRemoteFarmTrust TrustRemoteFarmForSearch
{
    Name = "CentralSearchFarm"
    RemoteWebAppUrl = "https://search.sharepoint.contoso.com"
    LocalWebAppUrl = "https://local.sharepoint2.contoso.com"
}

Clone this wiki locally