Originally posted by **pkbullock** February 10, 2024
Hi I am looking to see if the Export-PnPPowerApp, can run under Azure AD App, instead of -Interactive.
I've tried using but are continually getting access denied in the following:
- a App running under App Permissions i.e. Non Interactive login
- Giving app Power App Service permissions in Azure AD Permissions blade
- Within the Power Platform Admin, adding the Azure AD app in the app list on the environment.
- Also adding the app as a service principal in the PP apis.
I believe this is possible, to achieve but I feel I am missing something here, just wondering if anyone knows or has tried this.
https://pnp.github.io/powershell/cmdlets/Export-PnPPowerApp.html
Discussed in https://github.com/pnp/powershell/discussions/3743