SPOTenantCdnPolicy
Applies to : SharePoint Online
Sets the content delivery network (CDN) policies at the tenant level.
Use this cmdlet to set the content delivery network (CDN) policies at the tenant level.
Available cmdlets
Parameters
| Name | Type | Default value | Accepted values |
|---|---|---|---|
| CdnType | Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType | Public, Private | |
| PolicyType | Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnPolicyType | IncludeFileExtensions, ExcludeRestrictedSiteClassifications, ExcludeIfNoScriptDisabled, ExcludeRestrictedSiteClassificationsFileExtensions | |
| PolicyValue | System.String |
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.