Update Installed App in subsites from tenant in sharepoint online

arul bretto kumar abraham 1 Reputation point
2021-11-08T03:27:59.72+00:00

Hi,

I would like to update the existing app which is already installed in my sharepoint subsites.
The app is deployed in Tenant site. Now I needs to update in subsite rather than go and click "Get It" open in each subsites.
I needs to update using PNP Powershell script.

I tried, with below command, to Install the app

Get-PnPApp -Identity abcd-adfbd-xx-yyy-uu | Install-PnPApp

the app is installed in all my subsites. However, I wants to update the app by using pnp powershell i got failed
becz, I used this below commands
Get-PnPApp -Identity abcd-adfbd-xx-yyy-uu | Update-PnPApp
Update-PnPApp -Identity abcd-adfbd-xx-yyy-uu -Sope site

no use. Please share your idea, how to update the installed app in each subsite using pnp powershell

Thanks,
Britto

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,126 Reputation points
    2021-11-08T07:29:21.847+00:00

    Hi @arul bretto kumar abraham ,

    As far as I know, Update-PnPApp command will update an already installed app if a new version is available.

    Please try to connect to the subsite instead of the root site via pnp then run the command, see if it works.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.