WebApplications creates IIS web applications within existing websites.
When to use 'WebApplications'
Use this resource when you need to create web applications under an IIS website (e.g., https://server/myapp). Web applications run in their own application pool and can have separate authentication, authorization, and .NET settings. Create the parent website first using WebSites and the application pool using WebApplicationPools.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Mandatory |
Hashtable[] |
List of WebApplication items. |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Example
WebApplications:
Items:
- Name: TestApp1
PhysicalPath: C:\InetPub\WebApplications1
WebAppPool: TestApp1
WebSite: TestSite1
- Name: TestApp2
PhysicalPath: C:\InetPub\WebApplications2
WebAppPool: TestApp2
WebSite: TestSite2