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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
chsowald
Microsoft Employee
Microsoft Employee

HttpClient Retry via PowerBiClient

Hi.  I'm using Polly to easily enable HttpClient retries for transient errors.  This is easy when using the standard HttpClient.  I'm getting PowerBI embed tokens on my backend, but don't see a way to enable Polly retries for the PowerBiClient as I can't pass it an HttpClient, though it appears to use one internally.

 

Is there a way to override the default HttpClient when creating the PowerBiClient or can you add one?  Sadly, I can even get (but not set) the HttpClient on the PowerBiClient.  So close!

 

https://github.com/Microsoft/PowerBI-CSharp/blob/master/sdk/PowerBI.Api/Source/V2/PowerBIClient.cs

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.