cpu property under agent_setting block is not working when agent_pool_name is set #28085
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Community Note
Terraform Version
1.9.8
AzureRM Provider Version
4.10.0
Affected Resource(s)/Data Source(s)
azurerm_container_registry_task
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Agent Setting (configuration) CPU being set on the ACR task:
Actual Behaviour
Terraform plan and apply runs fine:
However, when running a TF plan again after a successful apply you get:
This is due to Agent Setting (Configuration) CPU not being set:
So either agent_setting or agent_pool_name can be set, but there is no validation in the plan/apply.
Also, the documentation does not mention this and should be updated with a note that either of the two should be set.
In addition, the only accepted value for 'cpu' under the 'agent_setting' block is 2. If any other value is provided it gives an error:
InnerErrors: AgentProperties:Invalid value for CPU core count. The supported values are (2)
The documentation should also reflect this.
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: