Set-SPOTenantCdnAllowedFileTypes

 

Applies to: SharePoint Online

Sets a list of allowed extensions for each type of the content delivery network (CDN).

Syntax

Set-SPOTenantCdnAllowedFileTypes -AllowedFileTypes <List> -CdnType <Public | Private>

Example

--------EXAMPLE 1--------

$ext = "jpg","png","txt"

Set-SPOTenantCdnAllowedFileTypes -CdnType Public -AllowedFileTypes $ext

The example sets *.jpg, *.png, and *.txt as allowed file types.

Parameters

Parameter Required Type Description

AllowedFileTypes

Required

System.Collections.Generic.List

Specifies the allowed file types in a list.

CdnType

Required

Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType

Specifies the CDN type. The valid values are: Public or Private.