Questions tagged [azure-rest-api]
320 questions
1
vote
1 answer
Add User as owner of Azure AD Group through REST API
Is it possible to add the owner to the Azure AD group from any REST API?
I think I should have one service principal and I have to generate an access token to do that.
I tried to generate access token and used below query to add owner via…

Shashank
- 35
- 5
1
vote
1 answer
Getting 400 Bad Request error while trying to move Azure resources via Postman
I am trying to move resources from one resource group to another via Postman.
I got the access token successfully by using below…

Vithika_312
- 23
- 4
1
vote
1 answer
How to purge records from Application Insights bucket?
I used to following instructions from https://learn.microsoft.com/en-us/rest/api/application-insights/components/purge, but now it produces the following error:
Purge operation on a workspace-based Application Insights resource is not supported.…

mark
- 59,016
- 79
- 296
- 580
1
vote
1 answer
Error creating role assignment using Azure REST API - Principal does not exist in the directory
I'm trying to use the Azure REST api to create role assignments, but it's giving an error:
Exception: {"error":{"code":"PrincipalNotFound","message":"Principal 83ad8925d1714aa380a8555cec2d400c does not exist in the directory ####-####-####"}}
…

TeamDman
- 649
- 6
- 26
1
vote
1 answer
List all the certificates under a azure app service
How to get the list of certificates under an Azure App service using either Azure CLI or REST API with thumbprint and expiration details?

ntn
- 330
- 2
- 3
- 10
1
vote
1 answer
Azure REST Api in PHP giving "Given value does not match HMAC header structure"
I am trying to connect to the Azure Communications API to send SMS messages using the REST endpoint.
The link to the API instructions is here: https://learn.microsoft.com/en-us/azure/azure-app-configuration/rest-api-authentication-hmac
My PHP code…

mankowitz
- 1,864
- 1
- 14
- 32
1
vote
2 answers
Azure AD add App Role in App Registration using REST API
is there a way to add Add role to existing App registration in Azure Active Directory using REST API/CLI/Powershell?
https://learn.microsoft.com/en-us/azure/active-directory/develop/howto-add-app-roles-in-azure-ad-apps

michasaucer
- 4,562
- 9
- 40
- 91
1
vote
0 answers
While HttpClient gives bad gateway error, Postman works well for same rest endpoint
I have a problem about 502 gateway error in my production server.
I try to develop an application which calls azure rest endpoints. I get response with Postman by sending the endpoint which has following…

mrtkprc
- 57
- 7
1
vote
1 answer
How to authenticate Azure REST APIs to Storage Queue with SAS?
I'm trying to add a message to my Storage Queue using the REST API provided in this document:
https://learn.microsoft.com/en-us/rest/api/storageservices/put-message
Please note that I cannot use the Azure Libraries for this task, there are no…

KevinLee
- 162
- 1
- 12
1
vote
1 answer
How to Set Directory Metadata in Azure File Share directory
I am trying to Set the meta deta of a directory in Azure File share using Powershell. Rest API Documentation is https://learn.microsoft.com/en-us/rest/api/storageservices/set-directory-metadata
If I remove the x-ms-meta-name:value from below code…

Samer Singh
- 57
- 6
1
vote
1 answer
Pagination error invalid token for Rest API Data Factory
I am trying to use rest api to do pagination as it is just sending the first page in Azure ADF going to blob storage. I am currently using AbsoluteUrl and $['@odata.nextLink'] to get over all the pages, the issue is I am getting this error, I have…

StupendousEnzio
- 35
- 2
- 8
1
vote
1 answer
What causes "invalid query definition, dataset is invalid or not supplied" querying the Azure REST API with powershell?
I've tried multiple ways to get cost management information from the Azure REST API using Powershell. I'm copy/pasting the data for my $body variable directly from their documentation. I get this error with every example they've posted.
Below is…

egrok
- 55
- 4
1
vote
1 answer
Get file names in a commit in azure devops using rest api c#
I am trying to get the list of files that changed in a commit in AzureDevOps. Is there an api to get this information ?
I am using this but not able to get the information for…

Spartan87
- 119
- 1
- 8
1
vote
2 answers
Azure search for user, groups, or service principle by name or email address via Rest API or python module (MS Graph)?
In azure when adding a user, group, or service principle to a role you can search by name and email address in the same search (screenshot below). When I look at the MS Graph APIs there are separate APIs for users, groups, and service principles (MS…

Kyle N
- 75
- 1
- 8
1
vote
1 answer
Azure create blob container using REST api and managed identity - 403 error
I am trying to create blob container under storage account using REST api
I am using managed identity (for app service, node application) to interact with storage account. This managed identity has necessary permission on resource group and storage…

Ani
- 41
- 4