When to use 'SharePointWebApplications'
Use this resource when you need to create SharePoint web applications that host site collections. Web applications define the IIS site, authentication method, URL, and application pool for SharePoint content. Create service application pools first using SharePointServiceAppPools.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Hashtable[] |
set of web applications |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Example
SharePointWebApplications:
WebApplications:
- Name: SharePoint - Content
ApplicationPool: SharePoint - Content
ApplicationPoolAccount: contoso\sp_contentAppPool
AllowAnonymous: false
WebAppUrl: https://content.contoso.com/
HostHeader: content.contoso.com
DatabaseName: SP2016_Content_01
DatabaseServer: SqlServer001
Port: 443
- Name: SharePoint - MySite
ApplicationPool: SharePoint - MySite
ApplicationPoolAccount: contoso\sp_contentAppPool
AllowAnonymous: false
WebAppUrl: https://my.contoso.com/
HostHeader: content.contoso.com
DatabaseName: SP2016_Content_My_02
DatabaseServer: SqlServer001
Port: 443