Azure / Azure/app-service-linux-docs

Force App Service to update Key Vault values referenced by the app

Open
#233 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
150
Forks
90
Avg merge
2m
Merged PRs (30d)
1

Description

Hi,
I noticed that with the new UI changes on App Services, there is new button in the "Environment variables" section - "Fetch latest values".

![image](https://github.com/Azure/app-service-linux-docs/assets/32565136/1af21b8d-97ee-48cd-a6c3-c05aaee8d1ae)

Scenario:
I have Key Vault values referenced in the "Environment variables" and I updated one of the secret values in the KV. According to the documentation I restarted App Service few times. I expected the KV referenced secret value will update in the App Service. When I checked in Kudu, after restarts there was still the old KV value. When I pressed the button "Fetch latest values", the App Service restarted and new KV secret referenced value was refetched.

![image](https://github.com/Azure/app-service-linux-docs/assets/32565136/b900e194-228a-468f-a1dc-9fedf0cea1c3)

I have more than 25 App Services to go through and "click the button" to refetch KV referenced values. The most efficient way of working would be old behavior - restarting App Service triggers refetching KV referenced values.
I didn't find proper documentation explaining new behavior. I would like to force refetching new values from KV via AZ CLI or PowerShell.
For now the known "workaround" is to set the variable to some random value and then switch back to KV reference. It's not efficient as it requires multiple terraform deployments and creates longer downtime on our services.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.