Provisioning look book SharePoint templates using PnP PowerShell

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hi I'm Paulo palori and in this video we are going to see how we can do manual provisioning of site templates in SharePoint online using PMP Powershell in fact there are plenty of site templates available for testing and learning purposes that you can find on a GitHub repository as open-source packages you can easily download them from GitHub and using PMP Powershell you can do the actual provisioning on your target environment in this demo we are going to see how to set up an environment and how to do the manual deployment of those templates first of all in order to use PMP Powershell you need to have Powershell installed and available in your environment to do so you can use the installing Powers shell on Windows official document and if you are on a Windows machine you can click on the MSI package option and you can download the MSI file file so that you can start the setup of powers shell on your machine it will take a while you will have to go through the setup process and little by little you will have powers shell completely installed on your machine I will fade out and fade in to save some time it is now fully uh installed on your machine you can eventually launch it already or you can click on the Finish button now that you have powers shell on your environment you need to set up the PMP Powershell command LS so if you go under pm. github.io Powershell here in the installation steps you can find detail in instruction about how to uh set up PMP poers shell so let me copy this statement and let me use it in Powers shell so let me start Powershell 7 on this machine and let me run the install module PMP Powers shell for the current user again it takes a little bit and when it will be ready we can then rely on PMP Powers shell of course I will have to allow all of the dependent packages to be installed on my machine and in a matter of few seconds PMP Powers shell will be ready to go and here we are so now we are ready to use it to do the provisioning of site template now if we want to take inspiration from already existing templates we can have a look at the lookbook it so lookbook.nu be used templates organized by category as you can see here organization Department team and you have plenty of options to set up the site templates and to learn and take inspiration from them it might be that in the future this site will not be available anymore but right now it is available and eventually you can still download all of the templates from GitHub as I will show you shortly in this lookbook side for example we have the landing template which is a really nice one that you can have a look at but we also have the MiFi learning Pathways which is a really powerful template to help and improve the adoption of mic 365 in your company and this is the one that I want to set up in my target environment so whether you use the lookbook site and you click on the add to your turn button or if if you want to do it manually which is the focus of our demo today you can rely on the template and if you want to do the setup manually the deployment manually you can go on GitHub under the github.com SharePoint slsp dd- provisioning Das template and here in this repository you will find two different folders the tenant one and the site one in the site folder you can find all of the templates that you can use Simply Having a collection administrator account while in the tenant folder you will find all of the templates that require a tenant administrator to be deployed the system folder is just for system purposes for the lookbook site so if you click on the tenant folder here you can see we have a bunch of options including the all 365 learning which is precisely the container of the template for the max 35 learning Pathways template as you can see right here you have a brief description together with links to the detailed instructions about how to use learning Pathways and here I want to just have a look at the template download it and use it in my target environment so the template is a PMP file you can open it and you can directly download the PMP file on your local environment the file will go under the uh download folder of your user so that you can then use it in PMP Powers shell so let's do that let me switch back to Powershell and from here we can start playing with PMP Powershell we want to Target a destination environment so I have here a tenant which I have created for the sake of having a demo environment and in this tenant I'm going to deploy and provision the microsof 3i learning pathway site using Powershell so first of all I will create a site which will be the target of my provisioning and for the learning Pathways we need to choose a communic ation site depending on the uh flavor of template that you want to provision you might have to choose team site or communication side as I said for learning Pathways communication site is the right choice so let me pick this one I will use the standard template because I'm going to overwrite it with the actual template that I'm going to provision so I'm going to use it I will provide a name to this template which can be for example M365 learning Pathways or whatever name you like and then I can click on on the next button it will be in English and I can create my site it will take few seconds and the site will be provisioned and ready to go and here we are so now back to Powershell we can connect to this site first of all let me copy the URL of the site and let me use the command let connect PMP online to connect to my target site I will provide the URL of the site and I'm saying that I want to use the interactive connection mode so I will use the interactive UI to authenticate against this site and the target tenant by doing that I will be prompt with the login interface of mot5 I will have to provide the credentials of a tenant admin user because as I said we are going to provision a template which will require tenant admin rights I'm going to provide my password and I will also have in this scenario to use the multiactor authentication so now I'm going to provide this unique number to my authenticator app and I will be authenticated now as you can see we have a prompt from Azure ENT ID to Grant a set of permissions to the PMP Management Shell so that with this permission my application will be able to uh apply to provision the uh provisioning template I Will consent on behalf of my organization just in case and I click on accept now that I've done that I'm almost done and I will be able to uh do the actual provisioning of my site template so I can use the invoke PMP tant template command letter I will provide the path of the template that I want to use which is in the low folder and it is called entry 65 lp. PMP and I will provide a set of parameters to this template which will allow me to Define what the relative URL of the site is and that I want to use to do the actual provisioning so I will provide a array of properties of custom settings and the one that I need to provide for the learning pathway site is the site URL and the value that I'm going to provide to this property is the relative URL of the site that I just created so slides slash M365 learning Pathways so once I'm done with the syntax of this command I can simply run it it will take few minutes something like four or five minutes to do the actual provisioning and then the template will be ready and fully applied to the Target side the template is now completely Pro provision on the target site so we simply need to go back to the site refresh the page and we can see that now we have the learning Pathways in place with the new template overriding the already existing one here you can find a set of useful links to get access to the templates on GitHub as well as to learn how to use PMP Powershell for provisioning templates thanks for watching this video and have fun with site templates
Info
Channel: Microsoft Community Learning
Views: 1,679
Rating: undefined out of 5
Keywords: SharePoint, community, open-source, Microsoft, Teams, Power, Platform, Graph
Id: lK17E412uNg
Channel Id: undefined
Length: 9min 32sec (572 seconds)
Published: Wed Apr 10 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.