---
type: resource-type
title: KeyVault
description: azure resource type Microsoft.KeyVault/vaults
name: KeyVault
lexicon: azure
resource_type: Microsoft.KeyVault/vaults
---
`Microsoft.KeyVault/vaults`, a resource type of the azure lexicon.

## Properties

- `name` (`string`, required): The name of the vault.
- `properties` (`KeyVault_VaultProperties`, required): Properties of the vault
- `location` (`string`, optional): The supported Azure location where the key vault should be created.
- `resources` (`any[]`, optional)
- `tags` (`Record<string, unknown>`, optional): The tags that will be assigned to the key vault.

## Attributes

- `id`
- `provisioningState`
- `vaultUri`

## Governed by

- [AZR016](/rules/AZR016.md): Key Vault soft-delete not enabled — enable to protect against accidental deletion
- [AZR017](/rules/AZR017.md): Key Vault purge protection not enabled — enable to prevent permanent deletion during retention period
