From 1c91f143826e58e1a0cdffad9480efd8cf604ae0 Mon Sep 17 00:00:00 2001 From: Xiaxin <92154856+xiaxyi@users.noreply.github.com> Date: Tue, 17 Jan 2023 22:11:13 +0800 Subject: [PATCH] `azurerm_windows_web_app_slot`, `azurerm_linux_web_app_slot` - remove hasChange condition for attribute `use_32_bit_worker` (#20051) fix https://github.com/hashicorp/terraform-provider-azurerm/issues/19765 --- .../services/appservice/helpers/web_app_slot_schema.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/internal/services/appservice/helpers/web_app_slot_schema.go b/internal/services/appservice/helpers/web_app_slot_schema.go index ea4b9c39df1a..673263cfb561 100644 --- a/internal/services/appservice/helpers/web_app_slot_schema.go +++ b/internal/services/appservice/helpers/web_app_slot_schema.go @@ -660,9 +660,7 @@ func ExpandSiteConfigLinuxWebAppSlot(siteConfig []SiteConfigLinuxWebAppSlot, exi expanded.RemoteDebuggingVersion = pointer.To(linuxSlotSiteConfig.RemoteDebuggingVersion) } - if metadata.ResourceData.HasChange("site_config.0.use_32_bit_worker") { - expanded.Use32BitWorkerProcess = pointer.To(linuxSlotSiteConfig.Use32BitWorker) - } + expanded.Use32BitWorkerProcess = pointer.To(linuxSlotSiteConfig.Use32BitWorker) if metadata.ResourceData.HasChange("site_config.0.websockets_enabled") { expanded.WebSocketsEnabled = pointer.To(linuxSlotSiteConfig.WebSockets) @@ -968,9 +966,7 @@ func ExpandSiteConfigWindowsWebAppSlot(siteConfig []SiteConfigWindowsWebAppSlot, expanded.RemoteDebuggingVersion = pointer.To(winSlotSiteConfig.RemoteDebuggingVersion) } - if metadata.ResourceData.HasChange("site_config.0.use_32_bit_worker") { - expanded.Use32BitWorkerProcess = pointer.To(winSlotSiteConfig.Use32BitWorker) - } + expanded.Use32BitWorkerProcess = pointer.To(winSlotSiteConfig.Use32BitWorker) if metadata.ResourceData.HasChange("site_config.0.websockets_enabled") { expanded.WebSocketsEnabled = pointer.To(winSlotSiteConfig.WebSockets)