Set-PnPTenantCdnPolicy

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

Syntax

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

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
Position:Named
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:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-PolicyType

The type of the policy to set

Type:SPOTenantCdnPolicyType
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-PolicyValue

The value of the policy to set

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False