-
Notifications
You must be signed in to change notification settings - Fork 107
SPServiceAppPool
dscbot edited this page Mar 17, 2023
·
18 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name | Key | String | The name of application pool | |
ServiceAccount | Required | String | The name of the managed account to run this service account as | |
Ensure | Write | String | Present if the service app pool should exist, absent if it should not |
Present , Absent
|
Type: Distributed Requires CredSSP: No
This resource is used for provisioning an application pool that can be used for service applications. The account used for the service account must already be registered as a managed account (which can be provisioned through
The default value for the Ensure parameter is Present. When not specifying this parameter, the service application pool is provisioned.
This example creates a service application pool for service apps to run in.
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPServiceAppPool MainServiceAppPool
{
Name = "SharePoint Service Applications"
ServiceAccount = "Demo\ServiceAccount"
PsDscRunAsCredential = $SetupAccount
Ensure = "Present"
}
}
}
- 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