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

%3CLINGO-SUB%20id%3D%22lingo-sub-375768%22%20slang%3D%22en-US%22%3EAdd%20app%20by%20Product%20Id%20or%20name%20with%20PnP%20remote%20provisioning%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-375768%22%20slang%3D%22en-US%22%3E%3CP%3EI%20want%20to%20deploy%20a%20SharePoint%20Framework%20package%20tenant-wide%20(without%20skipFeatureDeployment%20set%20to%20true)%20and%20then%20add%20that%20package%20to%20site%20collections%20using%20PnP%20remote%20provisioning%20templates.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EIs%20it%20possible%20to%20reference%20the%20package%20by%20its%20Product%20Id%20or%20name%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20only%20managed%20to%20add%20the%20package%20by%20adding%20the%20following%20to%20my%20remote%20provisioning%20templates%3A%3C%2FP%3E%3CP%3E%3CAPPLICATIONLIFECYCLEMANAGEMENT%3E%3C%2FAPPLICATIONLIFECYCLEMANAGEMENT%3E%3C%2FP%3E%3CP%3E%3CAPPS%3E%3CBR%20%2F%3E%3CAPP%20appid%3D%22%26quot%3B97eee146-3619-479e-82fe-d486c43515b8%26quot%3B%22%20action%3D%22%26quot%3BInstall%26quot%3B%22%3E%3C%2FAPP%3E%3CBR%20%2F%3E%3C%2FAPPS%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhere%20AppId%20is%20the%20id%20assigned%20to%20the%20package%20when%20you%20upload%20it%20to%20your%20app%20catalog.%20I%20don't%20have%20that%20id%20as%20im%20deploying%20the%20package%20in%20the%20same%20template%20as%20the%20site%20collection.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CLINGO-LABS%20id%3D%22lingo-labs-375768%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

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