Skip to content

spo cdn origin add

Adds CDN origin to the current SharePoint Online tenant


m365 spo cdn origin add [options]


-t, --type [type]
Type of CDN to manage. Public,Private. Default Public
-r, --origin <origin>
Origin to add to the current CDN configuration
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
Runs command with verbose logging
Runs command with debug logging


To use this command you have to have permissions to access the tenant admin site.


Using the -t, --type 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.


Add */CDN to the list of origins of the Public CDN

m365 spo cdn origin add --type Public --origin */CDN

More information