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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dronkoff
Employee
Employee

VSTS.AccountContents() authentication fails with "The resource cannot be found".

Hello!

I have a simple Azure DevOps REST API query (because OData doesn't have information about releases) :

 

let
httpResponse = VSTS.AccountContents("https://vsrm.dev.azure.com/{org}/{proj}/_apis/release/deployments?$top=100&?api-version=6.0"),
json = Json.Document(httpResponse),
List = json[value]
in
List

 

And after loggin in with organization account it works fine from PowerBI Desktop.

That's good and now it's time to publish and enjoy the Scheduled refresh feature.

Ok. Publish succeded.

Going to to Datasets -> Settings -> Data source credentials.

pbi_1.png

 

Ok. Looks like I need to auth again. Click Edit credentials.

pbi_2.png

 

And here, interesting, doesn’t really matter what auth method I will chose I will get this “nice” error message that expands beyond the screed borders.

pbi_3.png

 

This error message sais that the resource can not be found

pbi_4.jpg

 

What am I doing wrong and how to configure scheduled refresh?

 

1 ACCEPTED SOLUTION
dronkoff
Employee
Employee

It turns out that a VSTS.AccountContents(...) support ONLY data from Azure DevOps boards (work items)!

It does not support anything else like Pipelines, etc.  So it can not be treated as a full replacement for Web.Contents(...).

Unfortunately, the documentation and error messages are totally misleading.

View solution in original post

1 REPLY 1
dronkoff
Employee
Employee

It turns out that a VSTS.AccountContents(...) support ONLY data from Azure DevOps boards (work items)!

It does not support anything else like Pipelines, etc.  So it can not be treated as a full replacement for Web.Contents(...).

Unfortunately, the documentation and error messages are totally misleading.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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