-
Notifications
You must be signed in to change notification settings - Fork 107
SPAuthenticationRealm
Yorick Kuijs edited this page Feb 19, 2019
·
7 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
IsSingleInstance | Key | String | Specifies the resource is a single instance, the value must be 'Yes' | Yes |
AuthenticationRealm | Required | String | The authentication realm to be set | |
InstallAccount | Write | PSCredential | POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsCredential if using PowerShell 5 |
Type: Distributed Requires CredSSP: No
This resource is used to set the authentication realm for a farm. By default the authentication realm for a new farm installation is the same as the farm id.
Note:
SharePoint automatically converts the realm to lower case ASCII printable characters. The specified authentication realm must therefore conform to this for the test method to be able to detect a correct configuration.
This example sets the farm atuhentication realm.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost {
SPAuthenticationRealm AuthenticationRealm
{
IsSingleInstance = "Yes"
AuthenticationRealm = "14757a87-4d74-4323-83b9-fb1e77e8f22f"
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