Set-PnPTenantCdnEnabled
Tip
We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Set-PnPTenantCdnEnabled.md to change this file.
Required Permissions
- SharePoint: Access to the SharePoint Tenant Administration site
Enables or disabled the public or private Office 365 Content Delivery Network (CDN).
Syntax
Set-PnPTenantCdnEnabled
[-NoDefaultOrigins]
-Enable <Boolean>
-CdnType <CdnType>
[-Connection <PnPConnection>]
[<CommonParameters>]
Description
Enables or disabled the public or private Office 365 Content Delivery Network (CDN).
Examples
EXAMPLE 1
Set-PnPTenantCdnEnabled -CdnType Public -Enable $true
This example sets the Public CDN enabled.
Parameters
-CdnType
The type of cdn to enable or disable
Type: | CdnType |
Accepted values: | Public, Private, Both |
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 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Enable
Specify to enable or disable
Type: | Boolean |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NoDefaultOrigins
{{ Fill NoDefaultOrigins Description }}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |