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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
ryszardre
Frequent Visitor

How to access Azure DevOps in Power BI Service dataflows using API Token?

Hi, 

 

I would like to ask you how to access Azure DevOps tables in Power BI Service? I would like to create a dataflow using API Token as a basic credentials but I cannot click "Connect" without entering username

ryszardre_0-1634560409578.png

 

I use Odata connector and this solution works in Power BI Desktop.

 

Thanks for all your help!

 

1 ACCEPTED SOLUTION

I don't think just having full access solves it. I'll check my access later and come back if I don't have them.
-----I'm back. Checking my configuration
I have a visual studio license. I do have the prerequisites

Analytics view turned on

ibarrau_1-1634649479459.png

Projects with view analytics

ibarrau_0-1634649435103.png

Finally I'm part of a group at organization level permission (the group has "allow" for all permissions):

ibarrau_2-1634649743568.png

I hope some of that helps to connect. If this continue like that, try getting a single table, like "Projects". Add that word at the end of the URL. 


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

Happy to help!

LaDataWeb Blog

View solution in original post

6 REPLIES 6
collinq
Super User
Super User

Hi @ryszardre ,

 

I believe that the answer given by @ibarrau is correct and should answer the question you asked.  But, I am wondering you don't just use the Azure Dev Ops connector?  Does that not provide you with what you need?




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




ibarrau
Super User
Super User

Hi. In order to connect DevOps via OData you need a Personal Access Token from your Personal Settings in dev.azure

Then configure your personal access and permission.

 

Once you have that token you can write the url and complete the basic auth like:
username: AzureAD email or blank

password: token key generated before.

 

If dataflows is not letting you continue with blank, just add your email. That should let you get the data if you have permission.

I hope that helps,


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

Happy to help!

LaDataWeb Blog

Hi ibbarau, 

 

Thanks for your prompt response. I gennerated new token with full access and used Azure AD email as a username but the only result I get is still the same screen:

ryszardre_0-1634631251535.png

There is not even an error message. 

 

It is also not possible to left username blank because then "Connect" button is not active:

ryszardre_1-1634631343323.png

 

Thanks again for your further help!

@collinq - there is no Azure Dev Ops connector in Power BI service.

That's weird. I have just tried this and it worked. Can you show us the whole url for the OData just hidding the company name?

Also, be sure that the password is correct. My key from the personal api access is a lot longer, something like: rqth7ga3bzhfbrauswfb4xy3mobbelhr6u4aeezpdsiceur6vita

Leaving blank is something that only works in Desktop.

Last but not less is checking the doc. Do you have al the prerequisites ok?

https://docs.microsoft.com/en-us/azure/devops/report/powerbi/odataquery-connect?view=azure-devops#pr...

I hope that helps,


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

Happy to help!

LaDataWeb Blog

My url is:

ryszardre_0-1634645601784.png

Key is much longer than in previous screenshot, similar lenght to your's key. 

I have "full access" token so I guess it solve all the prerequisites issues.

I don't think just having full access solves it. I'll check my access later and come back if I don't have them.
-----I'm back. Checking my configuration
I have a visual studio license. I do have the prerequisites

Analytics view turned on

ibarrau_1-1634649479459.png

Projects with view analytics

ibarrau_0-1634649435103.png

Finally I'm part of a group at organization level permission (the group has "allow" for all permissions):

ibarrau_2-1634649743568.png

I hope some of that helps to connect. If this continue like that, try getting a single table, like "Projects". Add that word at the end of the URL. 


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors