en-us/about_xSPWebApplication.help.txt

NAME
    xSPWebApplication
 
PARAMETERS
    Name (Key, string)
    ApplicationPool (Required, string)
    ApplicationPoolAccount (Required, string)
    Url (Required, string)
    AllowAnonymous (Write, boolean)
    AuthenticationMethod (Write, string, Allowed values: NTLM, Kerberos)
    DatabaseName (Write, string)
    DatabaseServer (Write, string)
    HostHeader (Write, string)
    Path (Write, string)
    Port (Write, string)
    InstallAccount (Write, string)
 
DESCRIPTION
 
This resource is responsible for creating a web application within the local SharePoint farm.
The resource will provision the web application with all of the current settings, and then ensure that it stays part of the correct application pool beyond that (additional checking and setting of properties will be added in future releases).
 
EXAMPLE
 
    xSPWebApplication HostNameSiteCollectionWebApp
    {
        Name = "SharePoint Sites"
        ApplicationPool = "SharePoint Sites"
        ApplicationPoolAccount = "CONTOSO\svcSPWebApp"
        AllowAnonymous = $false
        AuthenticationMethod = "NTLM"
        DatabaseName = "SP_Content_01"
        DatabaseServer = "SQL.contoso.local\SQLINSTANCE"
        Url = "http://example.contoso.local"
        Port = 80
        PsDscRunAsCredential = $InstallAccount
    }