I created a Power BI project (.pbip) in Power BI desktop and pushed the files to an Azure DevOps repository. I need to link the dev branch of the repo to a workspace in PowerBI service. Both Power BI and the repository are within the same tenant.
In PowerBI service, I have a premium per user workspace, fabric features are enabled, git integration at tenant level is enabled.
When I access workspace settings -> git integration I get the following:
Although there are no specific technical details in the UI itself, if I inspect the page and look at the failed request, I see the following error:
Endpoint: /metadata/git/organizations?gitProviderType=AzureDevOps&workspaceId=…
Error: AADSTS50158: External security challenge not satisfied. User will be redirected to another page or authentication provider to satisfy additional authentication challenges.
I read that this error might be related to MFA which my organization requires. We do not want to disable any of the existing security policies.
There is no redirect happening whatsoever and since no error is displayed in the UI itself, I am not even sure the error above is the real problem I should investigate.
Any idea how to fix this or if there is another viable alternative to achieve the same result?
Is there a way to use a service principal to connect to the git repo instead of my user account?