Commands › SharePoint Online

Add-SPOOrgAssetsLibrary

SharePoint Online Microsoft.Online.SharePoint.PowerShell Add-*

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

Quick start script

# Add-SPOOrgAssetsLibrary — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Add-SPOOrgAssetsLibrary -LibraryUrl <String> | Format-List

# 3. Export for evidence / drift tracking
Add-SPOOrgAssetsLibrary | Export-Clixml .\SPOOrgAssetsLibrary-$(Get-Date -Format yyyyMMdd).xml

Syntax

Add-SPOOrgAssetsLibrary -LibraryUrl <String> [-ThumbnailUrl <String>] [-OrgAssetType <OrganizationAssetType>]
 [-CdnType <SPOTenantCdnType>] [-NoDefaultOrigins] [-CopilotSearchable <Boolean>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-CdnType SPOTenantCdnType Specifies the CDN type. The valid values are public or private.
-CopilotSearchable Boolean Specifies whether the library is made available to Microsoft 365 Copilot Search.
-LibraryUrl String yes Indicates the absolute URL of the library to be designated as a central location for organization assets.
-NoDefaultOrigins SwitchParameter Specifies whether to provision default origins during activation of the CDN for organizational assets feature.
-OrgAssetType OrganizationAssetType Indicates the type of content in this library. Currently supported values are "ImageDocumentLibrary" and "OfficeTemplateLibrary".
-ThumbnailUrl String 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.
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.