Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
gbiscini
New Member

Export powerbi embedded report to pdf. Does it need Azure AD?

I am trying to export a power BI embedded report to pdf or pptx. 

 

I am following this link of the documentation: 

https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to 

 

It seems to fit what i need but there are some complications i don't understand.

 

It doesn't seems to address the complexity of creating the object Client:

 

 

// The 'Client' object is an instance of the Power BI .NET SDK
var export = await Client.Reports.ExportToFileInGroupAsync(groupId, reportId, exportRequest);

 

 

this seems to be an object of the class PowerBIClient, that to be instanziated needs a Uri and a TokenCredential.

For obtaining this token it seems that the only way is to have the report as an app on Azure AD.

 

Here my question: is this true? The only way to authenticate is to have an app on Azure AD, or i can export the report even without it?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gbiscini 

Export report from Power BI Embed need authentication.

You can authenticate using a user (or master user) or a service principal.

For reference: Export Power BI embedded analytics reports API - Power BI | Microsoft Docs

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @gbiscini 

Export report from Power BI Embed need authentication.

You can authenticate using a user (or master user) or a service principal.

For reference: Export Power BI embedded analytics reports API - Power BI | Microsoft Docs

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.