Amit Srivastava Thanks for posting your question in Microsoft Q&A. You can create an API with Web service URL points to Azure App Configuration (`https://<appconfig-name>.azconfig.io) and add an operation for PUT method with template parameters as shown below (refer doc: Create an API).
Add a policy to get authorization token and set it in Authorization
header before calling backend API and also set query parameter api-version
. Follow other thread for the detailed instructions related to this.
<authentication-managed-identity resource="https://azconfig.io" ignore-error="false" output-token-variable-name="msi-access-token" />
<set-header name="Authorization" exists-action="override">
<value>@("Bearer " + (string)context.Variables["msi-access-token"])</value>
</set-header>
<set-query-parameter name="api-version" exists-action="override">
<value>1.0</value>
</set-query-parameter>
While calling API, make sure you set content type as application/vnd.microsoft.appconfig.kv+json
and pass the request body in the format specified in Set key API. Note, the above code snippet is a sample policy for your reference. If you face any issues, let me know. I hope this helps with your question.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.