Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Embed Power BI content in an embedded analytics application with service principal and an application secret - Power BI | Microsoft Learn

Create Application Manually

image-20250116-022630.pngImage Added

  • Go to your Microsoft Azure console / Entra ID / App Registrations

  • + Add / App RegistrationNew registration

...

    ...

    • Name : your application name (service principal name also)

    • Redirect Url : where to redirect after azure authentication = WIP external URL

    Press Register.

    Once created go to API Permissions and use “+Add a permission “ permission“ to add permissions like below from

    image-20250116-023221.pngImage Added

    image-20250116-023415.pngImage Added

    • Microsoft Graph (import users)

    ...

      • User.Read

    • Power BI Service

      • Application permissions (Admin consent required)

        • Tenant.ReadWrite.All

      • Delegated Permissions

        • Connection.ReadWrite.All

        • Dataset.ReadWrite.All

        • Gateway.ReadWrite.All

        • Item.ReadWrite.All

        • PaginatedReport.ReadWrite.All

        • Report.ReadWrite.All

        • SemanticModel.ReadWrite.All

        • Workspace.ReadWrite.All

    ...

    image-20250108-022006.pngImage RemovedScreen Recording 2025-01-08 at 10.18.48.mov

    Assign Service Principal to Workspaces

    ...

    You need to assign the service principal to all workspaces you want to control with WIP (my workspaces is not necessary as they will be accessed using the login user)

    Add service principal to fabric administrative group

    image-20250109-111414.pngImage Added

    You need to add your service principal to a group (that you might create) having having assigned roles = “Fabric Administrator”

    Known Errors

    The caller is not authenticated to access this resource Status: 401 (Unauthorized) 

    • Add the service principal to a group having assigned roles = Fabric Administrator”

    Authenticate issue, invalid_request,AADSTS9002327: Tokens issued for the 'Single-Page Application' client-type may only be redeemed via cross-origin requests.

    • ssss