Questions tagged [azure-rest-api]

320 questions
2
votes
1 answer

How to list the files with content that are in azure repo using REST API

I am referring this link. https://learn.microsoft.com/en-us/rest/api/azure/devops/git/items/get?view=azure-devops-rest-6.0 I require assistance in forming the api link for the below scenario. List all the files (with content) that are in a…
PriyaK
  • 83
  • 4
2
votes
2 answers

Authenticating to Azure in Go using REST API

I am trying to authenticate to Azure service management / graph API using golang. Using purely REST APIs. No matter what I do, I always end up with error: {"error":"invalid_request","error_description":"AADSTS900144: The request body must contain…
Sumesh
  • 123
  • 2
  • 13
2
votes
2 answers

Azure Consumption Usage API - Filter Not Working

I have an issue trying to filter usages for Azure Consumption, as specified in the official documentation, based on: properties/resourceName eq '{resourceName} The complete URI is: $ConsumtionUsagesUri =…
bozx
  • 53
  • 4
2
votes
2 answers

How to use Azure App Configuration REST API

Trying to figure out how to use Azure AppConfiguration REST API (mostly to retrieve and create key-values). So far I found two sources of information: Configuration Stores REST API docs and this GitHub repo Azure App Configuration. How these two…
Svetlana
  • 163
  • 1
  • 15
2
votes
1 answer

Python3 requests module PUT empty file

Using the Python3 requests module and the PUT Blob Azure Rest API to upload a file into Azure storage: file_name = "testfile.txt" url = f"https://.blob.core.windows.net/test/{file_name}?sv=" with open(file_name, 'rb') as…
2
votes
0 answers

Is there any way to validate AZURE permission levels through API

Normally in AWS and GCP, there are API calls to validate their assigned user permission levels. Eg:- User has Cloud SQL Client role in GCP and if the API call is executed with permission cloudsql.instances.get, it will retrun whether the permission…
2
votes
1 answer

Find Attachments in Azure DevOps REST API for deletion

When I submit an Attachment to the Azure DevOps REST service (create), is there a place I can go to visualise all of the attachments in there? Or is my best course of action to just send a GET which will give me the list? My problem then…
2
votes
1 answer

Azure API - how to find out if a VM is running or deallocated

I am trying to generate a report of usage on a calendar and the missing metric is running/stop VS deallocated time. Looking at the API documentation there does not seems to be a straight forward way to get this information from neither the vm api or…
2
votes
0 answers

How to set current user in Azure Blockchain workbench through REST API?

I am new to Azure blockchain workbench. I have created an application. Now I am trying to preform operations through REST API. I can create users using POST /api/v1/users. I get the userID in response. I am also able to verify this using GET…
Leena
  • 703
  • 1
  • 12
  • 21
2
votes
1 answer

can I change Os profile in existing virtual machine using azure vm rest api (PUT)?

Try to update OsProfile after Virtual Machine is migrated from on premise to azure cloud because I need to install provisionVMAgent under osProfile ? Using this API Version- Reference Url for APi…
2
votes
1 answer

Azure DevOps REST API : Is there a way to show all fields of a workitem by running a WIQL through REST API

I get only the workitem ID with following rest api https://dev.azure.com/{organization}/{project}/{team}/_apis/wit/wiql/{id}?api-version=5.0 response: enter code here "workItems": [{ "id": 4, "url":…
1
vote
2 answers

Variable Group Creation using API in Azure Devops

I am trying to create a variable group in an Azure DevOps project using the REST APIs and Python scripting. The API used is: `POST https://dev.azure.com/{organization}/_apis/distributedtask/variablegroups?api-version=7.0` The payload in use is…
vsk95
  • 23
  • 6
1
vote
2 answers

Azure Resource Manager REST API : appservice plan availables SKUs

When you create a new appservice plan you need define the wanted SKU (size/tiers) https://learn.microsoft.com/en-us/rest/api/appservice/app-service-plans/create-or-update?tabs=HTTP How get the list of availables SKU sizes/tiers definitions with…
Fab
  • 29
  • 3
1
vote
1 answer

What are the parameters to be passed in this Azure Storage account containers rest API?

API link: https://learn.microsoft.com/en-us/rest/api/storageservices/list-containers2?tabs=azure-ad#Request If I try without headers (token), I'm getting the below error:
1
vote
2 answers

What's wrong with the OData types in an Azure REST API Insert operation?

Consider the following code. It is using the exact JSON string as the example from MSLearn with the exception of getting a numeric Partition Key and Row Key. sTableName = "timstesttable" tableSASToken =…
Tim
  • 2,701
  • 3
  • 26
  • 47
1
2
3
21 22