Set-SPOTenantCdnPolicy
Sets the content delivery network (CDN) policies at the tenant level.
Syntax
Default (Default)
Set-SPOTenantCdnPolicy
-PolicyType <SPOTenantCdnPolicyType>
-PolicyValue <String>
-CdnType <SPOTenantCdnType>
[<CommonParameters>]
Description
Use this cmdlet to set the content delivery network (CDN) policies at the tenant level.
Examples
EXAMPLE 1
Set-SPOTenantCdnPolicy -CdnType Public -PolicyType IncludeFileExtensions -PolicyValue "CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF,BMP"
This example sets a CDN to a public type with a policy value of listed extensions.
EXAMPLE 2
Set-SPOTenantCdnPolicy -CdnType Public -PolicyType ExcludeRestrictedSiteClassifications -PolicyValue "Confidential,Restricted"
This example sets the ExcludeRestrictedSiteClassifications policy for the selected CdnType to a policy value of listed excluded site classifications.
Parameters
-CdnType
Applicable: SharePoint Online
The CdnType parameter specifies the CDN type. The valid values are Public or Private.
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType |
Default value: | None |
Accepted values: | Public, Private |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PolicyType
Applicable: SharePoint Online
The PolicyType specifies the type of policy to set.
Valid values:
- IncludeFileExtensions
- ExcludeRestrictedSiteClassifications
- ExcludeIfNoScriptDisabled
Parameter properties
Type: | Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnPolicyType |
Default value: | None |
Accepted values: | IncludeFileExtensions, ExcludeRestrictedSiteClassifications, ExcludeIfNoScriptDisabled, ExcludeRestrictedSiteClassificationsFileExtensions |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PolicyValue
Applicable: SharePoint Online
A String representing the value of the policy type defined by the PolicyType parameter.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.