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

[SOLVED] Key authentication to CosmosDB stopped working in PowerBI Desktop

I have a dashboard that has been successfully pulling data from the CosmosDB SQL API into PowerBI for many months. However, a couple weeks ago when I tried to update the key used for authentication, it no longer authenticates. I did not change anything with my permissions/PowerBI/Cosmos setup. I get an error like the following.

 

Note that the key connection keeps working for existing dashboards with previously entered credentials, and only fails for updating the key.

 

kldykstra_0-1687514181418.png

I already tried regenerating the access key for CosmosDB and that does not solve the issue.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

It was a simple fix. I was incorrectly copying the password from Cosmos - before selecting the copy icon, I first needed to select the eye "reveal" icon. Because I pressed the copy icon for the key before selecting reveal, I was accidentally just passing in a bunch of asterisks as the key to PowerBI. MicrosoftTeams-image (34).png

View solution in original post

1 REPLY 1
Anonymous
Not applicable

It was a simple fix. I was incorrectly copying the password from Cosmos - before selecting the copy icon, I first needed to select the eye "reveal" icon. Because I pressed the copy icon for the key before selecting reveal, I was accidentally just passing in a bunch of asterisks as the key to PowerBI. MicrosoftTeams-image (34).png

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.