Skip to content

Latest commit

 

History

History
126 lines (86 loc) · 3.01 KB

File metadata and controls

126 lines (86 loc) · 3.01 KB
external help file Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
Module Name Microsoft.Online.SharePoint.PowerShell
online version https://learn.microsoft.com/powershell/module/microsoft.online.sharepoint.powershell/set-spotenantcdnpolicy
applicable SharePoint Online
title Set-SPOTenantCdnPolicy
schema 2.0.0
author samkabue
ms.author speedta
ms.reviewer

Set-SPOTenantCdnPolicy

SYNOPSIS

Sets the content delivery network (CDN) policies at the tenant level.

SYNTAX

Set-SPOTenantCdnPolicy -PolicyType <SPOTenantCdnPolicyType> -PolicyValue <String> -CdnType <SPOTenantCdnType>
 [<CommonParameters>]

DESCRIPTION

Use this cmdlet to set the content delivery network (CDN) policies at the tenant level.

EXAMPLES

EXAMPLE 1

Set-SPOTenantCdnPolicy -CdnType Public -PolicyType IncludeFileExtensions -PolicyValue "CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF,BMP"

This example sets a CDN to a public type with a policy value of listed extensions.

EXAMPLE 2

Set-SPOTenantCdnPolicy -CdnType Public -PolicyType ExcludeRestrictedSiteClassifications -PolicyValue "Confidential,Restricted"

This example sets the ExcludeRestrictedSiteClassifications policy for the selected CdnType to a policy value of listed excluded site classifications.

PARAMETERS

-CdnType

Applicable: SharePoint Online

The CdnType parameter specifies the CDN type. The valid values are Public or Private.

Type: Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType
Parameter Sets: (All)
Aliases:
Accepted values: Public, Private

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PolicyType

Applicable: SharePoint Online

The PolicyType specifies the type of policy to set.

Valid values:

  • IncludeFileExtensions
  • ExcludeRestrictedSiteClassifications
  • ExcludeIfNoScriptDisabled
Type: Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnPolicyType
Parameter Sets: (All)
Aliases:
Accepted values: IncludeFileExtensions, ExcludeRestrictedSiteClassifications, ExcludeIfNoScriptDisabled, ExcludeRestrictedSiteClassificationsFileExtensions

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PolicyValue

Applicable: SharePoint Online

A String representing the value of the policy type defined by the PolicyType parameter.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
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