Skip to content

Commit

Permalink
azurerm_linux_web_app_slot - worker_count now works correctly in …
Browse files Browse the repository at this point in the history
…`site_config` block (hashicorp#24515)
  • Loading branch information
dkanbier authored and rizkybiz committed Feb 29, 2024
1 parent 5101c9f commit 2f81573
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/services/appservice/helpers/web_app_slot_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,10 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForCreate(appSettings map[string]strin
expanded.RemoteDebuggingVersion = pointer.To(s.RemoteDebuggingVersion)
}

if s.WorkerCount != 0 {
expanded.NumberOfWorkers = pointer.To(s.WorkerCount)
}

if s.HealthCheckPath != "" {
expanded.HealthCheckPath = pointer.To(s.HealthCheckPath)
}
Expand Down Expand Up @@ -771,6 +775,10 @@ func (s *SiteConfigLinuxWebAppSlot) ExpandForUpdate(metadata sdk.ResourceMetaDat
expanded.HealthCheckPath = pointer.To(s.HealthCheckPath)
}

if metadata.ResourceData.HasChange("site_config.0.worker_count") {
expanded.NumberOfWorkers = pointer.To(s.WorkerCount)
}

if metadata.ResourceData.HasChange("site_config.0.minimum_tls_version") {
expanded.MinTlsVersion = pointer.To(webapps.SupportedTlsVersions(s.MinTlsVersion))
}
Expand Down

0 comments on commit 2f81573

Please sign in to comment.