azure-management-api

How does “simultaneous” mode work when changing Azure role instance count only?

五迷三道 提交于 2019-12-24 14:43:08
问题 I'm staring into description of Change Deployment Configuration Azure Management Service operation. There's Mode element which can be set to Simultaneous . Suppose I only want to change instance count for a specific role. AFAIK the only way to do that is to obtain the current deployment configuration (using Get Deployment operation), locate the role in the obtained XML, locate the attribute responsible for instance count, change that attribute and then use the altered configuration in Change

Microsoft 365 management API, currentStatus returns yesterday “statusTime” field

风格不统一 提交于 2019-12-24 09:18:44
问题 We're working on migrating to Office365/M365 and when we make an API call to the Microsoft Management API for status, the statusTime field is yesterday. Any ideas why? https://manage.office.com/api/v1.0/(tenant)/ServiceComms/CurrentStatus Here's a partial json from the Exchange Online status: "Status": "ServiceRestored", "StatusDisplayName": "Service restored", "StatusTime": "2018-10-01T18:49:36.4528522Z", "Workload": "Exchange", "WorkloadDisplayName": "Exchange Online" StatusTime is exactly

Azure Lake Store : missing Access-Control-Allow-Origin from response header

南笙酒味 提交于 2019-12-24 06:49:48
问题 When trying to call my azure data lake store space and list all directories , It fails to return any results during to missing CORS .The problem that I can't find any way to give the Azure DatalakeStore the CORS policy ( Not the same as Azure Storage ) Any workaround or solution for this ? 回答1: Some of the services in Azure still doesn't have CORS support (like DocumentDB and as you have experienced seems for ADLS as well). One thing that can be tried before the same is provided by azure is

How to authenticate Azure Service Management Requests via AAD

我只是一个虾纸丫 提交于 2019-12-18 03:39:09
问题 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 recommended two lines of code to acquire the token: var context = new AuthenticationContext($"https://login.windows.net/{tenantId}"); var result = context.AcquireToken("https://management.core.windows.net/", clientId, new Uri(redirectUri)); , but it

Removing the user from Azure subscription programmatically (C#)

六月ゝ 毕业季﹏ 提交于 2019-12-13 08:25:09
问题 I want remove the users from Azure subscriptions programmatically. We have lot of ways in the web to remove the AAD user but I could not find source to remove the users from Azure subscriptions. Can we remove the user from Azure subscriptions programmatically? How can we do this? 回答1: Have you tried working with the Azure API Reference? Specifically authorization? You may be interested in the Role Assignments API. Here's a support article regarding those assignments and how to utilize the API

How to set SSL bindings on Azure Web Apps via Management Rest API?

非 Y 不嫁゛ 提交于 2019-12-13 02:19:04
问题 We are building automated deployment on Azure using the WebSite Management SDK. We currently managed to add hostnames to a Web App via code. using (websiteClient) { var configuration = websiteClient.WebSites.Get(webspace, WebsiteName + "-" + Version, new WebSiteGetParameters()); configuration.WebSite.HostNames.Add(ClientName + "." + DnsZoneName); var response = websiteClient.WebSites.Update(webspace, WebsiteName + "-" + Version, new WebSiteUpdateParameters() { HostNames = configuration

Using management certificate with azure REST API

纵饮孤独 提交于 2019-12-11 04:03:01
问题 I'm using azure service management REST API in my application. I uploaded the management certificate on azure and have a copy in local. I keep the certification in a separate folder (AzureCertificate) in the application itself and referring to that location. e.g: string certificatePath = Server.MapPath("~/AzureCertificate/") + certificateName; X509Certificate2 certificate = new X509Certificate2(certificatePath); AzureCertificate -- Folder name certificateName - MyCertificatieName.cer it works

Office365: Unauthorized response when accessing the management activity api

强颜欢笑 提交于 2019-12-10 09:51:48
问题 I am having trouble accessing the management activity API that has recently been rolled out. Though I believe I have correctly configured my app Yet when I make the following API call POST https://manage.office.com/api/v1.0/<tenantId>/activity/feed/subscriptions/start?contentType=Audit.SharePoint BODY { "webhook" : { "address": "<myServerURL>", "authId": "o365activityapinotification", "expiration": "" } } RESPONSE 401 { "Message": "Authorization has been denied for this request." } What am I

How to register resource providers using Azure fluent resource management?

﹥>﹥吖頭↗ 提交于 2019-12-08 07:29:06
问题 I'd like to fully automate my resource creation process. Unfortunately brand new subscriptions don't have a few resource providers registered by default. E.g. SQL. That's easily solved as described here: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors#noregisteredproviderfound However this only outlines methods using either manually using the portal or using Powershell. I'm looking for a solution using Microsoft.Azure.Management

Azure rest apis to ListKeys of classic storage account

一个人想着一个人 提交于 2019-12-02 17:38:28
问题 I wanted to retrieve the access keys of classic storage account. I found this online POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys?api-version=2016-12-01 But this is not applicable for classic storage account. When I replace the Microsoft.Storage to Microsoft.ClassicStorage, it throws the following error { "error": { "code": "InvalidRequestUri", "message": "The request uri