Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.39 KB

File metadata and controls

52 lines (31 loc) · 1.39 KB

import Global from '../../_global.mdx';

spo cdn policy set

Sets CDN policy value for the current SharePoint Online tenant

Usage

m365 spo cdn policy set [options]

Options

`-t, --cdnType [cdnType]`
: Type of CDN to manage. Allowed values are: `Public`, `Private`. Default `Public`.

`-p, --policy <policy>`
: CDN policy to configure. Allowed values are: `IncludeFileExtensions`, `ExcludeRestrictedSiteClassifications`.

`-v, --value <value>`
: Value for the policy to configure.

Remarks

Using the -t, --cdnType option you can choose whether you want to manage the settings of the Public (default) or Private CDN. If you don't use the option, the command will use the Public CDN.

:::info

To use this command you must be either SharePoint Administrator or Global Administrator.

:::

Examples

Set the list of extensions supported by the Public CDN

m365 spo cdn policy set --cdnType Public --policy IncludeFileExtensions --value CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF,JSON

Response

The command won't return a response on success.

More information