Skip to content

Latest commit

 

History

History
87 lines (69 loc) · 2.14 KB

File metadata and controls

87 lines (69 loc) · 2.14 KB

DSC Resource 'WebApplications'

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

Table 1. Attributes of category 'WebApplications'
Parameter Attribute DataType Description Allowed Values

Items

Mandatory

Hashtable[]

List of WebApplication items.

Table 2. Attributes of category 'WebApplications/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