-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backup fails when using AppId/ClientSecret against UsGov cloud instance #393
Comments
i think i got this finally figured out and it was mainly of 2 reasons. first missing settings on applicationId on AppRegistration and second applicationId not being registered using New-PowerAppsManagementApp. Here is how the appregistration need to be setup:
|
pac cli command to backup fails when applicationId and clientSecret is used for authentication against UsGov instance.
Steps to reproduce:
pac auth create -ci usgov -id '[application-Id-value]' -cs '[client-secret-value]' -t '[tenant-id-value]'
pac admin backup -env 'https://[instance].crm9.dynamics.com' --label 'backup-test'
Error: The service principal with id '[object-id-of-application-Id]' for application [application-id-value] does not have permission to access the path 'https://10.0.1.7:20036/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments?`$expand=permissions&api-version=2020-08-01' in tenant [tenant-id-value].
The text was updated successfully, but these errors were encountered: