Skip to content

Commit aac7cd6

Browse files
JonathonAndersoncephalin
authored andcommitted
add instructions to force rotation
This API call was discovered using the browser developer tools to examine the UI for environment variables and analyze the button that initiates a rotation. We need this method documented to justify using it in our internal tooling.
1 parent ec08c65 commit aac7cd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/app-service/app-service-key-vault-references.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ If the secret version isn't specified in the reference, the app uses the latest
9595

9696
The delay is because App Service caches the values of the Key Vault references and refetches them every 24 hours. Any configuration change to the app causes an app restart and an immediate refetch of all referenced secrets.
9797

98+
To force rotation of the Key Vault References, make an authenticated POST request to the API endpoint ```https://management.azure.com/[Resurce ID]/config/configreferences/appsettings/refresh?api-version=2022-03-01```
99+
98100
## <a name = "source-app-settings-from-key-vault"></a> Understand source app settings from Key Vault
99101

100102
To use a Key Vault reference, set the reference as the value of the setting. Your app can reference the secret through its key as normal. No code changes are required.

0 commit comments

Comments
 (0)