Commands › SharePoint Online
Add-SPOTenantCdnOrigin
Configures a new origin to public or private content delivery network (CDN). Requires Tenant administrator permissions.
Quick start script
# Add-SPOTenantCdnOrigin — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com
# 2. Run and inspect
Add-SPOTenantCdnOrigin -CdnType <SPOTenantCdnType> -OriginUrl <String> | Format-List
# 3. Export for evidence / drift tracking
Add-SPOTenantCdnOrigin | Export-Clixml .\SPOTenantCdnOrigin-$(Get-Date -Format yyyyMMdd).xml
Syntax
Add-SPOTenantCdnOrigin -OriginUrl <String> -CdnType <SPOTenantCdnType> [-WhatIf] [-Confirm]
[<CommonParameters>]
Parameters (4)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.