Skip to content

Commit

Permalink
Merge pull request #3260 from terraform-providers/b/batch-resource-group
Browse files Browse the repository at this point in the history
r/batch_account & r/batch_pool: temporarily treating the resource group name as case insensitive
  • Loading branch information
tombuildsstuff authored Apr 16, 2019
2 parents b61d46f + 88fe380 commit 205d9a4
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
8 changes: 6 additions & 2 deletions azurerm/resource_arm_batch_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ func resourceArmBatchAccount() *schema.Resource {
ForceNew: true,
ValidateFunc: validateAzureRMBatchAccountName,
},
"resource_group_name": resourceGroupNameSchema(),
"location": locationSchema(),

// TODO: make this case sensitive once this API bug has been fixed:
// https://github.com/Azure/azure-rest-api-specs/issues/5574
"resource_group_name": resourceGroupNameDiffSuppressSchema(),

"location": locationSchema(),
"storage_account_id": {
Type: schema.TypeString,
Optional: true,
Expand Down
6 changes: 5 additions & 1 deletion azurerm/resource_arm_batch_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ func resourceArmBatchPool() *schema.Resource {
ForceNew: true,
ValidateFunc: azure.ValidateAzureRMBatchPoolName,
},
"resource_group_name": resourceGroupNameSchema(),

// TODO: make this case sensitive once this API bug has been fixed:
// https://github.com/Azure/azure-rest-api-specs/issues/5574
"resource_group_name": resourceGroupNameDiffSuppressSchema(),

"account_name": {
Type: schema.TypeString,
Required: true,
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/batch_account.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ The following arguments are supported:

* `resource_group_name` - (Required) The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.

~> **NOTE:** To work around [a bug in the Azure API](https://github.com/Azure/azure-rest-api-specs/issues/5574) this property is currently treated as case-insensitive. A future version of Terraform will require that the casing is correct.

* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

* `pool_allocation_mode` - (Optional) Specifies the mode to use for pool allocation. Possible values are `BatchService` or `UserSubscription`. Defaults to `BatchService`.
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/batch_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ The following arguments are supported:

* `resource_group_name` - (Required) The name of the resource group in which to create the Batch pool. Changing this forces a new resource to be created.

~> **NOTE:** To work around [a bug in the Azure API](https://github.com/Azure/azure-rest-api-specs/issues/5574) this property is currently treated as case-insensitive. A future version of Terraform will require that the casing is correct.

* `account_name` - (Required) Specifies the name of the Batch account in which the pool will be created. Changing this forces a new resource to be created.

* `node_agent_sku_id` - (Required) Specifies the Sku of the node agents that will be created in the Batch pool.
Expand Down

0 comments on commit 205d9a4

Please sign in to comment.