-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1147 from jensotto/set-application-credential-key
SPFarm: Added ApplicationCredentialKey
- Loading branch information
Showing
6 changed files
with
231 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
SharePointDsc/Examples/Resources/SPFarm/4-CreateBasicFarmWithApplicationCredentialKey.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
|
||
<#PSScriptInfo | ||
.VERSION 1.0.0 | ||
.GUID 80d306fa-8bd4-4a8d-9f7a-bf40df95e661 | ||
.AUTHOR DSC Community | ||
.COMPANYNAME DSC Community | ||
.COPYRIGHT DSC Community contributors. All rights reserved. | ||
.TAGS | ||
.LICENSEURI https://github.com/dsccommunity/SharePointDsc/blob/master/LICENSE | ||
.PROJECTURI https://github.com/dsccommunity/SharePointDsc | ||
.ICONURI https://dsccommunity.org/images/DSC_Logo_300p.png | ||
.EXTERNALMODULEDEPENDENCIES | ||
.REQUIREDSCRIPTS | ||
.EXTERNALSCRIPTDEPENDENCIES | ||
.RELEASENOTES | ||
Updated author, copyright notice, and URLs. | ||
.PRIVATEDATA | ||
#> | ||
|
||
<# | ||
.DESCRIPTION | ||
This example shows how a basic SharePoint farm can be created. The database server and names | ||
are specified, and the accounts to run the setup as, the farm account and the passphrase are | ||
all passed in to the configuration to be applied. The application credential key is also | ||
specified. This configuration is only supported with SharePoint 2019. By default the central | ||
admin site in this example is provisioned to port 9999 using NTLM authentication. | ||
#> | ||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$FarmAccount, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$SetupAccount, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$Passphrase, | ||
|
||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$ApplicationCredentialKey | ||
) | ||
Import-DscResource -ModuleName SharePointDsc | ||
|
||
node localhost { | ||
SPFarm SharePointFarm | ||
{ | ||
IsSingleInstance = "Yes" | ||
DatabaseServer = "SQL.contoso.local\SQLINSTANCE" | ||
FarmConfigDatabaseName = "SP_Config" | ||
AdminContentDatabaseName = "SP_AdminContent" | ||
Passphrase = $Passphrase | ||
FarmAccount = $FarmAccount | ||
ApplicationCredentialKey = $ApplicationCredentialKey | ||
RunCentralAdmin = $true | ||
PsDscRunAsCredential = $SetupAccount | ||
} | ||
} | ||
} | ||
|
||
<# | ||
.EXAMPLE | ||
#> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters