CloudEstimate

Size Temporal Self-Hosted on Azure

Medium — 150 to 1,000 state transitions per second with split History, Matching, and Frontend services

Monthly cost

$3,049.53

Annual cost

$36,594/year

Line-item breakdown

Compute $2,599.53
Storage $450.00
Other $0.00
Arm64 option (Azure Cobalt 100 (Dv6/Ev6 Arm)) $2,329.02/mo

Saves $720.51/mo (24%) across Standard_D8ps_v6, Standard_D4plds_v6, Standard_D4ps_v6.

Components provisioned

Role Instance vCPU GB RAM Storage
History Service 3 × Standard_D8s_v6 8 32 50 GB ssd
Matching Frontend 3 × Standard_D4ls_v6 4 8 50 GB ssd
Persistence Db 3 × Standard_D8s_v6 8 32 1 TB nvme
Visibility Search 3 × Standard_D4s_v6 4 16 300 GB ssd

Why this sizing

This medium tier sizing fits workloads processing 150 to 1,000 state transitions per second with split History, Matching, and Frontend services. Compute instances drive the monthly cost at this tier, totaling $2,599.53 out of a $3,049.53 total. Deployments run on-demand without high availability enabled, leaving the infrastructure vulnerable to node failures until manual intervention restores service.

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     = "temporal-westus3-rg"
  location = "westus3"
}

resource "azurerm_virtual_network" "workload" {
  name                = "temporal-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" "history_service_1_nic" {
  count               = 3
  name                = "temporal-history-service-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" "history_service_1" {
  count                 = 3
  name                  = "temporal-history-service-1-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_D8s_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.history_service_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  = "temporal"
    role = "history-service"
  }
}

resource "azurerm_managed_disk" "history_service_1_data" {
  count                = 3
  name                 = "temporal-history-service-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         = 50
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "history_service_1_attach" {
  count              = 3
  managed_disk_id    = azurerm_managed_disk.history_service_1_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.history_service_1[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "matching_frontend_2_nic" {
  count               = 3
  name                = "temporal-matching-frontend-2-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" "matching_frontend_2" {
  count                 = 3
  name                  = "temporal-matching-frontend-2-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_D4ls_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.matching_frontend_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  = "temporal"
    role = "matching-frontend"
  }
}

resource "azurerm_managed_disk" "matching_frontend_2_data" {
  count                = 3
  name                 = "temporal-matching-frontend-2-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" "matching_frontend_2_attach" {
  count              = 3
  managed_disk_id    = azurerm_managed_disk.matching_frontend_2_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.matching_frontend_2[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "persistence_db_3_nic" {
  count               = 3
  name                = "temporal-persistence-db-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" "persistence_db_3" {
  count                 = 3
  name                  = "temporal-persistence-db-3-${count.index + 1}"
  location              = azurerm_resource_group.workload.location
  resource_group_name   = azurerm_resource_group.workload.name
  size                  = "Standard_D8s_v6"
  zone                  = tostring((count.index % 3) + 1)
  admin_username        = "azureuser"
  network_interface_ids = [azurerm_network_interface.persistence_db_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  = "temporal"
    role = "persistence-db"
  }
}

resource "azurerm_managed_disk" "persistence_db_3_data" {
  count                = 3
  name                 = "temporal-persistence-db-3-data-${count.index + 1}"
  location             = azurerm_resource_group.workload.location
  resource_group_name  = azurerm_resource_group.workload.name
  storage_account_type = "Premium_LRS"
  create_option        = "Empty"
  disk_size_gb         = 1000
  zone                 = tostring((count.index % 3) + 1)
}

resource "azurerm_virtual_machine_data_disk_attachment" "persistence_db_3_attach" {
  count              = 3
  managed_disk_id    = azurerm_managed_disk.persistence_db_3_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.persistence_db_3[count.index].id
  lun                = 0
  caching            = "None"
}

resource "azurerm_network_interface" "visibility_search_4_nic" {
  count               = 3
  name                = "temporal-visibility-search-4-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" "visibility_search_4" {
  count                 = 3
  name                  = "temporal-visibility-search-4-${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.visibility_search_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  = "temporal"
    role = "visibility-search"
  }
}

resource "azurerm_managed_disk" "visibility_search_4_data" {
  count                = 3
  name                 = "temporal-visibility-search-4-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" "visibility_search_4_attach" {
  count              = 3
  managed_disk_id    = azurerm_managed_disk.visibility_search_4_data[count.index].id
  virtual_machine_id = azurerm_linux_virtual_machine.visibility_search_4[count.index].id
  lun                = 0
  caching            = "None"
}

Related views

Sources

Reference architecture: Temporal Self-Hosted for split-services-medium, version Temporal Server 1.26+ production deployment checklist, retrieved November 11, 2026.

https://docs.temporal.io/self-hosted-guide/Checklist

Pricing: Azure pricing snapshot, retrieved November 22, 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 Temporal's self-hosted production checklist and split-role scaling guidance (MIT license).

Estimate excludes application SDK worker fleets (which execute user workflow/activity code), archival buckets, and multi-region Namespace replication.

Related workloads on Azure