Add-SPOOrgAssetsLibrary

Designates a library to be used as a central location for organization assets across the tenant.

Syntax

Add-SPOOrgAssetsLibrary
   -LibraryUrl <String>
   [-ThumbnailUrl <String>]
   [-OrgAssetType <OrgAssetType>]
   [-CdnType <SPOTenantCdnType>]
   [<CommonParameters>]

Description

The Add-SPOOrgAssetsLibrary cmdlet designates a library to be a central location for organization assets across the tenant. Once this cmdlet is run, assets stored within this library are available to sites across the tenant. The name publicly displayed for the library will be the name of the library on the SharePoint site. Note that it may take from a couple of hours to a day for changes to be reflected.

Examples

Example 1

This example adds https://contoso.sharepoint.com/sites/branding/Assets as a designated library for organization assets. Assets is the name of the SharePoint library added and will be the name publicly displayed for the library. The thumbnail publicly displayed for the library is contosologo.jpg, from that same library.

Add-SPOOrgAssetsLibrary -LibraryURL https://contoso.sharepoint.com/sites/branding/Assets -ThumbnailURL https://contoso.sharepoint.com/sites/branding/Assets/contosologo.jpg

Parameters

-CdnType

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

Type:SPOTenantCdnType
Accepted values:Public, Private
Position:Named
Default value:Private
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-LibraryUrl

Indicates the absolute URL of the library to be designated as a central location for organization assets.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-OrgAssetType

Indicates the type of content in this library. Currently supported value is ImageDocumentLibrary, which is set by default.

Type:OrgAssetType
Accepted values:ImageDocumentLibrary
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online
-ThumbnailUrl

Indicates the URL of the background image used when the library is publicly displayed. If no thumbnail URL is indicated, the card will have a gray background.

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