Does azure-openai-emit-token-metric policy at API Management Service support cached tokens?
The Azure API Management Service recently updated the azure-openai-emit-token-metric to support the GPT-4o model. Does this policy support the recording of Cached Tokens? According to the official documentation on MS Learn, it appears that this feature…
APIM Product Subscription Key not being Retrieved in Azure Portal when Testing
Anyone know if anything has changed to cause this in APIM? We have seen this with multiple clients To work around, you have to key in the subscription key. Otherwise, you can get it to collect it again by clicking away e.g. click on Products, then back…

How to obtain the request size in APIM integrated with AOAI.
#Problem RequestSize cannot be obtained in APIM and is 0 bytes, which means that the "quota" policy and alerts in metrics cannot be executed as expected. #What I want to solve I want to set the RquestSize. #Background When using AOAI, I decided…
Azure APIM get-authorization-context returns cached expired token
I have a credential provider with two connections setup identically, however the original connection began to return an expired token a month ago and has been doing that ever since with the exact same issued and expiration date of when this problem first…
What apiVersion should be used to create Microsoft.ApiManagement service/properties resources via ARM templates?
The Azure API management portal recommends updating the API management minimum API version to 2019-12-01 or higher. More detail is provided here:…
Understanding APIM's Mechanism for Importing Open API Specification Files via URL
When you import an API to APIM via azure cli you can either provide the path to your Open API Specification (OAS) file (--specification-path) or you can provide the URL to the OAS (--specification-url). Question 1: Why is importing OAS via URL able to…
Failed to terminate Azure Standard v2 APIM
Hi, I tried to terminate my Standard v2 APIM instance but failed. Below is the error output: (TerminationFailed) Unable to terminate Sku V2 API service at this time. Please open a support case for your API management service using the Azure portal and…
Does management group descendants API return only the active entities?
Hi team, We have a query if the below query list only for ACTIVE ENTITIES? If not, is there an API to list only ACTIVE entities under management groups ? GET…
Azure Api Management url rewrite for dynamic path
Hi I'm having problems rewriting an Url path. My Apim looks like: https://sample-apim-int.azure-api.net/download/ The backend: https://samplebackend.net/ I want to be able to redirect from:…
Can I use JWK having modulus(n) and exponent(e) to validate JWT in Azure Api management
From validate-jwt policy reference https://learn.microsoft.com/en-us/azure/api-management/validate-jwt-policy <issuer-signing-keys> <key>Base64 encoded signing key | certificate-id="mycertificate" | n="modulus"…
Failure in moving the API Management service between resource groups within your Azure subscription.
After passing validation checks to move my API Management instance between Resource Groups where the API Management instance is remaining in the same Region "West US 2" The error message you're encountering indicates that there was a failure in…
Is API Management Standard v2 with VNet integration able to use VPN Connections
We are currently planning the usage of Azure API Management. We have the following requirement: Privately connect form APIM to Backend API Services Backend API Services are located in the same VNet, peered VNets and external Datacenters connected via…
Can't access second API when first was recently used within same APIM service
I have two APIs in my APIM service. Each API endpoint has running Open AI service behind. When I'm using first endpoint (in my AI chat app) with one model deployed - everything is ok, but after that when I try to use another model in my chat app (I can…
Azure Api Management Self Hosted Gateway HTTP2 issue
Hello, I am trying to connect the APIM to the regular (non-web) Grpc .Net backend using a self-hosted gateway, however, I see in the APIM logs that the HTTP version is downgraded from 2.0 to 1.1 when communicating with the backend. APIM is the Premium…
Error creating API Management using the same name
Hi: After deleting an API Management and checking that it is not found as "Soft-Deleted" when I try to create it again Terraform ends up giving an error. I have verified that the APIM has been deleted and purged, so the AzureRM provider should…
API call via Logicapp to external system, should these api calls go via apim
API call via Logicapp to external system, should these api calls go via APIM?
How to access the API Center to get the Metadata and APIs through Azure function - Getting 500 Internal error
Hi, I am accessing the Aure API Center through its APICenterURL/apis aswell as APICenterURL/status from Azure function python code. Resolved the Authorization error by passing the APIKEY providing the subscription key of the api management. But fails…
How to validate OpenApi json spec and avoid errors on importing stage?
Hi Hoping You are doing well. I have simple question. In the documentation (https://learn.microsoft.com/en-us/azure/api-management/api-management-api-import-restrictions) it is mentioned that Azure has more strict requirements and some limitations for…

Add HSTS to an Azure API Management Service
On Azure, I created a new API Management Service and behind it I connected all the APIs. After a penetration test, there was only one vulnerability detected from the security company that is No HSTS Header observed. The HTTP Strict Transport Security…

How to specify the x and y values of a ES256 JWK inside issuer-signing-key of validate-jwt in azure APIM
Hi Team. I'm trying to make a request to a JWKS url and fetch the JWKs and store it in a context variable Identified the key from the set of JWKs by matching the kid of the JWT with each kid from above fetched set of JWKs. I have identified the key which…