Questions tagged [azure-management-api]

Azure Management API encompasses all the REST APIs that are used to manage Azure services. It is not the same as Azure API Management which is a specific service on Azure.

188 questions
15
votes
1 answer

Get Role - Azure API returns (400) Bad Request

I have got many for the Azure management APIs to work with the code below except for the GetRole for Virtual Machines. Here is the doc for this api call: https://msdn.microsoft.com/en-us/library/azure/jj157193.aspx Here is the code that I am trying…
Jeremy
  • 414
  • 3
  • 17
7
votes
2 answers

Azure.Authenticate with interactive user login (Microsoft.Azure.Management.Fluent)

I used to manage Azure resources an old preview version. The authentication worked something like this: // Authorize this.AuthenticationResult = this.Authorize(); this.Credentials = new TokenCloudCredentials(config.SubscriptionId,…
7
votes
1 answer

How to authenticate Azure Service Management Requests via AAD

I've tried 3 ways with no result: According to this article https://msdn.microsoft.com/en-us/library/azure/ee460782.aspx I've registered new web application in AAD with permissions to Access Azure Service Management API (steps 1-9) and written the…
6
votes
1 answer

How to turn on/off Azure virtual machine via Azure management api (rest)

I want to create a start/stop Azure VM bot for myself. What I want to do is to have a slack/telegram bot that listens to messages and starts/stops my VM by commands /start/stop. What REST api command should I use to do that? What is needed: Some…
ALEX TRUSHKO
  • 65
  • 1
  • 5
6
votes
1 answer

Azure Management API - 429 Too many requests

I built a web app that does queries to the Azure Rest API and creates resources (WebApp, 2 MySQL Databases, Adds a Hostname, Add an SSL Cert...) All this queries go…
AAlferez
  • 1,456
  • 1
  • 19
  • 46
5
votes
1 answer

Cannot update Azure Deployment when it is using Reserved IPs

I’m trying to install a diagnostic extension via API into an existing Azure cloud service. Cloud Service has a reserved IP assigned. I’m getting “A reserved IP cannot be added, removed or changed during deployment update or upgrade.” when doing so…
Igorek
  • 15,306
  • 2
  • 44
  • 88
4
votes
1 answer

Authentication token doesn't have enrollment level access

Background I am making a restful API call to Microsoft's Azure Consumption endpoint as detailed below. https://docs.microsoft.com/en-gb/rest/api/consumption/reservationrecommendations/list However I am always presented with the below…
Dan Cundy
  • 2,245
  • 1
  • 27
  • 57
4
votes
1 answer

Not able to get new refresh token from azure AD with grant type refresh_token called with old refresh token

I am using Azure Service management API and OAuth API for generating Access token. But while making the call for grant type "refresh_token", to refresh access token it returns new access token but that response does not has new refresh token. So I…
4
votes
3 answers

Programmatically getting the list of azure virtual machine sizes

I am new to Azure management libraries for .net. How can we enumerate VM instance sizes available with respect to subscription or in general using Azure Management libraries for .Net or Rest APIs? Please suggest.
Muhammad Murad Haider
  • 1,045
  • 1
  • 9
  • 29
4
votes
1 answer

Add SSL Bindings to Azure Website through C# Azure Managmenet libraries

I'm using Microsoft.WindowsAzure.Management.WebSites 4.4.2-prerelease library to create/modify Azure WebApps. I can create the app, can change settings, can add a custom domain. Next step is to add SSL certificate. Here is how I do it: public async…
trailmax
  • 31,605
  • 20
  • 126
  • 225
4
votes
2 answers

Azure Resource Manager Template Language - resourceId(): Unable to evaluate template language function 'resource Id'

How do you correctly call the function resourceId() defined in the Azure Resource Manager Template Language? Context /// - Azure /// - Azure Resource Management /// https://msdn.microsoft.com/en-us/library/azure/dn578292.aspx /// /// - Azure…
3
votes
1 answer

Authenticating Against Azure Magment API SDK with MSAL.NET

Trying to Authenticate against Azure Management API using their SDK. I can get the user authenticated with the MSAL.NET SDK. But when I try to pass the Bearer token for ClientCrendentials I can and AuthorizationFailed Message. I've enabled…
user9318309
3
votes
2 answers

How do I setup ContentType of Azure Blob correctly?

In my Web API I use the following code for creating the blob: var container = Client.GetContainerReference(DefaultContainer); var blockBlob = container.GetBlockBlobReference(blobName); …
3
votes
1 answer

Manage AzureSearch via (Rest) API

I’m trying to create a tool which should scale the „Replicas“ and „Partitions“ of an Azure Search component. For that, I read the following article from Microsoft: https://docs.microsoft.com/en-us/rest/api/ Right now, I am having trouble…
3
votes
1 answer

Api Management : can you groupe the operation by controller?

my question is about the displaying of the operation list in Azure Api management portal, i did an import from Swagger 2.0 in swagger i had the operations grouped by controller: and after then import in the portal : any ideas ?
1
2 3
12 13