azurerm_service_fabric_cluster

Manages a Service Fabric Cluster.

Example Usage

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

resource "azurerm_service_fabric_cluster" "example" {
  name                 = "example-servicefabric"
  resource_group_name  = azurerm_resource_group.example.name
  location             = azurerm_resource_group.example.location
  reliability_level    = "Bronze"
  upgrade_mode         = "Manual"
  cluster_code_version = "7.1.456.959"
  vm_image             = "Windows"
  management_endpoint  = "https://example:80"

  node_type {
    name                 = "first"
    instance_count       = 3
    is_primary           = true
    client_endpoint_port = 2020
    http_endpoint_port   = 80
  }
}

Argument Reference

The following arguments are supported:



A azure_active_directory block supports the following:


A certificate_common_names block supports the following:


A common_names block supports the following:


A certificate block supports the following:


A reverse_proxy_certificate block supports the following:


A reverse_proxy_certificate_common_names block supports the following:


A client_certificate_thumbprint block supports the following:


A client_certificate_common_name block supports the following:


A diagnostics_config block supports the following:


A fabric_settings block supports the following:


A node_type block supports the following:


A application_ports block supports the following:


A ephemeral_ports block supports the following:


A upgrade_policy block supports the following:


A health_policy block supports the following:


A delta_health_policy block supports the following:

Attributes Reference

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

Timeouts

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

Import

Service Fabric Clusters can be imported using the resource id, e.g.

terraform import azurerm_service_fabric_cluster.cluster1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ServiceFabric/clusters/cluster1