Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

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

-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

-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

-NoDefaultOrigins

Applicable: SharePoint Online

PARAMVALUE: SwitchParameter

Parameter properties

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

Parameter sets

-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

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

Related Links


Feedback

Was this page helpful?