Questions tagged [azure-rest-api]
320 questions
0
votes
1 answer
Unable to consume TFS 2015 API. Getting 401 unauthrozed error
I tried TFS 2015 REST API Authentication
However, it mentions request object (as I can't use javascript), not sure where is the request object or what type of it.
I am trying to pass query id and the code should execute the query and get result via…

TechTurtle
- 2,667
- 4
- 22
- 31
0
votes
1 answer
Scripting Azure Time Series Insights Data Access Policies
There exists a manual way to add users to the Time Series Insights using Data Access Policies.
Withstanding that, there is no way available to add users in bulk.
Can both the scenarios be scripted/automated using PowerShell/Azure REST API/SDK?

CodeWalker
- 2,281
- 4
- 23
- 50
0
votes
1 answer
Authentication Failed for get file using file service REST API Azure
I am trying to get a file using the shared key. I already get a list of files and directories by the shared key, but when I request to receive a specific file, I encounter this problem.
Code to generate shared key:
using System;
using…

Nikita
- 3
- 1
0
votes
3 answers
Management.Azure.com REST API Call with Odata $expand and $filter | body results not filtering
I am unable to get the desired results using a $expand and $filter in Odata on a REST API GET call. Basically looking to filter results so only properties.status = 'Closed' are returned on the GET API call. So far the expand and filters receive 200…
0
votes
1 answer
Call the Azure Resource Graph API from .NET Application
I am trying to author an application that allows a user to query a list of websites from their Azure subscription from within my application. I do not want to store their credentials in my app (nor should they want me to), but instead I would ask…

DanielG
- 1,669
- 1
- 12
- 26
0
votes
2 answers
Is it possible to see when my Azure Resources are idling?
I want to see when my resources are idling (e.g. certain resources might only be used during business hours and not used for any other background process). I'd like to do that preferably through an API call.

droft1312
- 453
- 1
- 5
- 15
0
votes
1 answer
How to retrieve App Service Plan instance name (RDXXXXX)?
I am having an issue trying to retrieve all the instance names in an Azure App Service Plan.
In Azure Monitor, if you specify a "Scope" to "App Service Plan" and look at the Metric "CPU Percentage" and then add a filter to specify the "Instance"…

FidelCasto
- 176
- 2
- 15
0
votes
1 answer
How to specify filters for Azure Compute's C# client?
I am trying to use Microsoft.Azure.Management.Compute's ComputeManagementClient to query for ResourceSKUs. But I am unable to provide the correct value for the filter parameter. Without a filter, the response is pretty large, and I want to reduce it…

Turbo
- 2,179
- 18
- 38
0
votes
1 answer
Azure REST API Consumption: puid is null/empty
I am trying to automate downloading of Azure Consumption info using REST API.
I modified sample that returns list of subscriptions.
I changed the url and I added couple of additional parameters.
import adal
import requests
authentication_endpoint…

DejanS
- 96
- 9
0
votes
1 answer
REST API for getting performance metrics for an HDInsight cluster?
I am looking for REST API that will allow me to fetch performance metrics for a given HDInsight (Hadoop/Linux) cluster -- such as amount or percentage of memory used by the cluster, cpu usage etc. But I haven't come across anything specific. The…

Dhiraj
- 3,396
- 4
- 41
- 80
0
votes
1 answer
Is it possible to programmatically create azure subscription under existing azure plan using registered Partner Center web app?
I'm CSP partner and need to do following.
Is it possible to perform operations available here:
https://learn.microsoft.com/en-gb/azure/azure-resource-manager/programmatically-create-subscription?tabs=rest
I'm using partner center registered web app…

afrosz
- 11
- 1
0
votes
1 answer
Can I change virtual machine auto shut down time after azure virtual machine created using Rest Api?
This Api on this URL can be helpfull ?
https://learn.microsoft.com/en-us/rest/api/dtl/virtualmachineschedules/get
Please Help !

Soumya Mishra
- 39
- 1
- 8
0
votes
1 answer
OAuth token for REST API call to Azure Data Lake Storage Gen 2 using service principal
I'm working on an application (one of the core microservices) which will call the Azure ADLS Gen 2 to store files (in a filesystem) for further processing by other components.
I'm trying to obtain an OAuth token for the authentication purposes by…

Sergey
- 381
- 6
- 24
0
votes
0 answers
Azure table storage REST Query doesn't show new entries
I'm building a query for a Azure Storage Account(tables in this case). I try to receive the last log entries of the last day.
The filter looks like this in the storage query builder:
{
"filter": [
{
"id": "{ID}",
"andOr": "And",
…

Ferryzijl
- 642
- 2
- 8
- 22
0
votes
4 answers
How to add team members in Azure Devops via API? Also Groups API does not work
I am new to Azure Devops and currently migrating to it. I want to add team members for my azure project via REST API. I referred the following documentation, but there is no mention of it. 'Teams' API has no functionality to add Members to it,…

Rahul Desai
- 189
- 3
- 8