Blog›Azure Security
Security basics · Updated October 2026

What Is Key Vault in Azure

Azure Key Vault keeps passwords, API keys, encryption keys and certificates safe in the cloud. Learn what it stores, how it improves security, pricing basics and common uses.

✍️ Azure Trainings trainers⏱ 4 min read📅 Updated 11 October 2026
⚡ Short answer

Azure Key Vault is a secure cloud safe for secrets (passwords, API keys, connection strings), keys (encryption keys) and certificates (TLS/SSL). Apps fetch these values at runtime using a managed identity, so nothing sensitive is written into code or config files — and every access is logged.

The basics

Understanding Key Vault in Azure

Think of Key Vault as a locked safe in the cloud. Only people and apps you allow can open it.

🔑

Secrets

Passwords, API keys and connection strings.

🗝️

Keys

Encryption keys used to encrypt and sign data.

📜

Certificates

TLS/SSL certificates for websites and services, with auto-renewal support.

Why it matters

How Key Vault improves security

1

No secrets in code

Values live in the vault, not in source files or config.

2

Strong access control

Microsoft Entra ID and Azure RBAC decide who can read what.

3

Managed identities

Apps sign in to Key Vault without storing any password.

4

Audit logs

See who accessed which secret and when.

5

Hardware protection

Premium tier and Managed HSM protect keys in HSMs.

6

Recovery

Soft delete and purge protection help recover deleted items.

Honest view

Pros and cons of Azure Key Vault

✅ Pros

•  Central, secure storage for secrets, keys and certificates

•  Works with most Azure services

•  Fine-grained access control and logging

•  Certificate auto-renewal support

•  Low cost for typical use

⚠️ Cons

•  Needs setup: roles, network rules, identities

•  Request limits apply — chatty apps should cache values

•  HSM options cost more

🔐 Want hands-on practice with Key Vault, managed identities and RBAC? Join a free demo class.

Book a free demo
Costs

Azure Key Vault pricing

Key Vault is pay-as-you-go. Your bill depends on:

•  The tier — Standard or Premium

•  The number of operations (reads and writes)

•  HSM-protected keys (Premium)

•  Certificate renewals

•  Managed HSM, billed separately per hour

Check current rates on the official Key Vault pricing page.

Real use

What is Azure Key Vault used for?

🌐

Web app connection strings

Database connection strings read at runtime.

🔌

Third-party API keys

Payment, email or SMS provider keys.

📜

TLS certificates

Certificates for websites, renewed automatically.

🗄️

Customer-managed keys

Encryption keys for Azure Storage or SQL.

⚙️

CI/CD pipelines

Secrets for Azure DevOps pipelines.

📊

Data pipelines

Credentials for Data Factory and Databricks.

Comparisons

Key Vault vs config files, and vs Managed HSM

Config files / codeAzure Key Vault
SecurityEasy to leak (e.g. pushed to Git)Encrypted, access-controlled
RotationUpdate every app and redeployUpdate once in the vault
AuditingNoneFull access logs
Access controlAnyone with the fileOnly allowed users and apps
🔒

Key Vault (Standard / Premium)

Multi-tenant service for secrets, keys and certificates. Premium adds HSM-protected keys.

🏛️

Managed HSM

Dedicated, single-tenant HSM pool for keys only — for strict compliance needs.

✅ ✅ Rule of thumb: Most applications only need Key Vault Standard or Premium. Use it with managed identities and Azure RBAC.

Go deeper

Read our complete Azure Key Vault guide for setup steps, or explore the Azure DevOps and Azure Data Engineer courses.

Still wondering?

Frequently asked questions

What is Azure Key Vault?

A Microsoft Azure service that securely stores and controls access to secrets, encryption keys and certificates.

Is Azure Key Vault free?

No, but it is low-cost for typical use. You pay mainly per operation, with extra charges for HSM-protected keys.

What is the difference between a key and a secret?

A secret is any sensitive value you store and read back, like a password. A key is a cryptographic key used to encrypt or sign data without exposing the key itself.

How do apps access Key Vault securely?

Using a managed identity and Azure RBAC, so no password is stored in the app.

Can I recover a deleted secret?

Yes, if soft delete is on (it is by default), within the retention period.

🎓
Written by the Azure Trainings training team

Based on what we teach in our batches and see in real projects. Last updated 11 October 2026. Spotted something outdated? Tell us on WhatsApp.

Secure your apps

Learn Azure security hands-on

Live classes with labs on Key Vault, managed identities and RBAC. Sit in on a class for free.

Keep reading
Free demo

Book a free demo class

See a real session before you commit — no obligation.

Thank you! Our counsellor will call you shortly to schedule your free demo.