CloudEstimate

Size Apache Kafka via Confluent Platform on Azure

Medium — 50 to 150 MB/s ingress or larger retained topic footprints

Monthly cost

$4,653.24

Annual cost

$55,839/year

Line-item breakdown

Compute $3,385.74
Storage $1,267.50
Other $0.00
Arm64 option (Azure Cobalt 100 (Dv6/Ev6 Arm)) $3,624.23/mo

Saves $1,029.01/mo (22%) across Standard_D16ps_v6, Standard_D4ps_v6, Standard_D2ps_v6.

Components provisioned

Role Instance vCPU GB RAM Storage
Broker 4 × Standard_D16s_v6 16 64 4 TB ssd
Kraft Controller 3 × Standard_D4s_v6 4 16 100 GB ssd
Connect 2 × Standard_D4s_v6 4 16 100 GB ssd
Schema Registry 2 × Standard_D2s_v6 2 8 50 GB ssd
Control Center 1 × Standard_D4s_v6 4 16 300 GB ssd

Why this sizing

This medium tier configuration supports Apache Kafka workloads processing fifty to one hundred fifty megabytes per second of ingress. The primary cost driver is compute, totaling three thousand three hundred eighty-five dollars and seventy-four cents per month across nine virtual machines. The broker pool relies on four Standard_D16s_v6 instances with four thousand gigabytes of solid-state storage to handle retained topic footprints. Administrators must monitor KRaft controller and broker resource distribution closely since the architecture operates without ZooKeeper.

Export

Share the current URL or copy the Azure Terraform / OpenTofu baseline.

Open generic Azure calculator
Azure Terraform / OpenTofu baseline
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
terraform {
  required_version = ">= 1.6.0"

  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "~> 4.0"
    }
  }
}

variable "ssh_public_key" {
  description = "SSH public key installed on Linux virtual machines."
  type        = string
  default     = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG5vplaceholderreplacebeforeapply00000000000 azureuser@example"
}

provider "azurerm" {
  features {}
}

resource "azurerm_resource_group" "workload" {
  name     = "apache-kafka-confluent-platform-westus3-rg"
  location = "westus3"
}

resource "azurerm_virtual_network" "workload" {
  name                = "apache-kafka-confluent-platform-vnet"
  address_space       = ["10.42.0.0/16"]
  location            = azurerm_resource_group.workload.location
  resource_group_name = azurerm_resource_group.workload.name
}

resource "azurerm_subnet" "workload" {
  name                 = "workload-internal"
  resource_group_name  = azurerm_resource_group.workload.name
  virtual_network_name = azurerm_virtual_network.workload.name
  address_prefixes     = ["10.42.1.0/24"]
}

# Generated for Azure (westus3) from the current estimate state.
resource "azurerm_network_interface" "broker_1_nic" {
  count               = 4
  name                = "apache-kafka-confluent-platform-broker-1-nic-${count.index + 1}"
  location            = azurerm_resource_group.workload.location
  resource_group_name = azurerm_resource_group.workload.name

  ip_configuration {
    name                          = "internal"
    subnet_id                     = azurerm_subnet.workload.id
    private_ip_address_allocation = "Dynamic"
  }
}

resource "azurerm_linux_virtual_machine" "broker_1" {
  count                 = 4
  name                  = "apache-kafka-confluent-platform-broker-1-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_D16s_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.broker_1_nic[count.index].id]

  admin_ssh_key {
    username   = "azureuser"
    public_key = var.ssh_public_key
  }

  os_disk {
    caching              = "ReadWrite"
    storage_account_type = "StandardSSD_LRS"
    disk_size_gb         = 50
  }

  source_image_reference {
    publisher = "Debian"
    offer     = "debian-12"
    sku       = "12-gen2"
    version   = "latest"
  }

  tags = {
    app  = "apache-kafka-confluent-platform"
    role = "broker"
  }
}

resource "azurerm_managed_disk" "broker_1_data" {
  count                = 4
  name                 = "apache-kafka-confluent-platform-broker-1-data-${count.index + 1}"
  location             = azurerm_resource_group.workload.location
  resource_group_name  = azurerm_resource_group.workload.name
  storage_account_type = "StandardSSD_LRS"
  create_option        = "Empty"
  disk_size_gb         = 4000
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "broker_1_attach" {
  count              = 4
  managed_disk_id    = azurerm_managed_disk.broker_1_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.broker_1[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "kraft_controller_2_nic" {
  count               = 3
  name                = "apache-kafka-confluent-platform-kraft-cont-nic-${count.index + 1}"
  location            = azurerm_resource_group.workload.location
  resource_group_name = azurerm_resource_group.workload.name

  ip_configuration {
    name                          = "internal"
    subnet_id                     = azurerm_subnet.workload.id
    private_ip_address_allocation = "Dynamic"
  }
}

resource "azurerm_linux_virtual_machine" "kraft_controller_2" {
  count                 = 3
  name                  = "apache-kafka-confluent-platform-kraft-cont-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_D4s_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.kraft_controller_2_nic[count.index].id]

  admin_ssh_key {
    username   = "azureuser"
    public_key = var.ssh_public_key
  }

  os_disk {
    caching              = "ReadWrite"
    storage_account_type = "StandardSSD_LRS"
    disk_size_gb         = 50
  }

  source_image_reference {
    publisher = "Debian"
    offer     = "debian-12"
    sku       = "12-gen2"
    version   = "latest"
  }

  tags = {
    app  = "apache-kafka-confluent-platform"
    role = "kraft-controller"
  }
}

resource "azurerm_managed_disk" "kraft_controller_2_data" {
  count                = 3
  name                 = "apache-kafka-confluent-platform-kraft-cont-data-${count.index + 1}"
  location             = azurerm_resource_group.workload.location
  resource_group_name  = azurerm_resource_group.workload.name
  storage_account_type = "StandardSSD_LRS"
  create_option        = "Empty"
  disk_size_gb         = 100
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "kraft_controller_2_attach" {
  count              = 3
  managed_disk_id    = azurerm_managed_disk.kraft_controller_2_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.kraft_controller_2[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "connect_3_nic" {
  count               = 2
  name                = "apache-kafka-confluent-platform-connect-3-nic-${count.index + 1}"
  location            = azurerm_resource_group.workload.location
  resource_group_name = azurerm_resource_group.workload.name

  ip_configuration {
    name                          = "internal"
    subnet_id                     = azurerm_subnet.workload.id
    private_ip_address_allocation = "Dynamic"
  }
}

resource "azurerm_linux_virtual_machine" "connect_3" {
  count                 = 2
  name                  = "apache-kafka-confluent-platform-connect-3-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_D4s_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.connect_3_nic[count.index].id]

  admin_ssh_key {
    username   = "azureuser"
    public_key = var.ssh_public_key
  }

  os_disk {
    caching              = "ReadWrite"
    storage_account_type = "StandardSSD_LRS"
    disk_size_gb         = 50
  }

  source_image_reference {
    publisher = "Debian"
    offer     = "debian-12"
    sku       = "12-gen2"
    version   = "latest"
  }

  tags = {
    app  = "apache-kafka-confluent-platform"
    role = "connect"
  }
}

resource "azurerm_managed_disk" "connect_3_data" {
  count                = 2
  name                 = "apache-kafka-confluent-platform-connect-3-data-${count.index + 1}"
  location             = azurerm_resource_group.workload.location
  resource_group_name  = azurerm_resource_group.workload.name
  storage_account_type = "StandardSSD_LRS"
  create_option        = "Empty"
  disk_size_gb         = 100
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "connect_3_attach" {
  count              = 2
  managed_disk_id    = azurerm_managed_disk.connect_3_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.connect_3[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "schema_registry_4_nic" {
  count               = 2
  name                = "apache-kafka-confluent-platform-schema-reg-nic-${count.index + 1}"
  location            = azurerm_resource_group.workload.location
  resource_group_name = azurerm_resource_group.workload.name

  ip_configuration {
    name                          = "internal"
    subnet_id                     = azurerm_subnet.workload.id
    private_ip_address_allocation = "Dynamic"
  }
}

resource "azurerm_linux_virtual_machine" "schema_registry_4" {
  count                 = 2
  name                  = "apache-kafka-confluent-platform-schema-reg-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_D2s_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.schema_registry_4_nic[count.index].id]

  admin_ssh_key {
    username   = "azureuser"
    public_key = var.ssh_public_key
  }

  os_disk {
    caching              = "ReadWrite"
    storage_account_type = "StandardSSD_LRS"
    disk_size_gb         = 50
  }

  source_image_reference {
    publisher = "Debian"
    offer     = "debian-12"
    sku       = "12-gen2"
    version   = "latest"
  }

  tags = {
    app  = "apache-kafka-confluent-platform"
    role = "schema-registry"
  }
}

resource "azurerm_managed_disk" "schema_registry_4_data" {
  count                = 2
  name                 = "apache-kafka-confluent-platform-schema-reg-data-${count.index + 1}"
  location             = azurerm_resource_group.workload.location
  resource_group_name  = azurerm_resource_group.workload.name
  storage_account_type = "StandardSSD_LRS"
  create_option        = "Empty"
  disk_size_gb         = 50
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "schema_registry_4_attach" {
  count              = 2
  managed_disk_id    = azurerm_managed_disk.schema_registry_4_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.schema_registry_4[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "control_center_5_nic" {
  count               = 1
  name                = "apache-kafka-confluent-platform-control-ce-nic-${count.index + 1}"
  location            = azurerm_resource_group.workload.location
  resource_group_name = azurerm_resource_group.workload.name

  ip_configuration {
    name                          = "internal"
    subnet_id                     = azurerm_subnet.workload.id
    private_ip_address_allocation = "Dynamic"
  }
}

resource "azurerm_linux_virtual_machine" "control_center_5" {
  count                 = 1
  name                  = "apache-kafka-confluent-platform-control-ce-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_D4s_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.control_center_5_nic[count.index].id]

  admin_ssh_key {
    username   = "azureuser"
    public_key = var.ssh_public_key
  }

  os_disk {
    caching              = "ReadWrite"
    storage_account_type = "StandardSSD_LRS"
    disk_size_gb         = 50
  }

  source_image_reference {
    publisher = "Debian"
    offer     = "debian-12"
    sku       = "12-gen2"
    version   = "latest"
  }

  tags = {
    app  = "apache-kafka-confluent-platform"
    role = "control-center"
  }
}

resource "azurerm_managed_disk" "control_center_5_data" {
  count                = 1
  name                 = "apache-kafka-confluent-platform-control-ce-data-${count.index + 1}"
  location             = azurerm_resource_group.workload.location
  resource_group_name  = azurerm_resource_group.workload.name
  storage_account_type = "StandardSSD_LRS"
  create_option        = "Empty"
  disk_size_gb         = 300
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "control_center_5_attach" {
  count              = 1
  managed_disk_id    = azurerm_managed_disk.control_center_5_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.control_center_5[count.index].id
  lun                = 0
  caching            = "None"
}

Related views

Sources

Reference architecture: Apache Kafka via Confluent Platform for regional-cluster, version Confluent Platform 8.x (Apache Kafka 4.x KRaft-only), retrieved November 11, 2026.

https://docs.confluent.io/platform/current/kafka/deployment.html

Pricing: Azure pricing snapshot, retrieved November 29, 2026.

Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.

Not included in this estimate

  • Vendor licensing and support
  • Professional services
  • Network egress
  • Compliance controls
  • Backup storage
  • Monitoring

Based on Confluent Platform 8.x self-managed production deployment guidance normalized to cloud VM shapes.

Estimate excludes Confluent Enterprise licensing, Apache Flink compute pools, Tiered Storage bucket capacity, and cross-AZ replication traffic charges.

Related workloads on Azure