Azure Key Vault is a managed Azure service for storing and controlling access to application secrets, cryptographic keys, and certificates. Instead of embedding sensitive credentials in code or configuration files, authorized applications can retrieve secrets or request cryptographic operations through Microsoft Entra ID and Azure access controls.
Developers are adopting Azure Key Vault to centralize access, reduce credential exposure, and support protected secrets and cryptographic operations across applications, environments, and DevOps workflows.
What is Azure Key Vault?
Azure Key Vault is a managed Azure service for secrets management, cryptographic key management, and certificate management. It gives authorized users and workloads a central place to access sensitive objects instead of scattering them across source code, deployment files, servers, and individual workstations.
The service provides access controls, versioning, logging, recovery features, and integrations with other Azure services. It can reduce the amount of custom infrastructure a team must build, but it does not secure an application automatically. Identity, authorization, networking, rotation, monitoring, and recovery still need to be configured for the workload.
| Azure Key Vault is | Azure Key Vault is not |
|---|---|
| A managed store for secrets, keys, and certificates | A substitute for application security or access design |
| A service that authorizes object access and cryptographic operations | A public certificate authority that validates publishers |
| An Azure platform service with software and HSM-backed protection options | A promise that every stored customer key is HSM-protected |
| A building block for centralized and automated workflows | A guarantee that every CA or signing tool supports the same workflow |
What Does Azure Key Vault Store?
Azure Key Vault stores three main object types: secrets, cryptographic keys, and certificates. They are managed through the same service family, but each serves a different purpose.
| Object | What it contains | Common use |
|---|---|---|
| Secrets | Sensitive values such as passwords, API tokens, connection strings, and other application credentials | Giving an authorized workload access to a protected value without placing it in source code |
| Keys | Cryptographic key material used through supported operations | Encryption, decryption, signing, verification, and key wrapping |
| Certificates | Certificate objects and associated lifecycle information; a certificate may be backed by a Key Vault key and secret | TLS, application identity, and supported certificate-management workflows |
A certificate object in Key Vault is not automatically a publicly trusted code-signing certificate. Public code signing still requires the appropriate certificate product, subscriber validation, CA-supported key provisioning, and a compatible signing configuration.
How Does Azure Key Vault Work?
A user, application, or workload authenticates through Microsoft Entra ID, and Azure checks its permissions before allowing access to an object or cryptographic operation. The caller may be a person, a service principal, or a managed identity assigned to an Azure resource.
The workload requests access
An application, build service, administrator, or other approved caller sends a request to the vault.
Microsoft Entra ID authenticates the caller
The caller proves its identity. Azure-hosted workloads can often use managed identities instead of stored application credentials.
Azure authorizes the request
Azure RBAC determines whether the identity has permission to perform the requested action. Control-plane roles govern vault administration; data-plane roles govern access to objects and operations.
Key Vault performs the permitted action
The service may return a secret or certificate, or perform an approved cryptographic operation with a key that remains inside its protection boundary.
The activity can be monitored
Azure Monitor, diagnostic settings, logs, and alerts help teams review use and investigate unexpected access patterns.
The distinction between the two permission surfaces matters. The control plane covers management tasks such as creating a vault or changing configuration. The data plane covers access to secrets, keys, certificates, and cryptographic operations. A user who can manage an Azure resource does not necessarily need permission to read its secrets or use its keys.
How Does Azure Key Vault Use HSMs?
Azure protects Key Vault data at rest, but the protection model for customer keys depends on the service tier and key type. Standard vaults use software-protected customer keys. Premium vaults can use HSM-protected keys, while Managed HSM provides a separate single-tenant service dedicated to cryptographic keys.
A hardware security module (HSM) is a specialized cryptographic system that protects keys and performs approved cryptographic operations within a controlled security boundary.
Microsoft documents newly created HSM-backed keys in Key Vault Premium and keys in Managed HSM under its current FIPS 140-3 Level 3 validation position. Teams with a specific regulatory or procurement requirement should verify the current Microsoft documentation, certificate scope, region, and key configuration that apply to their deployment.
Azure Key Vault Standard vs Premium vs Managed HSM
Standard, Premium, and Managed HSM differ in key protection, access control model, supported objects, and intended use. Standard and Premium are multitenant Key Vault tiers that support secrets, keys, and certificates. Managed HSM is a dedicated, single-tenant service focused on cryptographic keys.
| Option | Key Vault Standard | Key Vault Premium | Managed HSM |
|---|---|---|---|
| Protection model | Software-protected customer keys | Software-protected keys plus supported HSM-protected keys | Dedicated single-tenant HSM pool |
| Access control | Access policies or Azure RBAC | Access policies or Azure RBAC | Local RBAC for key operations; Azure RBAC for managing the HSM resource |
| Stored objects | Secrets, keys, and certificates | Secrets, keys, and certificates | Cryptographic keys |
| General fit | General secret, certificate, and key management when a customer HSM boundary is not required | Applications that need the broader Key Vault object model and HSM-backed protection for selected keys | Organizations that need a dedicated HSM service, stronger administrative isolation, or a key-focused deployment |
The right option depends on the objects being managed, the required protection boundary, and the access model. Standard suits general secret, certificate, and software-protected key workloads. Premium supports the same object types while adding HSM-protected key options. Managed HSM is intended for cryptographic-key workloads that need a dedicated, single-tenant HSM service and stronger administrative isolation. Object support, operational ownership, availability design, and integration requirements should drive the decision.
Why Are Developers Adopting Azure Key Vault?
Developers use Azure Key Vault to remove sensitive values from application code, centralize access, and let authorized workloads use protected objects through managed Azure identities and policies. Its value is operational as much as cryptographic: multiple teams can use one governed access model instead of inventing a different secret or key process for every application.
- Fewer embedded credentials: applications can request permitted secrets at runtime instead of storing them in source repositories or ordinary configuration files.
- Managed identities: supported Azure resources can authenticate without another client secret that the team must store and rotate.
- Centralized authorization: Azure RBAC can limit who administers a vault, who reads objects, and who performs cryptographic operations.
- Lifecycle and recovery controls: versioning, rotation planning, soft delete, purge protection, backup procedures, and recovery testing can be managed consistently.
- Visibility: logs, diagnostic settings, and alerts provide a record of access and administrative changes.
- Distributed workflows: authorized services and team members can use a centrally protected object without passing a physical device or copying key material between systems.
- Azure integration: organizations already using Azure compute, data, deployment, and identity services can connect Key Vault to their existing operating model.
Common Azure Key Vault Use Cases
Azure Key Vault supports application secret management, encryption-key protection, certificate management, and controlled cryptographic operations. Common uses include:
Secrets and environment separation
Store database credentials, API tokens, and connection strings outside application code. Separate vaults or permissions can keep development, testing, and production values apart.
Encryption and signing keys
Protect keys used for supported encryption, decryption, wrapping, signing, and verification operations without giving the application raw key material.
TLS and application identity
Manage supported certificates and lifecycle tasks, including enrollment and renewal, for services that use certificates for secure connections or workload identity.
Customer-managed encryption keys
Provide customer-managed keys to supported Azure services when an organization needs more control over encryption-key ownership and access.
Pipeline and deployment secrets
Fetch secrets and certificates into build and release pipelines at deployment time instead of storing them in pipeline variables, build logs, or source repositories.
Protected signing operations
Protect the signing key behind release workflows, letting authorized build systems request signing operations without exporting the private key.
How is Azure Key Vault Used for Code Signing?
Azure Key Vault can support code signing by generating or provisioning and protecting the private signing key in an HSM-backed Azure environment. Authorized processes can then request signing operations without exporting the key. This model can centralize signing authority across distributed teams, build systems, and controlled release services.
In a compatible workflow, the issuing CA validates the subscriber and issues the code-signing certificate through its supported provisioning process. The signing key is generated or provisioned using the required Azure protection model. Microsoft Entra identities and Azure RBAC then determine which users or workloads may request operations with that key.
When software is ready for release, the signing tool calculates the required digest and submits the appropriate signing request through the configured integration. The cryptographic operation occurs with the protected key, and the resulting signature is returned to the signing process. The private key itself does not need to be copied to a developer laptop, build agent, or shared file.
This architecture is useful when multiple approved workflows need controlled access, when a build pipeline signs releases, or when physical token custody would create delays. Central permissions and Azure logging can also support separation of duties and investigation. For example, the people who administer the vault do not automatically need permission to sign, and the build identity does not need broad vault-management rights.
Azure Key Vault does not issue a publicly trusted code-signing certificate or replace publisher validation. It also does not replace the signing tool, timestamp service, certificate-chain validation, malware controls, or platform-specific release requirements. The issuing CA, certificate product, key type, provisioning method, signing software, and Azure configuration must all support the intended workflow.
Azure Key Vault vs USB Token for Code Signing
Azure Key Vault suits controlled distributed and automated signing, while a USB token may be simpler for one signer and low-volume releases. Automating a USB-token workflow may require dedicated middleware or signing infrastructure. Both models can provide hardware-backed protection when the certificate and deployment meet the applicable requirements; their operational models are different.
| Consideration | Azure Key Vault Deployment | USB Token Deployment |
|---|---|---|
| Key location | Protected in a supported Azure HSM environment | Protected on the physical token |
| Access | Authorized through identities, roles, policies, and integrations | Requires access to the connected token and its authentication method |
| Team use | Supports controlled access for distributed workflows | Usually centered on a device or workstation |
| Automation | Can support automated signing when correctly configured | Often requires dedicated middleware or infrastructure |
| Administration | Azure configuration, access controls, monitoring, networking, and usage cost | Token custody, drivers, PIN management, availability, and physical handling |
| Best fit | Distributed teams and controlled automated signing | Individual signers and lower-volume workflows |
Neither option is universally better. Team size, signing frequency, automation needs, Azure expertise, incident procedures, and CA support should drive the decision.
What Should Teams Consider Before Adopting Azure Key Vault?
A secure Key Vault deployment depends on the correct service tier, identity model, permissions, network controls, recovery settings, and monitoring. Teams should define the operating model before moving production secrets or signing keys.
- Classify the object and protection requirement. Decide whether the workload needs secrets, certificates, software-protected keys, HSM-protected keys, or a dedicated Managed HSM environment.
- Prefer workload identities. Use managed identities where supported, so applications do not need another long-lived credential.
- Apply least privilege. Assign narrowly scoped Azure RBAC roles and separate vault administration, object management, and key-use duties.
- Choose sensible boundaries. Separate applications, teams, regions, or environments when shared access would create unnecessary risk or operational coupling.
- Restrict network access. Evaluate firewall rules, trusted services, private endpoints, and DNS design based on the systems that must reach the vault.
- Plan recovery before launch. Configure soft delete and purge protection as required, then document backup, availability, and restoration procedures and test them.
- Monitor use. Route diagnostic logs to the appropriate destination and alert on unexpected permission changes, failures, or cryptographic activity.
- Prepare lifecycle processes. Define object ownership, rotation, expiration response, access reviews, and incident handling.
- Plan for service limits and resiliency. Applications should handle throttling and transient failures with appropriate retry and backoff behavior, especially when retrieving secrets or requesting cryptographic operations at scale.
- Confirm code-signing compatibility early. Before creating or provisioning a signing key, verify the CA, certificate product, key type, Azure service, region, and signing integration.
Azure Key Vault FAQs
Is Azure Key Vault an HSM?
Can Azure Key Vault Be Used for Code Signing?
Does Azure Key Vault Replace a USB Signing Token?
Can Private Keys Be Exported from Azure Key Vault?
Centralized Key Protection for Modern Development
Azure Key Vault gives development teams a controlled way to manage sensitive application objects and request cryptographic operations. Its main advantage is not simply that secrets and keys are “in the cloud.” It is that identities, permissions, protection choices, monitoring, and recovery can be designed around a shared service instead of being dispersed across codebases and individual machines.
For code-signing teams, that model can support secure distributed or automated signing when the certificate, CA provisioning process, Azure environment, and signing tools are compatible. A USB token may still be the simpler choice for a single signer. The appropriate deployment is the one that protects the key while fitting the publisher’s actual release workflow.
Need a Code Signing Certificate for Azure Key Vault?
Compare OV and EV certificate options for supported Azure signing deployments.