Error when trying to connect to a Power BI tenant from Purview (same tenant)

Asbjørn Fleinert Mathiasen 0 Reputation points
2025-05-05T13:16:35.5566667+00:00

I am trying to scan a Power BI tenant from Purview. However I keep getting the

Assets (+ lineage) - Failed status

error.

I have used this approach https://learn.microsoft.com/en-us/purview/register-scan-power-bi-tenant?tabs=Scenario1#scan-same-tenant-power-bi using the managed identity approach under bullet 4.
However I am unsure whether how to actually get this to work? I have bullet by bullet went through the Deployment checklist to make sure I haven't missed anything.
I am unsure whether I should just throw in the towel in regards to UAMI and get a service principal instead. If anyone has cracked the nut in regards to connection to a Power BI tenant in Purview using managed identity, then please spill the beans on what secret steps you took to make it work.

Cheers,
Fleinert

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,575 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ganesh Gurram 6,860 Reputation points Microsoft External Staff Moderator
    2025-05-08T16:54:35.26+00:00

    @Asbjørn Fleinert Mathiasen - Thanks for your reply and for sharing the updated error screenshot.

    According to this MS documentation: https://learn.microsoft.com/en-us/purview/register-scan-power-bi-tenant?tabs=Scenario1#create-scan-for-same-tenant-power-bi-using-azure-ir-and-managed-identity

    Based on the error you're seeing — ErrorCode:(3871) UserErrorDataScanPowerBIBasicMetadataFailure — and the fact that “Access” is successful but “Assets (+ lineage)” and “Detailed metadata” are failing, the issue is very likely caused by missing permissions for the managed identity to access the Power BI Admin APIs, which are required to fetch metadata and lineage.

    User's image

    This error occurs even during "Test connection" if the managed identity (UAMI) does not have access to the Power BI Admin APIs, not just during scan.

    Please re-confirm the following (even if already done) - Go to Power BI Admin Portal: https://app.powerbi.com/admin-portal/tenantSettings

    In Tenant Settings, ensure:

    • “Allow service principals to use Power BI APIs” is enabled
    • “Allow service principals to access read-only admin APIs” is enabled

    If these are restricted to specific security groups - Make sure your User Assigned Managed Identity (UAMI) is a member of that group in Microsoft Entra ID.

    To isolate whether the issue is with UAMI access - Try configuring the scan with a Service Principal that has the same permissions.

    If it works, it confirms that UAMI is missing the Admin API access and adding it to the allowed group will resolve the issue.

    I hope this information helps!

    0 comments No comments

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.