-
Notifications
You must be signed in to change notification settings - Fork 107
SPManagedMetaDataServiceAppDefault
dscbot edited this page Mar 17, 2023
·
11 revisions
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 |
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.
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
}
}
}
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
}
}
}
- 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