Is Named Values used in policy with Cache mechanism

Lily 116 Reputation points

Hi, we want to know if Named Values used in policy with Cache mechanism. If so, how do we refresh its value ?

We want to update the code used in the policy which is configured in the Name Value.

The code snippet is like this

  <set-backend-service base-url="" />
        <set-query-parameter name="code" exists-action="append">

The API_code is defined in the Name Value, Type=plain, pure value.
And the backend function app is with old_code and new_code simultaneously for testing.
The goal is to keep new_code only.

After we update API_code to the new_code and trigger API, we find APIM log is still using old_code in the URL to the backend.

The log is like this



If we remove the old_code from the function app, this call will be failed with 401 Unauthorized error.

It seems the Named Value is with cache mechanism that we can't just update and read the update-to-date value.

Is there anything we can do on this to get the new_code value ?

Need your advise.

Thank you

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,801 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 13,180 Reputation points

    I have found the following hope it helps to you

    you can manually refresh the secret cache by using the API

    0 comments No comments