Add app by Product Id or name with PnP remote provisioning?

Copper Contributor

I want to deploy a SharePoint Framework package tenant-wide (without skipFeatureDeployment set to true) and then add that package to site collections using PnP remote provisioning templates.

 

Is it possible to reference the package by its Product Id or name?

 

I have only managed to add the package by adding the following to my remote provisioning templates:

<pnp:ApplicationLifecycleManagement>

<pnp:Apps>
<pnp:App AppId="97eee146-3619-479e-82fe-d486c43515b8" Action="Install" />
</pnp:Apps>

</pnp:ApplicationLifecycleManagement>

 

where AppId is the id assigned to the package when you upload it to your app catalog. I don't have that id as im deploying the package in the same template as the site collection.

 

0 Replies