Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
The Data Connector for Azure DevOps includes Power Query M functions which query authors can use. These functions can handle Azure DevOps specific requirements like authentication for you. This article describes the arguments for the functions and how to use them to connect to Analytics.
The VSTS.AccountContents function is a replacement for Power Query M function Web.Contents. Intended for more advanced scenarios, VSTS.AccountContents returns the contents downloaded from the URL for Analytics as a binary value. You can use it to call AzureDevOps REST APIs.
Important
Advanced function that returns the contents downloaded from the URL for Analytics as a binary value.
The VSTS.AccountContents
function has the same arguments, options, and return value format as Web.Contents
. For more information, see Power Query (M) Formula Reference - Web.Contents.
If you're already using Web.Contents
to access work tracking data from Analytics (REST API or OData), you can replace it with VSTS.AccountContents
to use Data Connector authentication. It informs Power BI that these requests are referencing the same data source. You can combine the data without violating the single data source constraints in Power BI Service. However, VSTS.AccountContent
only supports data from Azure Boards and can't be used to support queries for Pipelines or other services.
'VSTS.AccountContents' provides a subset of the arguments and options available through 'OData.Contents'. The specific limitations are outlined in the table below:
Argument | Description |
---|---|
url |
URL to one of the Azure DevOps service endpoints. |
options |
An options record to control the behavior of this function. |
Field | Description |
---|---|
IsRetry |
Specify this logical value as true will ignore any existing response in the cache when fetching data. |
ManualStatusHandling |
Specify this value as a list will prevent any builtin handling for HTTP requests whose response has one of these status codes. |
MaxSize |
Controls the max size of the table the client is interested in. If request exceeds this limit then server can fail the request immediately. Default value is zero, which tells the servers server to use its default value. |
Query |
Programmatically add query parameters to the URL. |
RelativePath |
Specify this value as text appends it to the base URL before making the request. |
Timeout |
Specify this value as a duration will change the timeout for an HTTP request. The default value is 600 seconds. |
Version |
Version of the data model. This option is primary for diagnostics. |
Currently, the VSTS.AccountContents()
method only works for the subdomains listed below. Other services, such as the Release service, aren't yet supported:
https://dev.azure.com/
https://analytics.dev.azure.com/
https://vsrm.dev.azure.com/
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Use Power Query to load data in Dataverse - Training
Learn how to synchronize data from different sources to a Microsoft Dataverse table using Power Query and create dataflows in Power Apps.
Certification
Microsoft Certified: Power BI Data Analyst Associate - Certifications
Demonstrate methods and best practices that align with business and technical requirements for modeling, visualizing, and analyzing data with Microsoft Power BI.
Documentation
Access Analytics data from Power BI Desktop - Azure DevOps
Learn how to access Analytics OData from a Power BI Desktop OData feed for Azure DevOps.
Create a Power BI report with an OData Query - Azure DevOps
Learn how to create a trend report using an OData Query.
Connect with data by using OData queries - Azure DevOps
Learn how to write and test OData queries in Visual Studio Code for use in Power BI integration with Azure DevOps.