Pavan Asknani

Pavan Asknani

  • NA
  • 117
  • 716

Issues with installing Provider Hosted SharePoint APP using PNP PS

Feb 28 2022 11:53 AM

I am facing an issue with installing SharePoint Hosted APP using below  PNP Script  

Connect-PnPOnline -url $SiteURL -ClientID $ClientID  -ClientSecret $ClientSecret

Install-PnPApp -Identity $RERHostedAppId.

Behavior : 
 - After executing the script, the app starts installing in SP Site, but it takes a long time to install, hence a time-out error occurs.
 - It gets installed instantly on clicking retry.

Note: Above script works properly, if we install SPFX App in place of Hosted App or use -UseWebLogin or interactive in place of client and secret.

Some Additional Information 

  • It's a provider hosted app
  • We are using SharePoint Client ID and secret (appregnew)
  • Uploaded in the tenant app catalog.

 


Answers (1)