Skip to content

Commit

Permalink
Merge pull request #2856 from stuartleeks/batch-maxTasksPerNode-forcenew
Browse files Browse the repository at this point in the history
Mark maxTasksPerNode as forcenew
  • Loading branch information
tombuildsstuff authored Feb 14, 2019
2 parents 163bded + d261033 commit 94fac66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions azurerm/resource_arm_batch_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func resourceArmBatchPool() *schema.Resource {
Type: schema.TypeInt,
Optional: true,
Default: 1,
ForceNew: true,
ValidateFunc: validation.IntAtLeast(1),
},
"fixed_scale": {
Expand Down
10 changes: 5 additions & 5 deletions website/docs/r/batch_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <<EOF
Expand All @@ -57,7 +57,7 @@ resource "azurerm_batch_pool" "test" {
$TargetDedicatedNodes=min(maxNumberofVMs, pendingTaskSamples);
EOF
}
storage_image_reference {
publisher = "Canonical"
offer = "UbuntuServer"
Expand Down Expand Up @@ -102,7 +102,7 @@ The following arguments are supported:

* `display_name` - (Optional) Specifies the display name of the Batch pool.

* `max_tasks_per_node` - (Optional) Specifies the maximum number of tasks that can run concurrently on a single compute node in the pool. Defaults to `1`.
* `max_tasks_per_node` - (Optional) Specifies the maximum number of tasks that can run concurrently on a single compute node in the pool. Defaults to `1`. Changing this forces a new resource to be created.

* `fixed_scale` - (Optional) A `fixed_scale` block that describes the scale settings when using fixed scale.

Expand All @@ -122,7 +122,7 @@ A `fixed_scale` block supports the following:

* `resize_timeout` - (Optional) The timeout for resize operations. Defaults to `PT15M`.

---
---

A `auto_scale` block supports the following:

Expand Down Expand Up @@ -166,4 +166,4 @@ A `auto_user` block exports the following:

The following attributes are exported:

* `id` - The Batch pool ID.
* `id` - The Batch pool ID.

0 comments on commit 94fac66

Please sign in to comment.