Conversation
sreallymatt
left a comment
There was a problem hiding this comment.
@mbfrahry I left one minor comment inline
| service_plan_id = azurerm_service_plan.test.id | ||
|
|
||
| site_config { | ||
| always_on = true |
There was a problem hiding this comment.
I believe this should be false?
| always_on = true | |
| always_on = false |
|
This PR is being labeled as "stale" because it has not been updated for 30 or more days. If this PR is still valid, please remove the "stale" label. If this PR is blocked, please add it to the "Blocked" milestone. If you need some help completing this PR, please leave a comment letting us know. Thank you! |
…ual diff around incorrect default for `always_on` and ignore default values for `logs.0.application_logs` (hashicorp#29150)
* changelog for 4.28 release * Update CHANGELOG.md #29410 * Update CHANGELOG.md #29397 * Update CHANGELOG.md #27454 * Update CHANGELOG.md #28919 * Update CHANGELOG.md #29443 * Update CHANGELOG.md #29443 * Update CHANGELOG.md #29456 * Update CHANGELOG.md for #29424 * Update CHANGELOG.md for #29150 * Update CHANGELOG.md #29435 * Update CHANGELOG.md #29431 * Update CHANGELOG.md #29396 * Update CHANGELOG.md #29197 * Update CHANGELOG.md for #28705 * Update CHANGELOG.md #28954 * Update CHANGELOG.md for #29363 * prep for release --------- Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com> Co-authored-by: Wodans Son <20408400+WodansSon@users.noreply.github.com> Co-authored-by: sreallymatt <106555974+sreallymatt@users.noreply.github.com> Co-authored-by: Matthew Frahry <mbfrahry@gmail.com> Co-authored-by: jackofallops <ste@hashicorp.com>
|
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. |

Community Note
Description
This PR fixes an issue where a perpetual diff occurred when
always_onwas false. Azure changed the default value ofvirtual_application.0.preload_enabledtofalsewhereas we assumed it was true regardless ofalways_on.This PR also addresses an issue where we were not setting
logs.0.application_logs.0.file_system_levelwasOff. This was added to prevent a perpetual diff when the default values forlogs.0.application_logswere returned by Azure but not set into Terraform which resulted in a perpetual diff. We now only setlogs.0.application_logswhen it's not the default values and use a DiffSuppressFunc to ignore the default values on subsequent plans.PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_windows_web_app/azurerm_windows_web_app_slot- fix perpetual diff around incorrect default foralways_onand ignore default values forlogs.0.application_logs[GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #16326
Note
If this PR changes meaningfully during the course of review please update the title and description as required.