-
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
azurerm_windows_function_app_slot
- prevent removing application_stack
related settings when stack block is not changed
#18948
Conversation
azurerm_windows_function_app_slot
- prevent removing application_stack
related settings if stack block is not changedazurerm_windows_function_app_slot
- prevent removing application_stack
related settings when stack block is not changed
Thanks @cek-cek for raising this pr, I checked the code change and have some personal understandings as below. Feel free to let me know if it makes sense to you and I'm happy to have a discussion with you. I see you are making changes to the
The issue is the runtime property in app's site config, for example, we also need to set the powershell version instead of just setting the
For the detailed changes, feel free to check the pr: #18076 Thanks, feel free to let me know if you have any concern or question. |
Hi @xiaxyi, thank you for looking into my PR. I've looked at your PR #18076 and I believe they fix different issues. I've tested both PRs through locally built provider on our issue and while this PR does fix the #18947, your PR does not have any effect on that particular misbehavior. To explain in more depth, let me first attach the screenshot of my fix: GitHub by default shows diffs including whitespace, which probably caused the confusion that I am changing The issue itself is that whenever we update our custom appsettings, the auto-managed settings such as The problematic condition is only present for Windows configuration. The "Linux sibling" function I hope my explanation makes sense and this fix does not have any side effects, that I am not aware of. Honestly, to me, it just looks like the condition was there only as an optimization attempt. Should you have any other feedback or believe the #18947 should be fixed in any other way, feel free to let me know. Thank you. |
Hi, is there any ETA for this PR to be merged? It is really inconvenient as for nearly every |
Hi @cek-cek - Thanks for this PR, and apologies for taking a while to get to it. I've had to address this issue in a broader change for application stacks and as a result I'm going to have to close this in favour of that. We appreciated the contribution, and apologies for the delay that has meant this needed to be superseded by #19685. |
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. |
The PR removes only the first redundant condition and adjusts line padding.
The reasoning is, that the condition prevents merging
ApplicationStack
fetched from existing appservice the to upcoming apply asapplication_stack
block is usually not changed. When the condition is removed, the necessary existing stack settings will always be merged for the settings update. Linux variant of the code correctly omits this condition already.Fixes #18947