Questions tagged [azure-rest-api]
320 questions
0
votes
0 answers
Azure REST API: "Exactly one source for a revert must be specified" on revert
I have to implement reverting changes via Azure REST API, but I've got "Exactly one source for a revert must be specified." message in 400 response. Documentation is poor and I've ran out of ideas, since there is only one source in request. Any…

P3k1
- 90
- 9
0
votes
0 answers
can we get Azure mysql flexible server replication lag in seconds metric through API ? I am not sure if Azure provides an API to get that metric data
Is there an API to get mysql flexible server read replication lag in seconds metric data ?. We have an implementation in AWS where we are using the AWS api to get replication lag data to disable/enable mysql replica and we want to do the same in…

Sarmad
- 17
- 5
0
votes
1 answer
Copy Data from REST API to Azure SQL DB with Data Factory
Beginner here, I want to copy some stock data from a REST API into my Azure SQL database. I've set up a pipeline with a Look-up activity to get the needed strings (with stock symbols) and use them in For Each to call the API and copy the data to SQL…

incher91
- 27
- 4
0
votes
1 answer
List Permissions of a user in CosmosDB using SDK
I am trying to do a POC on List Permissions of a local user in CosmosDB.
I am referring to this Doc for List permissions.
Can someone give me a sample code to run below REST API (using primary…

Vinny
- 461
- 1
- 5
- 18
0
votes
1 answer
Azure DevOps SaaS - Unable to distinct group and team name in REST API
I am trying to retrieve only the groups of an organization , example for a project in Project settings -> General -> Permissions , I would like to retrieve only the Type as "Group" . When using the below REST API, I get the Type "Team" also .
Rest…

Joe_12345
- 589
- 2
- 7
- 19
0
votes
1 answer
Using Azure devops Rest API how to update a test case by test cases ID
Currently i can update test cases by test point ID. But in my testcases i have only testcase ID, I want to update the test cases throught rest api and using test cases ID
Using test point ID i can update the outcome (Test result) but i want to…

Zakaria Shahed
- 2,589
- 6
- 23
- 52
0
votes
1 answer
MS Subcriptions REST API returns empty value
I register a new app to my Azure tenant and then use the Subscription REST API below to get my subscription id. But, it returns an empty value.
Is this a bug of the REST API, or the app is missing some required…

NoName
- 877
- 12
- 28
0
votes
1 answer
Not able to connect to azure from postman application - 403 forbidden error
I'm trying to GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups?api-version=2020-09-01 using postman application from my desktop.
For Authorization I passed the bearer token acquired from the response.
However getting…

SONIA_2907
- 46
- 6
0
votes
1 answer
Is it possible to get a team name of a user who authored a pull request
I am looking for a way to get a team name of a user that authored a pull request and can't seem to find way to get this information. Found a few examples that use graph to get the memberships but I don't know how to map those to team names. I have…

Redline1111
- 131
- 2
- 11
0
votes
1 answer
Query Application Insights via Azure REST API
I'm trying to query application insights via their REST API. I'm stuck on getting a token.
I have created an API key using the API Access blade in Azure Application Insights:
That gives you an Application ID and an API Key.
I have populated…

FunkMonkey33
- 1,956
- 2
- 16
- 24
0
votes
1 answer
InvalidRequestException when updating task group via REST api
I am trying to update a TaskGroup on our on-premise Azure DevOps 2020 server using REST api, but I am getting 500 InternalServerError
{"$id":"1","innerException":null,"message":"Input TaskGroup parameter cannot be…

horato
- 65
- 7
0
votes
2 answers
Create b2c user to sign in with username from graph calls
I'm trying to create b2c user to sign in only with their user name without entering email address using Microsoft Graph calls.
Usually I use below graph call to create users in normal tenant:
POST https://graph.microsoft.com/v1.0/users
Content-type:…

Madhu77
- 17
- 5
0
votes
1 answer
Azure SDK DotNet equivalent of Az Resource Update
I am looking to do a az resource update using C# code, either using a http request to ARM or any SDK feature.
I am looking to reconcile an AKS cluster by using az resource update.
How can I do this via C# code?

Jerald Baker
- 1,121
- 1
- 12
- 48
0
votes
1 answer
How to get project iterations through the Azure API
I am converting an Azure CLI app to use REST API in Python
In the CLI I can get, update project iterations:
https://learn.microsoft.com/en-us/cli/azure/boards/iteration/project?view=azure-cli-latest
However, I can only find team iterations in the…

Shawn
- 3
- 1
0
votes
1 answer
How to access Azure REST APIs without a Service Principal?
How do I generate a bearer token for my personal identity, like the Microsoft web page does here when you click Try it and log in with your personal credentials?
For example, I would like to generate the bearer token programmatically in a…

successhawk
- 3,071
- 3
- 28
- 44