Questions tagged [apim]
230 questions
0
votes
1 answer
LocalHost CORS failing in Preflight for Azure APIM
When trying to communicate to my Azure APIM endpoint from localhost, I am getting a CORS preflight fail. I've modified the policy on both APIM and the .Net Core API itself but I'm still not having luck. The below is how my policy looks on the 'All…

Kyle Watts
- 1
- 1
0
votes
1 answer
Azure APIM Policy to authenticate App Configuration service using access keys
I'm trying to authenticate Azure App Configuration Service with access keys in APIM policies.
Can someone help how we can authenticate Azure App Configuration Service using Access keys in APIM policies.

Madhu
- 415
- 1
- 4
- 15
0
votes
2 answers
Use same subscription key for APIM instances in Azure
we are using APIM premium version and ours is a active-active multi region setup. The problem we are facing is when one region UI calls another region API the calls failing because the subscription keys for the APIM on the both the region is…

threeleggedrabbit
- 1,722
- 2
- 28
- 60
0
votes
1 answer
Azure Liquid template - how to get specifc value from nested json in Apim policy
Via a liquid template in Azure APIM I want to transform below json to a different output, taking only certain values from the 'data' element, e.g. the 'GROUP(tranid)':
Sample JSON
{
"result_error": false,
"result_errorDescription": "",
…

Thomas M
- 31
- 4
0
votes
0 answers
Azure APIM - XML to JSON Conversion
I am trying to figure out how to properly use the XML to JSON conversion in the Azure APIM Policy Editor. I've seen dozens of examples where all that's identified is this:

jdarling20
- 13
- 1
- 4
0
votes
1 answer
Azure API Management and Protect Backend Web API
We have an existing API that is secured by an initial username & password call to xxxx.com/api/vi/auth/token that returns a bearer token to be included in all future calls to the API. This API is live with some trusted apps.
We now have a…
0
votes
0 answers
Azure APIM response headers turning to lower case
Response headers set at Azure APIM, turning to lower case instead of preserving the exact header name. Below is the APIM policy to validate JWT token. Upon JWT validation unsuccessful due to invalid token or expired token, setting header…

Paramesh Korrakuti
- 1,997
- 4
- 27
- 39
0
votes
1 answer
Azure API Managment User Assigned Identity Custom Domain KeyVault
I have the following issue:
Steps (Azure portal):
Create Azure APIM (Devloper sku, internal vnet, no system assigned managed identity!)
Create own Managed identity (user managed identity) - UAI
Create KeyVault
UAI: Create Role Assignment for UIA…

djflocko
- 49
- 1
- 5
0
votes
1 answer
Set tag on Azure APIM API from CLI
I am searching for a CLI way to set tags on an azure apim api instance. I am talking about an API tag, which seems to be different from tags on that api-service or other api resources. This means that (to my knowledge)
Get-AzTag…

Willy Van den Driessche
- 1,619
- 15
- 23
0
votes
1 answer
XML Transformation in Azure APIM
Suppose I have a XML like:
Note: This is only 4 rows what I have provided but it is having so many rows (B tag).
I want to transform it…

Rishav Raj
- 93
- 5
0
votes
1 answer
How to import a specification into a versionset of Azure APIM using Azure-CLI
I'm trying to update an existing version in a versionset inside an Azure API Management service with a new specification using Azure CLI.
I know it does support importing it as an API without a versionset:
az apim api import `
--path "/as" `
…

Andries
- 175
- 1
- 9
0
votes
1 answer
Custom portal: server-side sign-in
We have been using APIM since 2018. As the legacy portal has been deprecated and we wanted more freedom, we decided to skip the default APIM portal altogether, and to embed the APIM API methods in our own website, using Postman as the documentation…

Vadim Berman
- 1,932
- 1
- 20
- 39
0
votes
1 answer
Azure APIM - Policy - Cannot get valid context - Error 500 - Object Not Set to Instance of Object
Referring to this page: https://learn.microsoft.com/en-us/azure/api-management/policies/send-request-context-info-to-backend-service
I am trying to get the User.Group using a policy such that I can restrict access to CRUD operations based on…

Damoven
- 5
- 1
0
votes
1 answer
Deployment failed. Correlation ID: x. API with specified name 'x' already exists
Im getting this error:
Deployment failed. Correlation ID: x. API with specified name 'x' already exists.
when trying to deploy an api to apim with the az cli.
the command:
az apim api import --resource-group x --service-name x --path x…

leafar29
- 301
- 2
- 5
- 12
0
votes
1 answer
How can I debug 502 Bad Gateway error responses from Azure API Management to Front Door, when the backend request is successful?
I have Azure Front Door (FD) set up in front of Azure API Management (APIM). Most requests are fine to this particular APIM backend. GET /projects is returning 502 Bad Gateway in the browser. I can see that the request from APIM to the backend is…

rorstack
- 41
- 1
- 3