Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_linux_web_app + azurerm_linux_web_app_slot - Set site_config.always_on as configured by the user during an update #25753

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,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"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,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"),
Expand Down
Loading