I have followed the terraform azure documentation to create service fabric cluster which is successfully being created . But also I need to create a single node in the cluster which is not getting created.
What do I need to add to create nodes in the terraform script ?
# Create a resource group if it doesn’t exist
resource "azurerm_resource_group" "rg-terraform-group" {
name = "rg-terraform-group"
location = "eastus"
tags = {
environment = "Terraform Node Demo"
}
}
#Create a service fabric cluster
resource "azurerm_service_fabric_cluster" "rg-terraform-sf" {
name = "myServicefabric"
resource_group_name = "${azurerm_resource_group.rg-terraform-group.name}"
location = "${azurerm_resource_group.rg-terraform-group.location}"
reliability_level = "Bronze"
upgrade_mode = "Manual"
cluster_code_version = "6.5.466.1"
vm_image = "Linux"
management_endpoint = "https://test.eastus.cloudapp.azure.com:19080"
node_type {
name = "first"
instance_count = 3
is_primary = true
client_endpoint_port = 19000
http_endpoint_port = 19080
}
}