Keycloak
Self-managed Keycloak for identity, authentication, SSO, and federation across internal and customer-facing apps.
Medium — regional production Vault or OpenBao cluster with moderate dynamic lease churn
Monthly cost
$1,620.95
Annual cost
$19,451/year
| Compute | $1,470.95 |
| Storage | $150.00 |
| Other | $0.00 |
Saves $445.30/mo (27%) across Standard_D8ps_v6.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Vault Server | 5 × Standard_D8s_v6 | 8 | 32 | 250 GB nvme |
This Azure West US 3 deployment suits a regional production Vault workload with moderate dynamic lease churn. The primary cost driver is compute, specifically the five Standard D8s v6 nodes totaling $1470.95 monthly out of $1620.95 overall. High availability is disabled across this cluster, which introduces a single point of failure during regional infrastructure maintenance events on Microsoft Azure.
Share the current URL or copy the 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 = "vault-westus3-rg"
location = "westus3"
}
resource "azurerm_virtual_network" "workload" {
name = "vault-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" "vault_server_1_nic" {
count = 5
name = "vault-vault-server-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" "vault_server_1" {
count = 5
name = "vault-vault-server-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.vault_server_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 = "vault"
role = "vault-server"
}
}
resource "azurerm_managed_disk" "vault_server_1_data" {
count = 5
name = "vault-vault-server-1-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 = 250
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "vault_server_1_attach" {
count = 5
managed_disk_id = azurerm_managed_disk.vault_server_1_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.vault_server_1[count.index].id
lun = 0
caching = "None"
}
Reference architecture: HashiCorp Vault / OpenBao for raft-five-node-standard, version Vault / OpenBao Integrated Storage (Raft) reference architecture, retrieved November 11, 2026.
https://developer.hashicorp.com/vault/tutorials/day-one-raft/raft-reference-architecture
Pricing: Azure pricing snapshot, retrieved November 22, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on HashiCorp's published Integrated Storage (Raft) reference architecture (3- and 5-voter topologies).
Estimate excludes Vault Enterprise licensing, cloud KMS auto-unseal API calls, HSM appliances, and SIEM audit log storage.
Self-managed Keycloak for identity, authentication, SSO, and federation across internal and customer-facing apps.
Self-hosted Teleport for infrastructure identity, privileged access, Kubernetes access, and audited remote sessions.
Self-managed Confluent Platform 8.x (Apache Kafka 4.x KRaft) for durable event streaming, schema governance, and Connect pipelines.