-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Add a way to clear down AppConfiguration stores on bicep deploy #2168
Comments
I find app configuration clunky for other reasons, but maybe that's just me :) Are these values that are always manually input or would an overwrite from Bicep work? In general Bicep doesn't handle deletion use cases as such though depending on the resource provider the deployment mode might help you along the way. I haven't tested this, but if the app configuration values are created with Bicep (at least initially even if they are manually changed afterwards) - would it work to have that as a separate deployment stack and have a script that deletes the stack? If the list of which values should be cleared and which should be kept is too dynamic it might be challenging though. And that would delete the value too of course. If you need the value but want it to be null wouldn't it work to just provide an empty string as the value? |
The reason for this is to remove manual intervention entirely. Currently, bicep does not remove old values and a script is needed to delete them I am not after a work around, but a feature :) I have updated the title to make that clear |
Nothing wrong with wishing for features, but a workaround (if applicable) can be used "today". Feature requests might take a little longer :) I'm not sure if this kind of opinionation would live in Bicep core though. Some of it probably lies within the resource provider. Take Application Gateway for instance; if you configure it for www-1.contoso.com, www-2.contoso.com & www-3.contoso.com and afterwards reconfigure it to accept www-1 without mentioning the other two those will be removed even if you didn't ask for it. So, the opposite of App Configuration values basically. Which one is right, and which one should change? I don't like the way App Gateway does it because that creates some logical errors with deployment, but I don't have the "right answer" either. But then again - I'm also just a member of the community so I'm not calling the shots here :) |
This looks to be by design within the "Microsoft.Appconfiguration" - I would reach out to that team if you wanted to streamline the issue, but I can try to route it to their team in the meantime. |
When I change my configuration for my app the old keys remain, this means I have to clean up the old keys manually
Which I may not do, because I got distracted by a donut or something, leaving old settings confusing other developers or new members of the team
If a configuration property could be added that would clear down the keys somehow that would be super.
Could this work?
although 'createMode' does suggest it only happens when the resource is not found or deleted
would another property work?
Thank you
The text was updated successfully, but these errors were encountered: