Edit

Share via


Add-SPOTenantCdnOrigin

Configures a new origin to public or private content delivery network (CDN). Requires Tenant administrator permissions.

Syntax

Default (Default)

Add-SPOTenantCdnOrigin
    -OriginUrl <String>
    -CdnType <SPOTenantCdnType>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Configures a new origin to public or private CDN, on either Tenant level or on a single Site level. Effectively, a tenant admin points out to a document library, or a folder in the document library and requests that content in that library should be retrievable by using a CDN.

You must have the SharePoint Admin role and be a site collection administrator to run the cmdlet.

Examples

Example 1

Add-SPOTenantCdnOrigin -CdnType public -OriginUrl /sites/site/subfolder

This example configures a public CDN on a site level.

Parameters

-CdnType

Applicable: SharePoint Online

Specifies the CDN type. The valid values are: public or private.

Parameter properties

Type:Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType
Default value:None
Accepted values:Public, Private
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Applicable: SharePoint Online

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OriginUrl

Applicable: SharePoint Online

Specifies a path to the doc library to be configured. It can be provided in two ways: relative path, or a mask.

Relative-Relative path depends on the OriginScope. If the originScope is Tenant, a path must be a relative path under the tenant root. If the originScope is Site, a path must be a relative path under the given Site. The path must point to the valid Document Library or a folder within a document library.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Applicable: SharePoint Online

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object