Azure Key Vault cost vs self-hosted OpenBao

Azure Key Vault bills per operation, key, renewal and Managed HSM pool, while self-hosted OpenBao shifts cost to servers, storage, setup and operations. This page shows how to find the volume where each side is cheaper.

On this page

Is Azure Key Vault cheaper than self-hosted OpenBao for your secret volume?

The short answer is that it depends on operation volume, your key and HSM choices, how many certificates you renew, and who would run OpenBao. Azure Key Vault charges scale with use, so a low-volume vault with a handful of secrets can be inexpensive, while a high-volume estate with frequent reads, HSM-protected keys and many certificate renewals can cost materially more. OpenBao reverses that shape: its costs are mostly fixed, made up of servers, storage, backups, optional HSM hardware, setup work and the on-call effort to keep the service healthy. The break-even point sits where your Key Vault bill, driven by your own operation counts, grows past the fixed cost of running OpenBao at the reliability you need. No break-even figure is stated here because it can only be calculated from your own numbers.

Start with your own Azure price sheet. Key Vault rates are set by Azure's published pricing and vary by region and tier (Standard or Premium for keys, and separate rates for Managed HSM pools and certificate renewals), so take the figures from the region where your vaults actually run. Pull a month of operation counts from Azure Monitor or your billing export, split by secret reads, key operations, certificate requests and renewals, and identify which applications generate most of the traffic. Then list what OpenBao would cost to run: the number of nodes for high availability, the storage backend you choose, backup storage, whether you need an HSM for auto-unseal or key protection, and the staff hours for upgrades and incident response. Ask any implementation partner for a quote built from a written scope, and ask them to show each cost component separately so you can compare it line by line with the Azure bill.

Which cost components matter on each side

This table sets each Azure Key Vault cost component against its self-hosted OpenBao counterpart and marks whether it is one-time or recurring. Check the Azure column against the current Azure price sheet and the OpenBao column against your own infrastructure and staffing figures. The main takeaway is that Key Vault charges follow usage, while OpenBao costs follow the capacity and people you commit to, so the break-even point depends on your volume.

Cost componentAzure Key Vault (billed by Azure)Self-hosted OpenBao (who pays and for what)One-time or recurring
Key Vault operationsBilled per operation on the Azure price sheet, so cost follows reads, writes and key usesNo per-call fee; you pay for the nodes and the staff who run them, so cost follows capacityRecurring, scales with request volume on the Azure side
HSM-protected keysBilled per key, with a higher tier needed for HSM-backed keys; confirm current rates on the price sheetSoftware-protected keys carry no license fee; HSM protection needs a hardware or cloud HSM you pay forRecurring
Certificate renewalsBilled per renewal request, so cost grows with certificate count and renewal frequencyThe PKI secrets engine issues certificates on your servers; cost is the effort to automate issuance and renewalRecurring, mostly internal effort
Managed HSM poolsBilled for each provisioned pool on the price sheet, whether or not the pool is busyNo pool fee; the equivalent is the HSM capacity you buy or rent for your own clusterRecurring
OpenBao servers and storageNone; Azure operates the service and its underlying infrastructureCompute for the nodes your HA design needs, plus Raft or PostgreSQL storage, backups and networkingRecurring, grows with node count and data size
Optional HSM for unseal or key protectionCovered by the Key Vault HSM tier pricing already listed on the price sheetHardware or cloud HSM you choose, bought outright or rented; check the vendor quote for each modelOne-time or recurring, depending on the purchase model
Setup and migrationVault setup is configuration work; exporting secrets and re-creating keys is a separate projectDesign, installation, auth method mapping and cutover; DeployOpen engagements are usually fixed-scope and quoted from written scopeOne-time
On-call, upgrades and patchingAzure handles platform patching; your team still owns application-side changesYour team or a retainer covers paging, OpenBao upgrades, backup and restore tests, and certificate rotationRecurring
Internal skillsFewer specialist skills needed for the service itselfStaff or contractors who know Raft or PostgreSQL, unseal procedures, auth methods and incident responseRecurring, usually the largest hidden cost

What moves the Key Vault and OpenBao comparison

Azure Key Vault bills by operation, key and renewal, while OpenBao costs follow the servers, storage and people you run. The drivers below decide which side is cheaper, and each one pushes cost in a different direction on each side.

Operation volume and read patterns

Key Vault charges per operation, so every application that reads a secret on each request adds to the bill. Caching secrets in applications or sidecars, and batching reads where the client allows it, lowers Key Vault volume. On OpenBao, extra reads mostly add load to your servers rather than a metered charge, so high read volume favors self-hosting only if the cluster has spare capacity. Ask your Azure account team for the current per-10,000 operation rate and measure your real read count over a month before comparing.

HSM tier choice

Keys protected by a hardware security module cost more in Key Vault than software-protected keys, and Managed HSM is billed as a dedicated pool. On OpenBao, HSM protection is optional and comes from a supported HSM integration, which adds hardware and support cost you must buy and run. Decide which keys truly require HSM protection, because that choice moves the cost more than any other single setting. Confirm the compliance requirement in writing before you pick a tier.

Number of vaults and subscriptions

Key Vault is provisioned per vault, and teams often create one per application, environment or subscription, each with its own operation and key charges. A single OpenBao cluster can serve many teams through namespaces and policies, so its fixed cost does not grow with each new vault. The opposite risk is one shared cluster with weak tenant separation, which raises the blast radius. Count your vaults and subscriptions today and list which ones could consolidate.

Certificate renewal frequency

Key Vault certificate renewals carry their own charge per renewal request, so short-lived certificates that renew often multiply that cost. OpenBao's PKI secrets engine issues short-lived certificates from your own internal CA, which removes the per-renewal fee but moves issuance, root key handling and revocation work to your team. Public certificates still come from a public CA regardless of platform. Ask which certificates are public, which are internal and how often each one renews.

Availability and multi-region design

Key Vault gives you a managed availability design with Microsoft operating the service. An OpenBao high availability setup needs several nodes, a supported storage backend and a plan for failover between regions, all of which you pay for in compute, storage, network and engineering time. Integrated storage (Raft) and PostgreSQL are the officially supported HA backends, and the choice between them changes operating effort. Price the second and third node and the cross-region link before concluding self-hosting is cheaper.

Skills already on the platform team

The largest OpenBao cost is often people, not infrastructure. A team that already runs Kubernetes, Vault or PostgreSQL in production spends less time on setup, unseal procedures, upgrades and on-call than a team that starts from zero. Teams with Entra ID and Key Vault skills but little secrets platform experience should budget for training or an implementation partner. Estimate on-call hours per month honestly, including upgrade and incident time, and compare them with the Key Vault support plan you would drop.

How to build the Key Vault versus OpenBao cost model

This sequence turns your current Key Vault bill and usage into a side-by-side model of Azure charges and self-hosted OpenBao costs, so you can see the volume at which each option is cheaper for your environment. The output is a worksheet your finance and platform teams can check against the same inputs.

  1. Export twelve months of Key Vault billing and metrics

    Pull the last 12 months of invoice lines for every Key Vault, Managed HSM pool and certificate order from Cost Management, grouped by resource and meter. Export the matching Azure Monitor metrics for each vault so you can see operation counts by month, not just the average. Confirm that the invoice totals reconcile with the meter-level detail before you rely on any figure. The output is a monthly table per vault that separates operations, HSM-protected key charges, certificate renewals and Managed HSM pool charges.

  2. Count secrets, keys, certificates and HSM pools

    Inventory every vault in your subscriptions and record how many secrets, keys and certificates each holds, including disabled items and items in soft-delete retention. Count the certificate renewals in the same period and note which keys are HSM-protected and which are software-protected, because Azure bills them differently. Record every Managed HSM pool and its region. Ask the platform team to confirm the inventory against the vault list so that nothing is missed. The output is a count sheet that becomes the quantity column in the Azure model.

  3. Estimate read volume per application from logs

    Use Key Vault diagnostic logs or Azure Monitor to group read operations by calling application, identity and vault. Identify applications that read on every request, because those drive most operation charges, and applications that read only at startup. Estimate the expected growth from the last twelve months if your release plans or scaling policies point to it. The check is that the per-application totals add up to the monthly operation count from step one. The output is a read profile that tells you where caching or fewer reads would change the Azure bill.

  4. Price the Azure lines from the published calculator

    Enter your counts and operation volumes into the Azure Pricing Calculator for the regions and tiers you use, and record the rate each line item uses. Price Managed HSM pools separately, since they are a different service with different billing. Keep the calculator output with its date and currency so the model can be rerun later. Check the result against your twelve-month invoices and explain any difference, such as credits, reservations or discounts that do not appear in the calculator. The output is a priced Azure column per year.

  5. List OpenBao infrastructure, storage and backup costs

    Describe the OpenBao topology you expect, including the number of nodes for high availability, the storage backend (integrated Raft storage or PostgreSQL, as documented in the OpenBao storage and HA references), load balancing, backup storage, and whether you need an external HSM or auto-unseal service. For each item, record who pays (your cloud account, your data center, or a managed database service you already run) and whether it is a recurring cost or a one-time purchase. Ask your infrastructure team for their own unit rates. The output is a bill of materials with a recurring and a one-time column.

  6. Add setup, migration and on-call hours at your rates

    Estimate the hours for the initial deployment, the application migration from managed identity to OpenBao auth methods, testing, documentation, and the recurring operation work such as upgrades, backups and incident response. Multiply each estimate by your own loaded hourly rates, which you must supply, and separate one-time effort from recurring effort. If you buy implementation or support from an outside firm, use the written scope and quote for that line. The output is a labor column that you can compare with the Azure column year by year.

  7. Find the volume where the totals cross

    Build a simple model with operations per month on the horizontal axis and yearly total cost for Azure and for OpenBao on the vertical axis, holding the other inputs constant. Find the point where the two lines cross, and repeat the calculation for certificate renewals and HSM-protected keys, since those drive cost differently. Test the crossover against your read profile and against the scenario where read volume grows. Have finance and the platform owner review the worksheet. The output is a documented break-even point with its assumptions, which is the basis for a decision.

How the answer changes by operating model

Illustrative example: a small engineering team with one or two vaults, a handful of applications and secrets read mainly at deployment time. Key Vault charges are tied to operations, so light reads keep that line item modest. The OpenBao side is dominated by fixed costs: a host or two, storage, backups, monitoring and the time someone spends on upgrades and unseal procedures. At this scale the managed service often costs less, unless the team already has spare capacity to host OpenBao.

  • Fixed platform cost: A single OpenBao node still needs a host, backups and monitoring, and those costs do not fall with a light workload.
  • Operations time: Upgrades, unseal key handling and certificate renewal usually fall to whoever is on call, often a developer with other duties.
  • Low read volume: Infrequent reads keep per-operation charges small, which makes the managed service hard to beat on price.
  • Where the balance can shift: Adding dynamic database credentials or a growing number of non-Azure workloads can change the comparison.

Ask what share of an engineer's time would go to operating the service and whether existing servers could host it without new purchases.

Costs teams forget on each side

Headline prices rarely decide a secrets platform budget. The costs that surprise teams sit in data movement, duplicated vaults, retention settings and the people who keep a self-hosted cluster recoverable. Check each item on both sides before comparing totals.

Data egress charges

Reading secrets from Key Vault across regions, clouds or on-premises networks can add network transfer charges that sit outside the per-operation line. Workloads that pull secrets on every request multiply this cost. Ask the Azure account team to model egress for each consuming region, and count it against the self-hosted option's network path, which is usually inside your own data center or cloud network.

Duplicate vaults per subscription

Key Vault is scoped per vault, so many teams and subscriptions often end up with many vaults, each with its own access policies, monitoring and minimum operational overhead. A single OpenBao cluster with namespaces can serve several teams, which changes how many environments you pay to run. Inventory your vaults and map which ones could share a tenant boundary.

Soft-delete and purge retention

Soft-delete keeps deleted vaults and objects recoverable for a retention period you configure, and purge protection can block early removal. Retained objects can continue to be billed and can delay re-creating a name or a vault. Confirm the retention setting on every vault and decide who owns the purge decision before you plan the cutover.

Azure-side monitoring

Diagnostic logs, Log Analytics ingestion and alerting on vault access are billed separately from the vault itself. Teams that enable full audit logging on many vaults often find the monitoring line grows faster than the secret count. Ask which log categories you need for your audit trail, then price their ingestion volume rather than assuming it is included.

Backup and restore testing

A self-hosted cluster needs regular restore tests of its storage backend and snapshots, which take engineer time on a schedule. Key Vault backups only restore inside Azure, so the self-hosted team also owns a restore path that Microsoft does not run for you. Budget the recurring test hours and record the results as evidence for your auditors.

Unseal key custody

OpenBao starts sealed and needs unseal material to open, so the people and systems that hold those keys become a cost and a risk. Custody needs documented holders, split knowledge and a rehearsed procedure for a 2 a.m. restart. Agree the custody model, and any HSM or cloud KMS auto-unseal you add, before you size the operations team.

Certificate and TLS maintenance

Every OpenBao listener, peer connection and client needs a certificate that you issue, track and renew yourself. If Key Vault certificate renewals are billed per request today, the self-hosted equivalent shifts that work to your PKI process. Inventory the certificates that currently come from Key Vault and assign an owner and renewal date to each.

Storage growth and upgrade windows

Raft or PostgreSQL storage grows with audit and lease history, and it needs capacity planning and periodic compaction checks. Upgrades also consume planned windows, and the migration guide tests specific source versions only, so check your path before scheduling. Track storage growth monthly and reserve change windows for each minor release.

What a migration adds to the first-year cost

A move from Key Vault to OpenBao adds one-time work on top of the recurring run costs, and that work is usually the largest single item in year one. Budget it as separate lines: secret export through the API, re-creation of keys, application changes to authentication, and a period of parallel running. Key Vault backups only restore inside Azure, so the practical route for secret values is reading them through the Key Vault API and writing them into OpenBao, which means someone must write, run and verify that export tooling. Ask any implementation partner to price this as a fixed scope with named deliverables, and confirm the size of the secret inventory before agreeing a number.

Keys are the costly exception. Key material in Key Vault that is marked as non-exportable cannot be copied, so each such key must be re-created in OpenBao or in a separate HSM, and every system that encrypts or signs with it must be re-pointed and re-tested. Ask which keys in your vault are exportable, which are backed by Managed HSM, and which hold data that must be re-encrypted. Each of these decisions changes the effort, and none of them can be settled by looking at the monthly Azure bill.

Switching applications is the next line item. Workloads that authenticate to Key Vault with managed identities need OpenBao auth methods instead, such as Kubernetes, JWT/OIDC, AppRole or TLS certificates, and each service needs its own role and policy. The OpenBao migration guide describes an in-place upgrade from Vault Community 1.14.1 on Raft storage with Shamir unseal, and it was tested only against that version. A Key Vault migration is a different path, so confirm with the OpenBao project and your implementer which steps apply to you, and scope them separately. Plan parallel running for a defined period so both systems serve the same applications during cutover, and cost that period as recurring infrastructure and staff time.

Questions buyers ask before comparing costs

How much does it cost to run OpenBao compared with Azure Key Vault?

OpenBao has no license fee, so its cost is the infrastructure and people that run it: servers or nodes, storage, backups, load balancing, optional HSM hardware or service, and the engineering time for setup and on-call operations. Key Vault instead bills per operation, per protected key, per certificate renewal and per Managed HSM pool. The comparison depends on your own volumes and on what your team already runs. Build a model with your current Key Vault usage reports, the number of secrets read per day, the number of HSM-protected keys and the certificate renewal count, then price the OpenBao side with your own cloud or data center rates. Confirm current Azure rates on the Azure pricing pages before you rely on them.

Can our team run OpenBao without outside help?

Often yes, if you have engineers comfortable with Kubernetes or Linux services, TLS, backups and incident response, because OpenBao is an open-source platform you operate yourself. The harder parts are high availability design, unseal and key custody procedures, auth method configuration for Azure workloads, and tested restore procedures. The OpenBao high availability documentation describes the officially supported HA backends, integrated storage (Raft) and PostgreSQL, and that choice affects how much operational work you take on. Ask your team to list who would be on call, which skills are missing and how many hours a month operations would take, then decide where outside help fits. DeployOpen plans, implements, hardens, backs up and documents self-hosted platforms in your infrastructure under a written, fixed scope.

How long does a migration from Key Vault to OpenBao take?

The duration depends mostly on how many vaults, secrets, keys and certificates you have, how many applications read them, and how many of those applications use Azure managed identity directly. Keys usually have to be re-created rather than copied, so the work for keys is larger than for plain secret values. Secret values are readable through the API, which makes bulk export possible, but each consumer must then be switched to OpenBao auth methods and tested. Plan the cutover in waves, starting with low-risk workloads, and keep Key Vault running until each wave is verified. OpenBao's migration guide covers an in-place upgrade from Vault Community 1.14.1, which is a different path from moving out of Key Vault. Ask any provider for a timeline tied to a written inventory of your vaults and consumers.

Which Key Vault costs are hardest to predict?

The costs that move most are the ones that scale with application behavior rather than with the number of secrets. Operation charges grow with every read, which means caching, retry storms, deployment pipelines and polling jobs can multiply the bill without any new feature. Certificate renewals depend on how many certificates you issue and how often they expire or are replaced, including short-lived certificates. HSM-protected keys and Managed HSM pools carry fixed or per-key charges that can persist after a project ends. Review Key Vault metrics and cost exports for the last several months, then group operations by application and environment. The same grouping shows which consumers would dominate OpenBao load and which could be moved first.

What should a quote for self-hosted OpenBao include?

A useful quote lists each component separately so you can compare it with your own Azure figures. Ask for the scope of design, installation, integration with your identity provider and Azure workloads, hardening, backup and restore testing, documentation, and handover. Ask which items are one-time, such as design and migration, and which recur, such as upgrades, support and continuous testing. Ask what infrastructure you would pay for directly, including compute, storage, load balancers, backup targets, monitoring and any HSM. Ask what assumptions the quote makes about secret volume, HA layout and on-call hours, and what changes the price. Engagements at DeployOpen are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that scope.

When is Azure Key Vault the better choice?

Key Vault is often the better choice when your workloads are mostly inside Azure, when services need customer-managed keys that Azure resources can use directly, or when your team has little appetite for operating a stateful secrets platform. Its per-operation billing is also simple for low volumes. OpenBao becomes more attractive when operation volumes are high, when you need dynamic secrets, encryption as a service or auth methods beyond Entra ID, when you run workloads across several clouds or on premises, or when licensing and data residency rules matter. Many organizations keep Key Vault for Azure services that require it and use OpenBao for everything else. Confirm which Azure services in your estate depend on Key Vault before deciding.

What to ask for in a fixed-scope quote

A fixed-scope quote for an OpenBao replacement of Key Vault should name each architecture decision explicitly, because each one changes the recurring cost. Ask for the high availability design in writing: which nodes run, where they sit across availability zones or regions, and how the active node and standbys are load balanced. Ask for the storage backend choice between integrated storage (Raft) and PostgreSQL, since the OpenBao storage documentation describes PostgreSQL as easier to operate safely than Raft, and that choice determines whether you pay for a database service or for additional cluster nodes and their disks. State whether an HSM is in scope for auto-unseal or key protection, and if it is, which device or cloud service carries the recurring fee. Name the auth method mapping too, for example which Entra ID workloads move to JWT/OIDC, Kubernetes or AppRole, since that mapping sets the size of the identity work.

Migration and operations items drive the one-time effort. Ask for migration waves with a named set of vaults or secrets in each wave, a backup and restore test before any cutover, and a rollback step for each wave. Require that the restore test be a real restore into the OpenBao cluster, not a file check. Ask for handover and documentation covering runbooks, unseal and recovery procedures, and who holds the recovery material. Confirm the OpenBao version the design targets. OpenBao v2.7.1 was released on October 1, 2026 as the current release, so the quote should name that version and state how future minor and patch upgrades are handled. Whether an optional retainer for upgrades, security patches and on-call support is included, or priced separately, should be a line item in the quote rather than an assumption.

Confirm also what the quote excludes. Key material that cannot be exported from Key Vault has to be re-created, and the quote should say who performs that work and whose application changes it covers. Ask the provider to separate one-time costs (design, build, migration, testing, handover) from recurring costs (infrastructure, storage, licenses if any, support), so you can compare them with Key Vault's per-operation billing over the same period. DeployOpen issues quotes only after the written scope is agreed, so compare every proposal against the same list of items.

How DeployOpen scopes a fixed-price OpenBao implementation

DeployOpen plans and implements self-hosted OpenBao inside your own cloud accounts, data centers or air-gapped networks. Engagements are fixed-scope, so the cost components discussed on this page are written into an agreed scope before any work starts.

How we scope

  • Inventory every Key Vault in use, with secret, key, certificate and operation volumes taken from your own logs and billing data
  • Agree in writing which workloads move to OpenBao, which stay in Key Vault and which need customer-managed keys
  • Define the HSM requirement, storage backend and HA design, which drive the server and operations line items
  • Confirm the Azure prices that apply to your agreement and region before comparing totals

How we build

  • Deploy OpenBao in your environment with the storage backend and unseal method agreed in the scope
  • Configure auth methods for your workloads, replacing managed identity access where the scope requires it
  • Test failover, backup restore and secret retrieval paths against the agreed acceptance criteria
  • Model the cost by component at your measured volume so the comparison reflects your own usage

How we hand over

  • Document the architecture, unseal procedure, backup and restore steps and upgrade path
  • Provide a runbook for on-call staff covering routine operations and incident response
  • Train your operations team on policies, auth configuration and lease management
  • Hand over cost tracking so your team can see recurring server, storage and operations spend

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover
  • Plan OpenBao upgrades against the release notes and migration guidance published by the project
  • Schedule periodic restore tests and access reviews as part of the retainer scope if you choose
  • Ask for the retainer terms, response expectations and included testing in your written quote

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.