Reputation: 13
Can I get a script to get Key Vault secret values from API Management Policy at run time & pass them to backend URL? I tried to search in number of blogs but doesn't get any help yet.
Upvotes: 0
Views: 515
Reputation: 785
You can use <send-request/>
policy to call the keyvault rest endpoint. In the response variable in the policy, helps to parse through the response. In this way , you can call it dynamically.
Refer the example in the below link to know about the <send-request/>
policy
https://learn.microsoft.com/en-us/azure/api-management/api-management-advanced-policies#SendRequest
Upvotes: 1