You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: `maximum_elastic_worker_count` can only be specified with Elastic Premium Skus
Expected Behaviour
The maximum_elastic_worker_count is ignored if plan kind is not Elastic Premium and this value is set to 1 (which is the value on a consumption-based plan after applying the configuration).
Actual Behaviour
On consumption plans:
Before applying the configuration, the value of maximum_elastic_worker_count needs to be 0 to be ignored.
After applying the configuration, the value of maximum_elastic_worker_count needs to be 1 to be ignored.
Steps to Reproduce
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Thanks @sit-md for raising this issue, are you trying set the maximum_elastic_worker_count for consumption plan? If this is the case, let me confirm the api behavior first? Please correct me if there is any misunderstanding.
@xiaxyi Yes, that is correct. Some context for you: in our non-production environments we use consumption plans to keep the costs low. In the stage and production environments we use elastic premium plans to be able to take the load. Our configuration for this resource lives in a module to keep it as DRY as possible.
Is there an existing issue for this?
Community Note
Terraform Version
1.8.2
AzureRM Provider Version
3.101.0
Affected Resource(s)/Data Source(s)
azurerm_service_plan
Terraform Configuration Files
Debug Output/Panic Output
Error: `maximum_elastic_worker_count` can only be specified with Elastic Premium Skus
Expected Behaviour
The
maximum_elastic_worker_count
is ignored if plan kind is not Elastic Premium and this value is set to 1 (which is the value on a consumption-based plan after applying the configuration).Actual Behaviour
On consumption plans:
Before applying the configuration, the value of
maximum_elastic_worker_count
needs to be 0 to be ignored.After applying the configuration, the value of
maximum_elastic_worker_count
needs to be 1 to be ignored.Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: