While updating Function Apps using Terraform to modify existing resources, I ran into the following. Had 7 function apps. 1 was using a standard, non-consumption plan. The other 6 were on consumption plans. Updated the plan to set all to standard, non-consumption plans.
During terraform apply, for just 2 of the 6 being changed from consumption to non-consumption, and those 2 failures were repeatable. I don't see any differences in the resources that would account for it.
Error: updating Function App "FunctionAppThatFailed" (Resource Group "rg-group-dev"):
web.AppsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error:
Code="BadRequest" Message="Number of Web workers must be greater than zero." Details=[{"Message":"Number of Web workers must be greater than zero."},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","ExtendedCode":"04004","Message":"Number of Web workers must be greater than zero.","MessageTemplate":"Number of Web workers must be greater than zero.","Parameters":[]}}]
Any hints, things to check that I may have missed, solutions, etc. are definitely welcome.
