Skip to content

Remove-AzFunctionAppSetting fails when trying to remove all app settings #17715

Discussion options

You must be logged in to vote

Hello @xsurfer -- Thank you for reporting this issue.

Please note that there is a list of reserved app settings which cannot be deleted because it will leave the function app in a broken state. This is the list of the app settings: https://github.com/Azure/azure-powershell/blob/generation/src/Functions/custom/HelperFunctions.ps1#L20.

The error you have in the output comes from this line: https://github.com/Azure/azure-powershell/blob/generation/src/Functions/custom/Remove-AzFunctionAppSetting.ps1#L126. This means that the app did not have any app settings to begin with which is a bit confusing. Could you please share a repro? This will be helpful to try to understand the issue. Alternativ…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dingmeng-xue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants