# Aspire.Hosting.Azure.KeyVault

- Module: `Aspire.Hosting.Azure.KeyVault`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `4`
- Types: `3`

## Types

- [AzureKeyVaultResource](/reference/api/typescript/aspire.hosting.azure.keyvault/azurekeyvaultresource.md) -- `handle` - 2 members
- [AzureKeyVaultSecretResource](/reference/api/typescript/aspire.hosting.azure.keyvault/azurekeyvaultsecretresource.md) -- `handle` - 0 members

## Functions

- [addAzureKeyVault](/reference/api/typescript/aspire.hosting.azure.keyvault/addazurekeyvault.md) -- `method` -- Adds an Azure Key Vault resource to the application model.
- [addSecret](/reference/api/typescript/aspire.hosting.azure.keyvault/addsecret.md) -- `method` -- Adds a secret to the Azure Key Vault
- [getSecret](/reference/api/typescript/aspire.hosting.azure.keyvault/getsecret.md) -- `method` -- Gets a secret reference for the specified secret name from the Azure Key Vault resource.
- [withKeyVaultRoleAssignments](/reference/api/typescript/aspire.hosting.azure.keyvault/withkeyvaultroleassignments.md) -- `method` -- Assigns the specified roles to the given resource, granting it the necessary permissions on the target Azure Key Vault resource. This replaces the default role assignments for the resource.

## Enums

- [AzureKeyVaultRole](/reference/api/typescript/aspire.hosting.azure.keyvault/azurekeyvaultrole.md) -- `enum` - 13 values -- Represents ATS-compatible Key Vault roles.
