Commands › SharePoint Online

Add-SPOTenantCdnOrigin

SharePoint Online Microsoft.Online.SharePoint.PowerShell Add-*

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)

ParameterTypeRequiredWhat it controls
-CdnType SPOTenantCdnType yes Specifies the CDN type. The valid values are: public or private.
-OriginUrl String yes Specifies a path to the doc library to be configured. It can be provided in two ways: relative path, or a mask.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.