How to deploy a lookbook on a SharePoint Online Site Collection (And not the tenant) using PowerShell?

frob 4,216 Reputation points
2022-01-08T04:35:52.693+00:00

Hi there

Thanks.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,692 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yi Lu_MSFT 17,456 Reputation points
    2022-01-10T07:25:41.377+00:00

    Hi @frob
    SharePoint Look Book is a set of downloadable templates created and hosted for you by Microsoft. What’s cool about it is that you can look up a design you like and then install the template in your environment. It is by design and you could refer to this article to learn how to begin with it:
    https://sharepointmaven.com/how-to-get-started-with-sharepoint-look-book/

    As to apply a lookbook to an existing SharePoint Online Site Collection, we need to:
    1.Install SharePoint PnP PowerShell Online

    Install-Module SharePointPnPPowerShellOnline  
    

    2.Lets now connect to the site where we already applied a Look book theme.

    Connect-PnPOnline -Url “https: //abcxyz.sharepoint.com/sites/Sourcesite”  
    

    3.Get the source site template with below cmdlet.

    Get-PnPProvisioningTemplate -Out “D:\SourceSiteTemplate.xml”  
    

    4.Now connect with the destination site which is already existing communication site in your tenant. Same PnP command.

    Connect-PnPOnline -Url “https: //abcxyz.sharepoint.com/sites/DestinationSite”  
    

    5.Once after connecting successfully enter the cmdlet to Apply the theme to destination site from D drive.

    Apply-PnPProvisioningTemplate -Path “D:\SourceSiteTemplate.xml”  
    

    For more details you could refer: https://onetidbit.com/2021/07/01/apply-sharepoint-look-book-theme-to-existing-site-collection/

    As to the work time, it seems that service to be online again in January 2022 without exact time.

    Above is to apply the existing template. If you need other templates now, after you click "add to your tenant" in https://lookbook.microsoft.com/, you will get another page and click "GitHub repository":

    164663-image.png

    164712-image.png

    According to the "README.md", we find that Repository for SharePoint PnP Provisioning templates to automate site / tenant level provisioning logic. Templates are divided on different folders based on the structure and needed permissions.

    Let's pay our attention to the "tenant" folder, we will find some subfolders in it containing the template files:

    164626-image.png

    164627-image.png

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful