Sample WebAPI application demonstrating use of PowerBI-CSharp SDK for creating embed REST API.
View demo: powerbipaasapi.azurewebsites.net
Pre-requisites:
You must have a workspace collection provisioned in azure. For infromation about provisioning see: https://azure.microsoft.com/en-us/documentation/articles/power-bi-embedded-get-started/
- Clone repository
git clone https://github.com/Azure-Samples/powerbi-dotnet-server-aspnet-web-api.git
-
Set properties in Web.config (SigningKey, WorkspaceCollection, and WorkspaceId) from Azure Portal.
-
Build and Run solution
See: PowerBI-CSharp for details about usage of NuGet packages to facilitate creating tokens for authentication.
We're interested in feedback. Open a new issue if you have requests or find bugs.