Azure-docs: KeyVault references - are returned values cached in the App Service

Created on 7 Aug 2019  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

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?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 app-servicsvc cxp product-question triaged

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bdcoder2 picture bdcoder2  Â·  3Comments

jharbieh picture jharbieh  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments