azurerm_batch_account

Manages an Azure Batch account.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "testbatch"
  location = "West Europe"
}

resource "azurerm_storage_account" "example" {
  name                     = "teststorage"
  resource_group_name      = azurerm_resource_group.example.name
  location                 = azurerm_resource_group.example.location
  account_tier             = "Standard"
  account_replication_type = "LRS"
}

resource "azurerm_batch_account" "example" {
  name                                = "testbatchaccount"
  resource_group_name                 = azurerm_resource_group.example.name
  location                            = azurerm_resource_group.example.location
  pool_allocation_mode                = "BatchService"
  storage_account_id                  = azurerm_storage_account.example.id
  storage_account_authentication_mode = "StorageKeys"

  tags = {
    env = "test"
  }
}

Argument Reference

The following arguments are supported:


An identity block supports the following:


A network_profile block supports the following:


An account_access block supports the following:

* ip_rule - (Optional) One or more ip_rule blocks as defined below.

A node_management_access block supports the following:


An ip_rule block supports the following:


A key_vault_reference block supports the following:


A encryption block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


An identity block exports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Batch Account can be imported using the resource id, e.g.

terraform import azurerm_batch_account.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Batch/batchAccounts/account1