Set-PnPTenantCdnEnabled
SYNOPSIS
Required Permissions
- SharePoint: Access to the SharePoint Tenant Administration site
Enables or disables the public or private Office 365 Content Delivery Network (CDN).
SYNTAX
Set-PnPTenantCdnEnabled [-NoDefaultOrigins] -Enable <Boolean> -CdnType <CdnType> [-Connection <PnPConnection>]
DESCRIPTION
Enables or disables the public or private Office 365 Content Delivery Network (CDN) for the tenant.
EXAMPLES
EXAMPLE 1
Set-PnPTenantCdnEnabled -CdnType Public -Enable $true
This example sets the Public CDN enabled.
EXAMPLE 2
Set-PnPTenantCdnEnabled -CdnType Private -Enable $false
This example disables the Private CDN for the tenant.
EXAMPLE 3
Set-PnPTenantCdnEnabled -CdnType Public -Enable $true -NoDefaultOrigins
This example enables the Public CDN for the tenant, but skips the provisioning of the default origins.
PARAMETERS
-CdnType
The type of CDN to enable or disable
Type: CdnType
Parameter Sets: (All)
Accepted values: Public, Private, Both
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Connection
Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.
Type: PnPConnection
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Enable
Specify to enable or disable
Type: Boolean
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-NoDefaultOrigins
If specified, the default origins for the specified CDN type will not be provisioned. See Default CDN origins for information about the origins that are provisioned by default when you enable the Office 365 CDN, and the potential impact of skipping the setup of default origins.
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False