Set-PnPTenantCdnPolicy

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Set-PnPTenantCdnPolicy.md to change this file.

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

Sets the CDN Policies for the specified CDN (Public | Private).

Syntax

Set-PnPTenantCdnPolicy
   -CdnType <SPOTenantCdnType>
   -PolicyType <SPOTenantCdnPolicyType>
   -PolicyValue <String>
   [-Connection <PnPConnection>]
   [<CommonParameters>]

Description

Sets the CDN Policies for the specified CDN (Public | Private).

Examples

EXAMPLE 1

Set-PnPTenantCdnPolicy -CdnType Public -PolicyType IncludeFileExtensions -PolicyValue "CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF"

This example sets the IncludeFileExtensions policy to the specified value.

Parameters

-CdnType

The type of cdn to retrieve the policies from

Type:SPOTenantCdnType
Accepted values:Public, Private
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:PnPConnection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PolicyType

The type of the policy to set

Type:SPOTenantCdnPolicyType
Accepted values:IncludeFileExtensions, ExcludeRestrictedSiteClassifications, ExcludeIfNoScriptDisabled
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PolicyValue

The value of the policy to set

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False