Set-SPOTenantCdnPolicy

Sets the content delivery network (CDN) policies at the tenant level.

Syntax

Set-SPOTenantCdnPolicy
   -CdnType <SPOTenantCdnType>
   -PolicyType <SPOTenantCdnPolicyType>
   -PolicyValue <String>
   [<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

The CdnType parameter specifies the CDN type. The valid values are Public or Private.

Type:SPOTenantCdnType
Accepted values:Public, Private
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-PolicyType

The PolicyType specifies the type of policy to set.

Valid values:

  • IncludeFileExtensions
  • ExcludeRestrictedSiteClassifications
  • ExcludeIfNoScriptDisabled
Type:SPOTenantCdnPolicyType
Accepted values:IncludeFileExtensions, ExcludeRestrictedSiteClassifications, ExcludeIfNoScriptDisabled
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-PolicyValue

A String representing the value of the policy type defined by the PolicyType parameter.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

Inputs

None

Outputs

System.Object