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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_linux_web_app_slot - fix ignored worker_count argument in site_config block #24515

Merged
merged 2 commits into from
Feb 9, 2024
Merged
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
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 @@ -666,6 +666,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 @@ -815,6 +819,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 = web.SupportedTLSVersions(s.MinTlsVersion)
}
Expand Down
Loading