3. What is the PnP Provisioning Engine?
• Open source community effort
• Framework for easily doing Remote Provisioning
• Part of the OfficeDev PnP Core Library
• Object Oriented engine for easy and fast Remote Provisioning
• Capabilities
• Automated Remote Provisioning
• Easy SiteTemplate Generation/Extraction
• Available in Microsoft .NET
• There are PowerShell extensions for common tasks
• Supports templating of sites and artifacts
• Reusable, updatable (delta handling)
4. Long story short…
• The PnP provisioning engine wraps CSOM and makes deployment
and maintenance a breeze
• 100% reliant on CSOM (client side and managed)
6. 6
Slide
6
How to Use Google Analytics with Power BI to Get Usage Statistics from an Intranet | Knut Relbe-Moe | June 22nd
Follow us:
#O365ENGAGE17
PnP Provisioning Cmdlets
• Get-PnPProvisioningTemplate
• Apply-PnPProvisioningTemplate
• Get-PnPProvisioningTemplateFromGallery
• Add-PnPFileToProvisioningTemplate
• Convert-PnPFolderToProvisioningTemplate
• Load-PnPProvisioningTemplate
• New-PnPProvisioningTemplate
• New-PnPProvisioningTemplateFromFolder
• Remove-PnPFileFromProvisioningTemplate
• Save-PnPProvisioningTemplate
• Set-PnPProvisioningTemplateMetadata
7. 7
Slide
7
How to Use Google Analytics with Power BI to Get Usage Statistics from an Intranet | Knut Relbe-Moe | June 22nd
Follow us:
#O365ENGAGE17
PnP Provisioning Engine Main Features
• SP2013, SP2016 and SPO
• Delta templates
• XML, JSON formatter
• Site Columns
• Content Types
• Lists/Libraries Instances
• Features (Site or Web)
• Custom Actions (Site or Web)
• Files/Pages (Wiki, WebPart)
• Taxonomies
• Composed Looks
• Site Policies
• Web Settings
• Regional Settings
• UI Languages
• Resource Files
• Audit Settings
• Workflows (SPD only)
• Search Settings
• Publishing (including Page Layouts)
8. 8
Slide
8
How to Use Google Analytics with Power BI to Get Usage Statistics from an Intranet | Knut Relbe-Moe | June 22nd
Follow us:
#O365ENGAGE17
Using resource files
• Create resource files for every language you want to support and use
the same names for the entries
10. 10
Slide
10
How to Use Google Analytics with Power BI to Get Usage Statistics from an Intranet | Knut Relbe-Moe | June 22nd
Follow us:
#O365ENGAGE17
Templates
• Templates are XML
• PnP provisioning schema covers most
artifacts you can deploy declaratively with
WPSs
• Can be exported!
11. 11
Slide
11
How to Use Google Analytics with Power BI to Get Usage Statistics from an Intranet | Knut Relbe-Moe | June 22nd
Follow us:
#O365ENGAGE17
Exporting templates
• Use PnP PowerShell to do exports:
• Get-PNPProvisioningTemplate
• Tip #1 use the Handlers parameter in order to
only export the parts you want, e.g.
ContentTypes
• Tip #2 run the following command before an
export (or import) with powershell in order to
get more logging
Set-PNPTraceLog –On –Level Debug
12. 12
Slide
12
How to Use Google Analytics with Power BI to Get Usage Statistics from an Intranet | Knut Relbe-Moe | June 22nd
Follow us:
#O365ENGAGE17
Importing templates
• Use PnP PowerShell to do exports:
• Get-PNPProvisioningTemplate
• Tip #1 use the Handlers parameter in order to
only export the parts you want, e.g.
ContentTypes
13. 13
Slide
13
How to Use Google Analytics with Power BI to Get Usage Statistics from an Intranet | Knut Relbe-Moe | June 22nd
Follow us:
#O365ENGAGE17
Using Resource Files
• <?xml version="1.0"?>
<pnp:Provisioning xmlns:pnp="…">
<pnp:Preferences Generator="…" />
<pnp:Localizations>
<pnp:Localization LCID="1033" Name="English"
ResourceFile="SiteTemplate-en.resx"/>
<pnp:Localization LCID="1043" Name="Dutch"
ResourceFile="SiteTemplate-nl.resx"/>
</pnp:Localizations>
<pnp:Templates ID="CONTAINER-TEMPLATE-8C075A44E60F4E82B8F013637DB1E654">
•
14. 14
Slide
14
How to Use Google Analytics with Power BI to Get Usage Statistics from an Intranet | Knut Relbe-Moe | June 22nd
Follow us:
#O365ENGAGE17
#
Using Resource Files
• <pnp:Templates ID="…">
• <pnp:ProvisioningTemplate ID="…" Version="1">
• <pnp:Lists>
• <pnp:ListInstance Title="{resource:ContactsListTitle}"
Description="Use the Contacts list …" DocumentTemplate=""
OnQuickLaunch="true" TemplateType="105" Url="Lists/contacts"
MinorVersionLimit="0" MaxVersionLimit="0"
DraftVersionVisibility="0" TemplateFeatureID="00bfea71-7e6d-4186-
9ba8-c047ac750105" EnableFolderCreation="false">
• <pnp:Views>
16. 16
Slide
16
How to Use Google Analytics with Power BI to Get Usage Statistics from an Intranet | Knut Relbe-Moe | June 20, 2017 - 13:55 - 14:15
Follow us:
#O365ENGAGE17
Questions? | Thank You
Knut Relbe-Moe
knut@valointranet.com
We’d like to know what you think!
Please fill out the evaluation form you
received at the registration desk for this
session
Session recordings and materials:
Materials will be available on
Office365Engage.com soon