DSCResources/MSFT_SPContentDatabase/MSFT_SPContentDatabase.schema.mof
/*
**Description** This resource is used to add and remove Content Databases to web applications and and configure these databases. Note: The resource cannot be used to move the database to a different SQL instance. It will throw an error when it detects that the specified SQL instance is a different instance that is currently in use. **Example** SPContentDatabase ContentDB { Name = "SharePoint_Content_01" DatabaseServer = "SQL.contoso.local\SQLINSTANCE" WebAppUrl = "http://sharepoint.contoso.com" Enabled = $true WarningSiteCount = 2000 MaximumSiteCount = 5000 Ensure = "Present" PsDscRunAsCredential = $InstallAccount } */ [ClassVersion("1.0.0.0"), FriendlyName("SPContentDatabase")] class MSFT_SPContentDatabase : OMI_BaseResource { [Key, Description("Specifies the name of the content database")] String Name; [Write, Description("The name of the database server to host the content DB")] string DatabaseServer; [Required, Description("The URL of the web application")] string WebAppUrl; [Write, Description("Should the database be enabled")] Boolean Enabled; [Write, Description("Specify the site collection warning limit for the content database")] Uint16 WarningSiteCount; [Write, Description("Specify the site collection maximum limit for the content database")] Uint16 MaximumSiteCount; [Write, Description("Present to create this database, absent to ensure it does not exist"), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] string Ensure; [Write, Description("POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5"), EmbeddedInstance("MSFT_Credential")] String InstallAccount; }; |