DSCResources/MSFT_SPWebApplication/MSFT_SPWebApplication.schema.mof

[ClassVersion("1.0.0.0")]
Class MSFT_SPWebAppSiteDataServers
{
    [Required, Description("Specifies the zone for which the URI has to be configured"), ValueMap{"Default","Intranet","Internet","Extranet","Custom"}, Values{"Default","Intranet","Internet","Extranet","Custom"}] String Zone;
    [Write, Description("The URI to be used by the Search crawlers")] String Uri[];
};
[ClassVersion("1.1.0.0"), FriendlyName("SPWebApplication")]
class MSFT_SPWebApplication : OMI_BaseResource
{
    [Key, Description("The name of the web application")] string Name;
    [Required, Description("The URL of the web application")] string WebAppUrl;
    [Required, Description("The name of the application pool to run this site in")] string ApplicationPool;
    [Required, Description("The name of the managed account to run the app pool with")] string ApplicationPoolAccount;
    [Write, Description("The port to run the site on")] string Port;
    [Write, Description("The host header to use for the web app")] string HostHeader;
    [Write, Description("Specifies the certificate thumbprint of the SSL certificate to be used. Make sure the certificate is added to Certificate Management (SPSE only)")] String CertificateThumbprint;
    [Write, Description("Specifies that the Secure Sockets Layer (SSL) binding of this IIS website should use Server Name Indication (SNI) (SPSE only)")] Boolean UseServerNameIndication;
    [Write, Description("Specifies that older SSL and TLS protocol versions and cipher suites are allowed to be used with this IIS website (SPSE only and requires Windows Server 2022)")] Boolean AllowLegacyEncryption;
    [Write, Description("The path on the local servers to host the IIS web site from")] string Path;
    [Write, Description("The name of the first content database to be created with this web app")] string DatabaseName;
    [Write, Description("The name of the database server to host the default content DB")] string DatabaseServer;
    [Write, Description("Should SQL Server authentication be used to connect to the database?")] Boolean UseSQLAuthentication;
    [Write, Description("If using SQL authentication, the SQL credentials to use to connect to the instance"), EmbeddedInstance("MSFT_Credential")] String DatabaseCredentials;
    [Write, Description("Should anonymous access be enabled for this web app")] boolean AllowAnonymous;
    [Write, Description("Create the web application with Classic authentication (only used during creation of a new web application)")] boolean UseClassic;
    [Write, Description("Configure target URIs for the Search crawlers"), EmbeddedInstance("MSFT_SPWebAppSiteDataServers")] string SiteDataServers[];
    [Write, Description("Present if the web app should exist, absent if it should not"), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] string Ensure;
};