ערוך

שתף באמצעות


Set-SPOTenantCdnEnabled

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
Accepted values:Public, Private, Both
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-Enable

Specifies if the CDN is enabled.

The valid values are: $True and $False.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-NoDefaultOrigins

PARAMVALUE: SwitchParameter

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

Inputs

None

Outputs

System.Object