-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix functions app website_contenteshare unwanted changes #10494
Fix functions app website_contenteshare unwanted changes #10494
Conversation
@jackofallops I noticed you label my PR with breaking-change. Can you provide me some details? |
@uolter - I believe he's marked it as such because the underlying metadata setting is used by deployed apps, thus anyone not using slots could face a breaking change if this is swapped out without warning. Ideally we would not want to change the behaviour so a fix that doesn't change the existing behaviour but fixes the specific problem would be ideal. |
@katbyte I've tried a different approach not changing the current behavior, but so far no clue.
Why not let the user explicitly define that setting inside *.tf code ?
Forcing the creation of that setting inside the Create and Update with fixed values breaks the behavior in functions with slots when swapping. Which is very damaging and risky. It happened to me in production twice before understanding there was a bug. |
@uolter - i'm not sure there is a way to make this fix without a breaking change to the behaviour of how this resource works, it may have to way until 3.0. |
Hi @uolter , the
The only case Terraform doesn't change the value is if I ignore all.
But that will mean we cannot make changes via terraform anymore, so not really a solution. |
Hi @realrubberduckdev , it works to me, but I am working with a custom provider with changes described in this PR: https://github.com/terraform-providers/terraform-provider-azurerm/blob/057c68ea3e5e0935815433d86366ffbeb77df76e/azurerm/internal/services/web/function_app_resource.go#L687 |
This functionality has been released in v2.77.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR wants to fix the issue described here.
#10499
Maybe some tests are missed or there might be better approaches.