I’ve seen a few examples of distributing a set of teams backgrounds to users in MEM, mostly they seemed a little overly complex, especially in targetting all local users and/or packaging the script into an application. I wanted to:
- Deploy using MEM PS script in user context
- Avoid access controls on the storage location of the backgrounds
- Simplify the creation of required Azure resources
- Have a simple update procedure
Here’s my take, first autocreate a blob storage location using my template:
Note down the name you used for the storage account (which was the only parameter to the template), and use it to configure this PowerShell script:
https://gitlab.com/Lieben/assortedFunctions/-/blob/master/add-teamsBackgroundsFromBlobContainer.ps1
Finally, deploy the script to a group of your users in MEM, in their own context: