Reputation: 2250
I'm downloading my app settings via a batch file. I use this command:
func azure functionapp fetch-app-settings MyFuncApp
It works great. However I noticed that if I delete a key/value pair in Azure, save it, and then redownload the app settings, it still includes the deleted pair. I tried this a few more times, and each time, the deleted values still show up when I download the app settings. Is this a known issue? Or is there something I'm missing in regards to downloading the app settings?
Upvotes: 0
Views: 130
Reputation: 7412
The cli doesn't do a merge for these settings. You can take a look at the code here, but basically it just grabs the app settings from Azure and adds or updates local values to match Azure. If you have a value locally that doesn't exist in Azure, it'll just leave it alone.
You can either delete it manually from the file local.settings.json
or you can use this command func settings delete <settingName>
Upvotes: 2