Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark maxTasksPerNode as forcenew #2856

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.