Can you please clarify whether the value returned would be cached on the App Service (at least up until a restart) or if it would incur a request to KeyVault every time that App Setting was queried by the code?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thanks for the feedback! We are currently investigating and will update you shortly.
The settings/values are pulled from KeyVault once the app service process starts. If any changes to the values were made during runtime, the updated values wouldn't be picked up until the service was restarted. However, you could use the Keyvault SDK to retrieve key vault values and cache them yourself.
Hope this helps.
@joaopgrassi I was referring to the secrets in the vault. If one were to change the value of secret, the new value wouldn't be read until the app referencing the vault were restarted.
@neilamoran we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
@RyanHill-MSFT thanks for clarifying. I typed my question but deleted it right after. I decided to just try it myself and then your answer made more sense.