azurerm_stack_hci_cluster

Manages an Azure Stack HCI Cluster.

Example Usage

data "azuread_application" "example" {
  display_name = "Allowed resource types"
}

data "azurerm_client_config" "current" {}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_stack_hci_cluster" "example" {
  name                = "example-cluster"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  client_id           = data.azuread_application.example.application_id
  tenant_id           = data.azurerm_client_config.current.tenant_id
  identity {
    type = "SystemAssigned"
  }
}

Arguments Reference

The following arguments are supported:


An identity 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

Azure Stack HCI Clusters can be imported using the resource id, e.g.

terraform import azurerm_stack_hci_cluster.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AzureStackHCI/clusters/cluster1