Questions tagged [azure-rest-api]
320 questions
1
vote
1 answer
Is there any way to know and get only the log for the stage that had an error on Azure DevOps pipelines using REST API?
I see there's an REST endpoint to get the log by its ID ( https://learn.microsoft.com/en-us/rest/api/azure/devops/build/builds/get%20build%20log?view=azure-devops-rest-5.1 )
And from what I see there's a log for each step and then the last log…

daniels
- 18,416
- 31
- 103
- 173
1
vote
1 answer
How to get valid access token to call Azure REST API from Postman
I want to be able to call the Azure rest APIs for creating/reading resources like Container instances, Container registries and storage accounts.
In my Azure AD, I registered an app for my application and got clientID, secret, and tenantId.
I have…

ash007
- 311
- 4
- 24
1
vote
1 answer
How to filter AppInsights custom metrics with REST API
I am trying to use REST API for retrieving AppInsights custom metrics and use a filter in the query.
The code to create the metric:
var telemetry = new MetricTelemetry();
telemetry.Context.InstrumentationKey = instrumentationKey;
telemetry.Name =…

Martin Staufcik
- 8,295
- 4
- 44
- 63
1
vote
1 answer
Creating Azure App Insights using REST API fails requires ROLE
I am generating API Key for an App Insight. I am using the URL
"https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys"
I don't have any clear…

Traze
- 180
- 8
1
vote
1 answer
How to create Azure DevOps Service connection endpoints through PowerShell
I want to know if writing PowerShell to create Azure DevOps service connection endpoints is possible.
I want to restrict access to everyone to create service connection endpoints by visiting Azure DevOps and we require multiple service connection…

VtheK
- 13
- 3
1
vote
1 answer
Azure Search Suggester with DataType.Complex and its subfields
I am new to Azure Search. I have been trying to create a new index which includes DataType.Complex for one of the fields. Microsoft provides an example of how to create a new index with DataType.Complex, but for the suggester.
Here is the REQUEST…

Kyle Ahn
- 39
- 4
1
vote
2 answers
Error when trying to post a discussion 'comment' to a work item using the Azure DevOps REST API
I am trying to post a discussion comment to a work item using the REST API version=5.1-preview.3.
Summary
Type: POST and C# HttpClient
However no matter how i try to work with it, i always get the response:
StatusCode: 415, ReasonPhrase:…

Nitin Manju
- 61
- 7
1
vote
1 answer
Unable to Add Windows Node Pull to Cluster Using Rest API
I want to add Windows Server Container to Azure kubernetes Cluster.Currenty,using the Azure Rest API to manage the cluster.But It is showing the following error:
{
"code": "AzureCNIOnlyForWindows",
"message": "Windows agent pools can only be…

Sandeep Kumar
- 11
- 1
1
vote
0 answers
VssConnection SP324098: Your browser could not complete the operation
I am using the following code to try and connect to Azure DevOps and to retrieve a list of work item types, however I keep getting this exception:
BrowserFlowException: SP324098: Your browser could not complete the
operation
There doesn't seem…

Nikhil
- 3,304
- 1
- 25
- 42
1
vote
1 answer
Which url data should add in ajax data using restapi
I am using Microsoft cognitive service face-api and I have done detecting face and I have got face ids. For detecting face, I used an image form online and add urls in request body of the rest api. Now for verifying faces, i used two images and I…

Kyaw Thi Ha
- 11
- 1
1
vote
1 answer
Detect if Azure SQL Data Warehouse has running or queued operations
I'm using the Azure REST API inside a Logic App. Every evening, the logic app checks the DW to see if the status is "Online", and if TRUE it issues a Pause. This is working, but does not take into account whether the DW has any operations active or…

Joel Cochran
- 7,139
- 2
- 30
- 43
0
votes
1 answer
Unable to add new page to azure devops work item type- Microsoft.VSTS.WorkItemTypes.Bug using azure devops REST API
I am trying to add custom page to inherited process -> work item type : Bug - Microsoft.VSTS.WorkItemTypes.Bug
Reference MS documentation :…

Ravi Potdar
- 1
- 2
0
votes
1 answer
Azure REST API throws "WAF Policy does not have any valid Primary Rule Set attached to it." error
The Azure REST API that I'm trying to call to update my WAF policy is throwing an error saying the policy doesn't have any valid primary rule set attached to it. This is the API I'm trying to hit -…

mr_raya
- 1
0
votes
2 answers
AZURE: upload attachment over az board workitem
I've a question, I automate so many tasks using the CLI tool
az boards work-item relation show
az boards work-item show
az boards work-item update
But now, my doubt is, as part of my automation, I need to upload an attachment to some workitems, is…

Oscar Arroyo
- 33
- 5
0
votes
1 answer
Azure DevOps REST API Patch call
I am trying to update the elasticpool parameters with powershell script following this official documentation provided by Microsoft Elasticpools - Update
I am currently working with the Azure DevOps REST API to update a azureId parameter using the…

nD0613
- 135
- 1
- 11