The Power BI web sample shows you how to
-
Register a Power BI ASP.NET web app in Azure AD.
-
Create a simple Power BI web app that authenticate to Azure AD.
- Configure Power BI settings authenticate with Azure AD.
- Create a query string to authenticate with Azure AD.
- Use Response.Redirect() to redirect to the Azure AD authentication service.
- Get the authentication code sent from Azure AD, and get the authentication token from the authentication code.
- call a Power BI REST operation using an Azure SD access token.
See complete ASP.NET web app sample article on MSDN.