2,644 questions
0 votes
0 answers
26 views
apim try it button doesn't show up
We're migrating an apim public instance to a private apim instance (vnet internal) publicly accessible via application gateway. Everything is working except the try it functionality in the developer ...
0 votes
1 answer
51 views
How to use OAuth 2.0 authorization server in API Management for all APIs? Not just the Dev portal's Test Console?
All, I had to re-write this post since there has been significant changes in the requirements. The objective is to invoke Auth0 management APIs such as /v2/users /userinfo etc.. through APIM. This ...
-1 votes
0 answers
25 views
Issue Deploying Azure APIM Fragment Policy via GitLab CLI / Terraform [closed]
I created an Azure API Management (APIM) fragment policy that defines variables for the JWT header and payload to manually generate an unsigned JWT and I tested it successfully. However, when I copied ...
-1 votes
1 answer
67 views
Which permission to list subscription on Azure tenant?
I want to read all subscription on my Azure tenant. https://learn.microsoft.com/en-us/graph/api/subscription-list gives a list of scopes/permissions. list requires Sites.ReadWrite.All on the endpoint ...
0 votes
0 answers
31 views
How to access the Tags collection in Azure APIM policies
I am working on an API, global policy for our Azure APIM. For API with a specific tag, I need to allow access to users only if they come from some IP Ranges: I have this: <inbound> <base /...
0 votes
0 answers
63 views
Export Azure APIM's API swagger to JSON format
I am managing an Azure APIM where developers creates API with CI/CD and swagger files, we accept both YAML and JSON format. In a report, I want to include a link to download a JSON format of the ...
5 votes
0 answers
201 views
Downgrading OpenAPI 3.1 generated by FastAPI to 3.0 for Azure API Management
I’m building a FastAPI application in Python. When I navigate to the /openapi.json endpoint, FastAPI generates an OpenAPI 3.1 specification. However, Azure API Management (APIM) only supports OpenAPI ...
0 votes
1 answer
58 views
Azure APIM - Create policy to restrict by subscription name
I want to restrict a given Subscription name to only a single API. I have the following policy in place, but can't get it to work. Every API call with the Subscription name's key is succeeding. I have ...
0 votes
0 answers
91 views
In Azure, how do I setup a scope for a User Assigned Manged Identity, so I can request an access token in C# with limited scope?
var credential = new ManagedIdentityCredential(managedIdentityClientId); var token = await credential.GetTokenAsync(new TokenRequestContext(new[] {"<MY-API-SCOPE>/.default"}), ...
0 votes
1 answer
82 views
OAuth2 with PKCE in ReactJS + Azure APIM + Entra ID: How to retrieve AD security groups in the token?
We’re beginners with Azure API Management (APIM) and Entra ID. Context: Users are on an intranet using Windows 11. A new ReactJS SPA needs to call our Azure APIM. Access to the backend should be ...
0 votes
1 answer
39 views
Retrieve a Certificate by Id in APIM Policy
I have a policy that is generating a JWT token based on a private key certificate. I have placed the certificate in APIM using a reference to it from Key Vault. In the policy though I can only ...
0 votes
0 answers
76 views
Azure API Management: "Value is not a valid absolute URL scheme" error when using conditional proxy URL with named values
I'm encountering an error in Azure API Management when trying to use a conditional expression to set a proxy URL based on the deployment region. The proxy URL is constructed using named values. The ...
1 vote
0 answers
168 views
How to authenticate Azure Web App using Managed Identity to APIM?
I have APIM with an AOAI backend. APIM authenticates to AOAI using a separate Managed Identity by way of the following API policy plus AOAI IAM roles: <authentication-managed-identity resource=&...
0 votes
0 answers
124 views
Exposing API as MCP Server in Azure API Manager is not passing POST body to API
I am trying to expose my API as an MCP server through Azure API Manager. The API has a POST endpoint which accepts a simple body of 2 numbers { "number1": 10, "number2": 20 ...
0 votes
1 answer
75 views
Azure API Magement: Get appid from claim
This is probably a really simple one, but I can't find any documentation. I am trying "presumably in the inbound policy" to extract the value "appid" from my JWT before it is ...