Share via


Set-SPOTenantCdnEnabled

Enables or disables Public content delivery network (CDN) or Private CDN on the tenant level. Requires Tenant administrator permissions.

Syntax

Default (Default)

Set-SPOTenantCdnEnabled
    [-Enable <Boolean>]
    [-CdnType <SPOTenantCdnTypeClient>]
    [-NoDefaultOrigins]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Enables or disables Public content delivery network (CDN) or Private CDN on the tenant level.

Examples

EXAMPLE 1

Set-SPOTenantCdnEnabled -CdnType public -Enable $true

The example enables a CDN.

Parameters

-CdnType

Applicable: SharePoint Online

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

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SPOTenantCdnTypeClient
Default value:None
Accepted values:Public, Private, Both
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
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

-Enable

Applicable: SharePoint Online

Specifies if the CDN is enabled.

The valid values are: $True and $False.

Parameter properties

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

Parameter sets

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

-NoDefaultOrigins

Applicable: SharePoint Online

PARAMVALUE: SwitchParameter

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:False
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