Skip to content

SPManagedMetaDataServiceAppDefault

dscbot edited this page Mar 17, 2023 · 11 revisions

SPManagedMetaDataServiceAppDefault

Parameters

Parameter Attribute DataType Description Allowed Values
ServiceAppProxyGroup Key String Specifies the Service Application Proxy Group for which to configure the defaults. Use 'default' or the name of the proxy group.
DefaultSiteCollectionProxyName Required String The name of the managed metadata service application proxy used as default column terms set
DefaultKeywordProxyName Required String The name of the managed metadata service application proxy used as default keyword terms set

Description

Type: Distributed Requires CredSSP: No

Using several managed metadata service instances in a farm requires some configuration. Each Service Application Proxy Group can only have one service application proxy configured as default for keywords or site collection specific term sets.

This resource has to be configured in conjunction with the SPManagedMetadataServiceApp resource and allows to specify which managed metadata service application proxy should be used as default for the proxy group.

Examples

Example 1

This example shows how to configure a default Managed Metadata service app for the default proxy group.

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $SetupAccount
    )

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPManagedMetaDataServiceAppDefault ManagedMetadataServiceAppDefault
        {
            ServiceAppProxyGroup           = "Default"
            DefaultSiteCollectionProxyName = "Managed Metadata Service Application Proxy"
            DefaultKeywordProxyName        = "Managed Metadata Service Application Proxy"
            PsDscRunAsCredential           = $SetupAccount
        }
    }
}

Example 2

This example shows how to configure a custom proxy group and specify its default Managed Metadata service app.

Configuration Example
{
    param
    (
        [Parameter(Mandatory = $true)]
        [PSCredential]
        $SetupAccount
    )

    Import-DscResource -ModuleName SharePointDsc

    node localhost
    {
        SPServiceAppProxyGroup ProxyGroup1
        {
            Name                 = "Proxy Group 1"
            Ensure               = "Present"
            ServiceAppProxies    = @("User Profile Service Application", "MMS Service Application", "State Service Application")
            PsDscRunAsCredential = $SetupAccount
        }

        SPManagedMetaDataServiceAppDefault ManagedMetadataServiceAppDefault
        {
            ServiceAppProxyGroup           = "Proxy Group 1"
            DefaultSiteCollectionProxyName = "MMS Service Application Proxy"
            DefaultKeywordProxyName        = "MMS Service Application Proxy"
            PsDscRunAsCredential           = $SetupAccount
        }
    }
}
Clone this wiki locally