diff --git a/internal/services/appservice/helpers/linux_web_app_schema.go b/internal/services/appservice/helpers/linux_web_app_schema.go index 522ee3609d829..52c88ccfd8ef5 100644 --- a/internal/services/appservice/helpers/linux_web_app_schema.go +++ b/internal/services/appservice/helpers/linux_web_app_schema.go @@ -1018,6 +1018,7 @@ func (s *SiteConfigLinux) ExpandForCreate(appSettings map[string]string) (*webap func (s *SiteConfigLinux) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error) { expanded := *existing + expanded.AlwaysOn = pointer.To(s.AlwaysOn) expanded.AcrUseManagedIdentityCreds = pointer.To(s.UseManagedIdentityACR) expanded.AutoHealEnabled = pointer.To(s.AutoHeal) expanded.HTTP20Enabled = pointer.To(s.Http2Enabled) diff --git a/internal/services/appservice/helpers/web_app_slot_schema.go b/internal/services/appservice/helpers/web_app_slot_schema.go index e9e44c9a10e84..56e7bc291fc02 100644 --- a/internal/services/appservice/helpers/web_app_slot_schema.go +++ b/internal/services/appservice/helpers/web_app_slot_schema.go @@ -707,6 +707,7 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]strin func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaData, existing *webapps.SiteConfig, appSettings map[string]string) (*webapps.SiteConfig, error) { expanded := *existing + expanded.AlwaysOn = pointer.To(s.AlwaysOn) expanded.AcrUseManagedIdentityCreds = pointer.To(s.UseManagedIdentityACR) expanded.AutoHealEnabled = pointer.To(s.AutoHeal) expanded.HTTP20Enabled = pointer.To(s.Http2Enabled) diff --git a/internal/services/appservice/linux_web_app_resource_test.go b/internal/services/appservice/linux_web_app_resource_test.go index 5a0b169cc108a..7fc0662d2bd86 100644 --- a/internal/services/appservice/linux_web_app_resource_test.go +++ b/internal/services/appservice/linux_web_app_resource_test.go @@ -124,6 +124,7 @@ func TestAccLinuxWebApp_completeUpdated(t *testing.T) { Config: r.complete(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("site_config.0.always_on").HasValue("true"), ), }, data.ImportStep("site_credential.0.password"), diff --git a/internal/services/appservice/linux_web_app_slot_resource_test.go b/internal/services/appservice/linux_web_app_slot_resource_test.go index 7e175aa3d8c54..dc19153ea96c9 100644 --- a/internal/services/appservice/linux_web_app_slot_resource_test.go +++ b/internal/services/appservice/linux_web_app_slot_resource_test.go @@ -182,6 +182,7 @@ func TestAccLinuxWebAppSlot_completeUpdate(t *testing.T) { Config: r.complete(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), + check.That(data.ResourceName).Key("site_config.0.always_on").HasValue("true"), ), }, data.ImportStep("site_credential.0.password"),