232 questions
1
vote
1
answer
172
views
Azure CDN Rest API Returns an empty array of Profiles and Endpoints
I'm currently working on an Azure Front Door Application that contains cache. The idea is that we have a webhook that would call our API to fetch the endpoint and purge the cache.
I've already added ...
1
vote
2
answers
72
views
Azure ComputeSku with null costs
I would need your help to understand, why while getting a list of Azure ComputeSku, all of them has its "costs" field set to null (see my screenshot below). It happens with any of my ...
0
votes
1
answer
65
views
Azure Managed SQL Server Connector - How to use with Logic App System Assigned Identity to Connect
I am trying to work out which values I need for those fields marked with a black line - I want to use the logic-app system assigned identity if possible.
The docs I've found don't explain or give an ...
0
votes
1
answer
283
views
How To Configure An Azure Data Factory Service And Azure Managed SQL Instance To Work On The Same Network As An On Prem SQL Host
I have an On Prem SQL host behind the company network.
I also have an ADF configuration that is currently used for ETL orchestration involving that particular host.
I want to set up an Azure SQL ...
0
votes
2
answers
412
views
Cannot get Azure subscriptions using Azure Python SDK
I can get Azure subscriptons list using REST API.
However, when I'm switching to Azure Python SDK, there seems to be some problems.
This is the code so far:
from azure.identity.aio import ...
0
votes
1
answer
487
views
Unable to start integration runtime using web activity in ADF
I have an ADF instance with all required privileges to call Azure Management API from pipeline. I am trying to start and stop an integration runtime using a web activity
The get methods are all ...
0
votes
2
answers
1k
views
Why does System Assigned Managed Identity not have access to Azure management API?
I was attempting to follow the tutorial here - https://medium.com/azure-tutorials/custom-queue-mechanism-for-data-factory-pipelines-a1b0809ec790
But I can't seem to get the correct authentication. ...
0
votes
1
answer
192
views
Azure CostManagement Export Api createOrUpdate returns 401
I am invoking the different endpoints of the CostManagement Export API. I am successfully using the Get and Delete methods, but when I try to Create an export I get: {"error":{"code&...
0
votes
1
answer
230
views
Creating a Microsoft Graph subscription for notification to security/alerts_v2 fails
When I attempt to create a Microsoft Graph subscription for notification to the security/alerts_v2 endpoint, the subscription creation fails with an invalid changeType attribute. I have tried multiple ...
0
votes
1
answer
457
views
How to Delete a Role Assignment in Azure using REST API
I am trying to delete a role assignment at the root level in Azure using the REST API. Specifically, I want to remove the Owner role from a user with the email address "[email protected]" I ...
0
votes
1
answer
126
views
Using C# to bind a new certificate for Custom Domains from Azure Api Management Service
I have tried to get the APIM Client and I figured it out that with apiManagement.Service.HostnameConfigurations I can get some information about what is it inside Custom Domains, information about the ...
0
votes
0
answers
168
views
Get remaining characters for Azure Translator Service via API
I'm using the Azure Translation Services and want to know, how many characters in my current limit/budget/monthly I used and how many are left (in a free plan e.g.).
I tried using Microsoft.Commerce/...
0
votes
0
answers
95
views
Can't get headers from Azure Durable API
I'm calling Azure durable function management API from my client-side code. Since it's a CORS request, the code won't let me see any relevant headers (I need the continuation token because I need to ...
0
votes
1
answer
250
views
Azure SQL Database ExportOperationResults is always InProgress
Exporting databases using Microsoft REST API (https://learn.microsoft.com/en-us/rest/api/sql/2022-05-01-preview/databases/export?tabs=HTTP) and exporting results is a success for all the databases. In ...
0
votes
1
answer
1k
views
Azure Management API, when grouping daily costs, what timezone is used?
I am trying to use the Azure Management API to determine an Azure Subscription daily costs.
The documentation of the query I am running is here: https://learn.microsoft.com/en-us/rest/api/cost-...
0
votes
1
answer
287
views
AttributeError: 'MonitorManagementClient' object has no attribute 'location' Microsoft Azure
trying to attain a list of regions/locations from Microsoft Azure that contain the term 'health'. A function that will analyze a .csv file.
I used the following function:
regions = monitor_client....
0
votes
1
answer
181
views
Interrogate capabilities of a Logic App connector (actions, triggers)
I found how to get a list of Logic App connectors (Microsoft.Web locations/managedApis). Which gives back some JSON like below (for Gmail for example). Is there a way to understand the capabilities of ...
0
votes
1
answer
635
views
Azure WebsiteManagementClient for Python: how to get web app by ID?
I'm using version 7.0.0 of azure-mgmt-web for Python. I know we can fetch a site with:
from azure.mgmt.web import WebSiteManagementClient
web_client = WebSiteManagementClient(...credentials here...)
...
0
votes
1
answer
3k
views
How to get the role assignments of a resource through Resource Graph API?
I want to use the Azure Resource Graph API to get the role assignments of a resource (who are owners, contributors, etc.). That is, I want to create a query that finds the role assignments for a ...
0
votes
1
answer
552
views
Azure Management API: HTTP Post StatusCode: 403, ReasonPhrase: 'Forbidden'
I am receiving StatusCode: 403, ReasonPhrase: 'Forbidden' for an HTTP Post:
URL: $"https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/...
0
votes
2
answers
805
views
how to get informations about operations rest api on azure storage account
i tried to get all operations (Get, Put, Delete)etc.. on a specific storage account but I don't get all information (on which container, on which blob)..
I tried these two api :
1)
https://management....
0
votes
1
answer
1k
views
How can I resolve an unauthorized error when using Azure Management API?
How can I resolve an unauthorized error when using Azure Management API?
Note:
I would prefer to resolve this programmatically (in code) instead of running commands/scripts.
Objective:
I need to ...
1
vote
1
answer
789
views
Use Azure AD login to connect to another Azure endpoint (reuse token?)
I'm wondering whether it's possible to reuse an accesstoken or idtoken after logging in to Azure AD. My application asks for Azure AD credentials and I want to reuse those to push telemetry data to an ...
0
votes
1
answer
714
views
How to get monthly cost data from Azure using Python SDK?
I'm trying to get monthly cost data from Azure using Azure SDK for Python, but Microsoft Documentation seems very confusing and outdated, without examples. I need to create a monthly evolution chart ...
0
votes
1
answer
227
views
is there any rest api url for get all virtual machine compliance status?
I am using this api url for getting virtual machine compliance status, however its giving me 202 Accepted response.
I have attached image for reference, I wanted to get these information through api.
0
votes
1
answer
1k
views
simplest way to access logic app workflow history via management.azure.com API
I need to access logic app history.
My understanding is this needs to be done via the azure management api:
API URL:
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{...
0
votes
1
answer
423
views
Azure policy - liquid template - convert milliseconds to formatted date
How can I convert milliseconds date to formatted date.
I tried the following :
<set-body template="liquid">
{
"date" : &...
0
votes
1
answer
685
views
Get network interface from VirtualMachineScaleSetResource
I want to list all VMs in a Scale Set and print the VM name, and private and public IP using the C# management SDK. Sofar I have the following code:
using Azure.Identity;
using Azure.ResourceManager;
...
2
votes
1
answer
886
views
developer portal in azure management api is not correctly working
Why it is that when clicking on API, it is displaying the popup as shown in the picture, rather then going to the API page?
I have publish the project and reset content but then also no change?
How ...
0
votes
1
answer
5k
views
Office365 management API - Unable to subscribe
I want to capture the file operation events in OneDrive. So I created a tenant in azure and attached an App with it. I provided the necessary permissions to the app.
I am able to get the access token ...
0
votes
1
answer
167
views
Update an App Service Certificate with Azure Management SDK
I'd like to build an application capable uploading a new certificate, deleting old TLS bindings, and creating a new TLS binding for App Service sites.
I am using the Azure Management SDK (Azure ...
0
votes
1
answer
658
views
Azure API Management - Etag for an operation
We are new to Azure API management. We are caching Dataverse master entities web api calls and looking to see how we can add ETag as part of response headers in Azure API Management(Backend call ...
0
votes
0
answers
665
views
How to get Azure Availability Zone provided region while creating Virtual Machine using .NET SDK
I am trying to get Availability Zone provided the region information using .NET SDK but I am not able to get the exact same information which I can see on Azure while creating virtual machine from ...
0
votes
2
answers
248
views
Azure REST API: Stop a classic service
I'm trying to invoke Azure REST API from Powershell to start/stop a classic service.
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("...
0
votes
1
answer
395
views
How to troubleshoot an management.azure.com rest api call
I´m invoking https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools?api-version=2021-07-12 and randomly fails, returning a "500 Internal ...
0
votes
1
answer
760
views
C# .Net Azure Management REST API - Add App Service Managed Certificate - Response = Not Found
I can use the Azure Management REST API to add a custom domain to my Azure App Service. I also need to secure that custom domain by adding a App Managed Certificate to my app service.
static string ...
0
votes
1
answer
1k
views
Get All subscriptions per tenant in azure
I want to have a Logic App that gets per tenant all its subscriptions.
I understand that there is a rest API for that purpose:
GET https://management.azure.com/subscriptions?api-version=2020-01-01
as ...
2
votes
2
answers
3k
views
Set Response Header With remaining-calls Azure API Management
I'm using Azure API Management with some rate limiting based on subscription. I need to send to the user in the response headers the number of remaining calls. I know that I should set some values in ...
1
vote
0
answers
410
views
Unable to Create Pool using Azure Batch Management Library with ServiceClientCrenetials generated via AzureCredentialsFactory
I am using this documentation to assign a managed identity to my Batch Pool. For simplicity I do not include that assignment in the examples below as the issue is not tied to that but rather to ...
1
vote
1
answer
1k
views
Is it possible to authenticate Azure Management .NET SDK with InteractiveBrowserCredential?
I have a script to build resources for Azure. Currently, I’m using a service principal, but ideally I’d like to use my Active Directory login instead since we are going to open the script up to a ...
0
votes
1
answer
128
views
Is there an API endpoint to read, create and update connection settings for a bot channels registration?
There is an API call to manage a bot channel registration:
https://management.azure.com/subscriptions/{{subscriptionId}}/resourcegroups/{{resourceGroupName}}/providers/Microsoft.BotService/botServices/...
0
votes
2
answers
3k
views
Is it possible to check whether an azure app service is running using the Azure Management API?
We have a demo application that is a docker image deployed to a Linux App Service on the Free App Service Plan SKU. It is used infrequently and as such it aggressively spins down. On the next ...
0
votes
1
answer
929
views
How to get the role definitions by Azure management API which can only be assigned at "Resource" scope?
How to get the role definitions by Azure management API which can only be assigned at "Resource" scope?
When executing following query, all the role definitions are returned by the API:
GET ...
0
votes
1
answer
433
views
Restart an azure function app which is not under Azure AD security
I was trying to restart that application by using
https://management.azure.com/subscriptions/{subscription}/resourceGroups/{rGp}/providers/Microsoft.Web/sites/{appName}/restart?api-version=2019-08-01
...
1
vote
1
answer
182
views
Python while loop token not updating
I am exploring azure management APIs. The ADF monitor pipeline, returns only 100 records at a time. So I created a while loop, but for some reason, not sure what, not able to get the next token.
ct = ...
0
votes
1
answer
240
views
Error when trying to fetch azure subscription rate card and consumption usage
I am trying to fetch ratecard and uage for my pay as you go subscription. However consistently getting exception. Tried multipple options but none are working. Option 1 used to work flawlessly in the ...
0
votes
1
answer
922
views
Microsoft Azure Cloud service management API fails with 401: Unauthorized error?
We are integrating the Role Assignments - List API from Microsoft Azure Cloud Management APIs, Link to documentation: https://learn.microsoft.com/en-us/rest/api/authorization/roleassignments/list#...
1
vote
1
answer
179
views
How to programmatically scale Azure Cloud Service (classic) roles
Based on this how-to for scaling Azure app services programmatically:
Is it possible to scale Azure app services programmatically,
I am trying to recreate this for Azure Cloud Services (classic), ...
1
vote
1
answer
191
views
ArgumentNullException when attempting to create KeyVault via Azure Management Fluent Api in Azure Function
I've added a service bus triggered function to create a key vault via the Microsoft.Azure.Management.Fluent library.
The function runs fine locally and creates a new key vault within my MSDN ...
0
votes
1
answer
871
views
How to get Time zone based on region in azure using azure .Net SDK/Fluent API/ REST API?
I am doing auto-shutdown for VM using ARM template with .Net core Now I want to show dropdown for time zone which azure portal show based on VM deployed in which Region .
I am attaching screenshot.