From 00206270a4d00b6730c599d71013f4fcc4fc0abc Mon Sep 17 00:00:00 2001 From: Stuart Leeks Date: Fri, 8 Feb 2019 10:32:34 +0000 Subject: [PATCH 1/2] Mark maxTasksPerNode as forcenew The maxTasksPerNode cannot be changed once a Batch pool has been created so marking as ForceNew to require re-creating the pool --- azurerm/resource_arm_batch_pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/azurerm/resource_arm_batch_pool.go b/azurerm/resource_arm_batch_pool.go index 42d3f8038ddf..5834c1f28c87 100644 --- a/azurerm/resource_arm_batch_pool.go +++ b/azurerm/resource_arm_batch_pool.go @@ -59,6 +59,7 @@ func resourceArmBatchPool() *schema.Resource { Type: schema.TypeInt, Optional: true, Default: 1, + ForceNew: true, ValidateFunc: validation.IntAtLeast(1), }, "fixed_scale": { From d26103377d2d61d86252b0695e3e36a973fe28af Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 14 Feb 2019 22:48:54 +0100 Subject: [PATCH 2/2] r/batch_pool: updating `max_tasks_per_node` to be forcenew --- website/docs/r/batch_pool.html.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/website/docs/r/batch_pool.html.markdown b/website/docs/r/batch_pool.html.markdown index aec085ecdc54..24edc13cf02c 100644 --- a/website/docs/r/batch_pool.html.markdown +++ b/website/docs/r/batch_pool.html.markdown @@ -46,7 +46,7 @@ resource "azurerm_batch_pool" "test" { display_name = "Test Acc Pool Auto" vm_size = "Standard_A1" node_agent_sku_id = "batch.node.ubuntu 16.04" - + auto_scale { evaluation_interval = "PT15M" formula = <