Skip to content

Latest commit

 

History

History
146 lines (107 loc) · 3.08 KB

File metadata and controls

146 lines (107 loc) · 3.08 KB
external help file sharepointonline.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version https://learn.microsoft.com/powershell/module/sharepoint-online/set-spotenantcdnenabled
applicable SharePoint Online
title Set-SPOTenantCdnEnabled
schema 2.0.0
author trent-green
ms.author trgreen
ms.reviewer

Set-SPOTenantCdnEnabled

SYNOPSIS

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

SYNTAX

Set-SPOTenantCdnEnabled [-CdnType <SPOTenantCdnTypeClient>] [-Confirm] [-Enable <Boolean>] [-NoDefaultOrigins]
 [-WhatIf] [<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

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

Type: SPOTenantCdnTypeClient
Parameter Sets: (All)
Aliases:
Accepted values: Public, Private, Both
Applicable: SharePoint Online
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Applicable: SharePoint Online
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Enable

Specifies if the CDN is enabled.

The valid values are: $True and $False.

Type: Boolean
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-NoDefaultOrigins

PARAMVALUE: SwitchParameter

Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Applicable: SharePoint Online
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Getting started with SharePoint Online Management Shell

Get-SPOAppErrors

Set-SPOTenantCdnEnabled