-
Notifications
You must be signed in to change notification settings - Fork 107
SPQuotaTemplate
dscbot edited this page Mar 17, 2023
·
18 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name | Key | String | The name of the quota template | |
StorageMaxInMB | Write | UInt32 | The maximum storage for sites of this template in MB | |
StorageWarningInMB | Write | UInt32 | The amount of storage for sites of this template that triggers a warning | |
MaximumUsagePointsSolutions | Write | UInt32 | The maximum number of performance points for sandbox solutions for this template | |
WarningUsagePointsSolutions | Write | UInt32 | The warning number of performance points for sandbox solutions for this template | |
Ensure | Write | String | Present to create this template, absent to ensure it does not exist |
Present , Absent
|
Type: Distributed Requires CredSSP: No
This resource is used to configure quota templates in the farm. These settings will be used to make sure a certain quota template exists or not. When it exists, it will also make sure the settings are configured as specified.
The default value for the Ensure parameter is Present. When not specifying this parameter, the quota template is created.
This example creates a specific quota template in the local farm.
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPQuotaTemplate TeamsiteTemplate
{
Name = "Teamsite"
StorageMaxInMB = 1024
StorageWarningInMB = 512
MaximumUsagePointsSolutions = 1000
WarningUsagePointsSolutions = 800
Ensure = "Present"
}
}
}
- Home
- Getting Started
- Pre-requisites
- Installing the module
- Exporting SharePoint Configuration
- Creating Configuration Files
- Pre-created Examples
- Creating an Azure development environment
- Understanding Resources & Syntax
- Remote PowerShell Authentication
- Contributing to SharePointDsc
- Other useful modules for SharePoint DSC configurations