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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Power Bi Embedding using a service principal error

I tried to embed my power bi reports using service prinicpal so using microsoft power bi developers sample code I embedded my report but i got this error 

Error Details:
HTTPSConnectionPool(host='api.powerbi.com', port=443): Max retries exceeded with url: /v1.0/myorg/groups/60a2f105-679d-4b55-8ac7-d69a2d479546/reports/85578574-e482-4f9e-86c4-f3a8e8f20943 (Caused by NameResolutionError(": Failed to resolve 'api.powerbi.com' ([Errno 11001] getaddrinfo failed)"))

 

Help me out .

@saud968@Arun@amitchandak

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Yeah I solved but that is due to few proxy restrictions in my system , for normal systems this error will not get .

here I shared microsoft Power bi Developers api code to embed your power bi reports in various programming languages to both your customers and organisation .
Thanks & Regards .

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

Have you solved your problem? If solved please mark the reply in this post which you think is helpful as a solution to help more others facing the same problem to find a solution quickly, thank you very much!

Best Regards,

Xianda Tang

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

Anonymous
Not applicable

Yeah I solved but that is due to few proxy restrictions in my system , for normal systems this error will not get .

here I shared microsoft Power bi Developers api code to embed your power bi reports in various programming languages to both your customers and organisation .
Thanks & Regards .
saud968
Super User
Super User

Try to check that 'api.powerbi.com' is the correct endpoint for the Power BI service.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors