RhomburVernius
RhomburVernius

Reputation: 2250

Retrieving function app settings on commandline includes removed items

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

Answers (1)

ahmelsayed
ahmelsayed

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

Related Questions