Embedding Microsoft Power BI in an Anvil App

I am considering embedding some Dashboards and other visualisations we have developed in Microsoft Power BI in an Anvil App which we would like to offer as SaaS to

our clients who are outside our organisation and who will not necessarily have, or want to have, Microsoft accounts or buy Power BI licences.

Reading various Microsoft and Anvil documents: -

https://azure.microsoft.com/en-in/products/power-bi-embedded/#overview

I have concluded that the appropriate Microsoft option is called ‘Embed for your customers’ (aka ‘App owns data’). In this solution the users don’t need to own a Power BI licence, licencing is taken care of via Power BI embedded in an Azure Entra tenant (i.e. our problem not our clients’)

In the Microsoft documentation ‘Embed Power BI report in a Power BI embedded analytics application for your customers - Power BI | Microsoft Learn’ it gives an example of embedding Power BI in an application and has a section titled ‘Step 4 - Enable server-side authentication’ which describes changes that need to be made in C# and JSON modules (I am not a C# programmer).

When I read the Anvil documentation, I can see a description of how to embed a Webpage (client side) in an Anvil App (quote - ‘You can use this to embed blogs, charts or embedded analytics like PowerBI.’). However, I can’t see anything about the equivalent of the Microsoft app example ‘Step 4 - Enable server-side authentication’. I am guessing I would need something equivalent in Anvil.

Has anyone successfully embedded Power BI in an Anvil app or are there any suggestions on what I could do to implement the equivalent of ‘Step 4’?

Thanks

Steve

Looks like you need to follow these steps to create an iframe to embed your BI app. Then you can just pop that iframe in like the anvil documentation says.

Thank you Richard for your prompt response. I will give it a try and revert.

Regards
Steve

1 Like