Set-PnPSite -LogoFilePath $LogoPath->sharepoint doc lib or Azure Storage

Jurgen Verhelst 326 Reputation points
2020-12-27T23:18:55.613+00:00

Hi!,

Creating and customizing team sites in Azure Autmation using a Runbook

Changing the sitelogo seems easy using

Set-PnPSite -LogoFilePath $LogoPath

If it were not that $LogoPath needs to be on a local drive...

Maybe using an azure storage account ?

Using Get-AzureStorageFileContent -Context $storageContext -ShareName $fileShareName -Path $fileName -Destination $Sitelogo -Force?

Or a SharePoint doc library?

or is it just not possible (yet) to do that in a runbook?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,256 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,686 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 109.1K Reputation points MVP
    2020-12-27T23:43:35.66+00:00

    It seems only a "local file path" is allowed:

    51495-logofilepath.jpg
    https://video2.skills-academy.com/en-us/powershell/module/sharepoint-pnp/set-pnpsite?view=sharepoint-ps

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. Jurgen Verhelst 326 Reputation points
    2020-12-31T06:30:16.883+00:00

    Hi Andreas,

    I was hoping someone had a workaround as I asumed many of the guru's here ar customising modern team site collections... 😊

    I was hoping hub site association would copy down the site logo too but that is not the case

    Maybe fooling the commandlet thinking an azure storage share is the -localfilePath?

    Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.