# Aspire.Hosting.Azure.KeyVault

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

## Types

- [AzureBicepResource](/reference/api/typescript/aspire.hosting.azure.keyvault/azurebicepresource.md) -- `handle` - 9 members
- [AzureEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.keyvault/azureenvironmentresource.md) -- `handle` - 2 members
- [AzureKeyVaultResource](/reference/api/typescript/aspire.hosting.azure.keyvault/azurekeyvaultresource.md) -- `handle` - 5 members
- [AzureKeyVaultSecretResource](/reference/api/typescript/aspire.hosting.azure.keyvault/azurekeyvaultsecretresource.md) -- `handle` - 0 members
- [AzureProvisioningResource](/reference/api/typescript/aspire.hosting.azure.keyvault/azureprovisioningresource.md) -- `handle` - 1 members
- [AzureResourceInfrastructure](/reference/api/typescript/aspire.hosting.azure.keyvault/azureresourceinfrastructure.md) -- `handle` - 3 members
- [AzureUserAssignedIdentityResource](/reference/api/typescript/aspire.hosting.azure.keyvault/azureuserassignedidentityresource.md) -- `handle` - 0 members
- [BicepOutputReference](/reference/api/typescript/aspire.hosting.azure.keyvault/bicepoutputreference.md) -- `handle` - 3 members
- [IAzureKeyVaultResource](/reference/api/typescript/aspire.hosting.azure.keyvault/iazurekeyvaultresource.md) -- `interface` - 0 members
- [IAzureKeyVaultSecretReference](/reference/api/typescript/aspire.hosting.azure.keyvault/iazurekeyvaultsecretreference.md) -- `interface` - 0 members
- [IAzureResource](/reference/api/typescript/aspire.hosting.azure.keyvault/iazureresource.md) -- `interface` - 9 members

## Functions

- [addAzureEnvironment](/reference/api/typescript/aspire.hosting.azure.keyvault/addazureenvironment.md) -- `method` -- Adds the shared Azure environment resource to the application model
- [addAzureInfrastructure](/reference/api/typescript/aspire.hosting.azure.keyvault/addazureinfrastructure.md) -- `method` -- Adds an Azure provisioning resource to the application model
- [addAzureKeyVault](/reference/api/typescript/aspire.hosting.azure.keyvault/addazurekeyvault.md) -- `method` -- Adds an Azure Key Vault resource
- [addAzureProvisioning](/reference/api/typescript/aspire.hosting.azure.keyvault/addazureprovisioning.md) -- `method` -- Adds Azure provisioning services to the distributed application builder
- [addAzureUserAssignedIdentity](/reference/api/typescript/aspire.hosting.azure.keyvault/addazureuserassignedidentity.md) -- `method` -- Adds an Azure user-assigned identity resource
- [addBicepTemplate](/reference/api/typescript/aspire.hosting.azure.keyvault/addbiceptemplate.md) -- `method` -- Adds an Azure Bicep template resource from a file
- [addBicepTemplateString](/reference/api/typescript/aspire.hosting.azure.keyvault/addbiceptemplatestring.md) -- `method` -- Adds an Azure Bicep template resource from inline Bicep content
- [addSecret](/reference/api/typescript/aspire.hosting.azure.keyvault/addsecret.md) -- `method` -- Adds a secret to the Azure Key Vault from a parameter resource
- [addSecretFromExpression](/reference/api/typescript/aspire.hosting.azure.keyvault/addsecretfromexpression.md) -- `method` -- Adds a secret to the Azure Key Vault from a reference expression
- [addSecretWithName](/reference/api/typescript/aspire.hosting.azure.keyvault/addsecretwithname.md) -- `method` -- Adds a named secret to the Azure Key Vault from a parameter resource
- [addSecretWithNameFromExpression](/reference/api/typescript/aspire.hosting.azure.keyvault/addsecretwithnamefromexpression.md) -- `method` -- Adds a named secret to the Azure Key Vault from a reference expression
- [asExisting](/reference/api/typescript/aspire.hosting.azure.keyvault/asexisting.md) -- `method` -- Marks an Azure resource as existing in both run and publish modes by using parameter resources
- [clearDefaultRoleAssignments](/reference/api/typescript/aspire.hosting.azure.keyvault/cleardefaultroleassignments.md) -- `method` -- Clears the default Azure role assignments from a resource
- [configureInfrastructure](/reference/api/typescript/aspire.hosting.azure.keyvault/configureinfrastructure.md) -- `method` -- Configures the Azure provisioning infrastructure callback
- [getBicepIdentifier](/reference/api/typescript/aspire.hosting.azure.keyvault/getbicepidentifier.md) -- `method` -- Gets the normalized Bicep identifier for an Azure resource
- [getOutput](/reference/api/typescript/aspire.hosting.azure.keyvault/getoutput.md) -- `method` -- Gets an output reference from an Azure Bicep template resource
- [getSecret](/reference/api/typescript/aspire.hosting.azure.keyvault/getsecret.md) -- `method` -- Gets a secret reference from the Azure Key Vault
- [isExisting](/reference/api/typescript/aspire.hosting.azure.keyvault/isexisting.md) -- `method` -- Determines whether a resource is marked as existing
- [publishAsConnectionString](/reference/api/typescript/aspire.hosting.azure.keyvault/publishasconnectionstring.md) -- `method` -- Publishes an Azure resource to the manifest as a connection string
- [publishAsExisting](/reference/api/typescript/aspire.hosting.azure.keyvault/publishasexisting.md) -- `method` -- Marks an Azure resource as existing in publish mode
- [publishAsExistingFromParameters](/reference/api/typescript/aspire.hosting.azure.keyvault/publishasexistingfromparameters.md) -- `method` -- Marks an Azure resource as existing in publish mode by using parameter resources
- [runAsExisting](/reference/api/typescript/aspire.hosting.azure.keyvault/runasexisting.md) -- `method` -- Marks an Azure resource as existing in run mode
- [runAsExistingFromParameters](/reference/api/typescript/aspire.hosting.azure.keyvault/runasexistingfromparameters.md) -- `method` -- Marks an Azure resource as existing in run mode by using parameter resources
- [withAzureUserAssignedIdentity](/reference/api/typescript/aspire.hosting.azure.keyvault/withazureuserassignedidentity.md) -- `method` -- Associates an Azure user-assigned identity with a compute resource
- [withEnvironmentFromKeyVaultSecret](/reference/api/typescript/aspire.hosting.azure.keyvault/withenvironmentfromkeyvaultsecret.md) -- `method` -- Sets an environment variable from an Azure Key Vault secret reference
- [withEnvironmentFromOutput](/reference/api/typescript/aspire.hosting.azure.keyvault/withenvironmentfromoutput.md) -- `method` -- Sets an environment variable from a Bicep output reference
- [withKeyVaultRoleAssignments](/reference/api/typescript/aspire.hosting.azure.keyvault/withkeyvaultroleassignments.md) -- `method` -- Assigns Key Vault roles to a resource
- [withLocation](/reference/api/typescript/aspire.hosting.azure.keyvault/withlocation.md) -- `method` -- Sets the Azure location for the shared Azure environment resource
- [withParameter](/reference/api/typescript/aspire.hosting.azure.keyvault/withparameter.md) -- `method` -- Adds a Bicep parameter without a value
- [withParameterFromConnectionString](/reference/api/typescript/aspire.hosting.azure.keyvault/withparameterfromconnectionstring.md) -- `method` -- Adds a Bicep parameter from a connection string resource builder
- [withParameterFromEndpoint](/reference/api/typescript/aspire.hosting.azure.keyvault/withparameterfromendpoint.md) -- `method` -- Adds a Bicep parameter from an endpoint reference
- [withParameterFromOutput](/reference/api/typescript/aspire.hosting.azure.keyvault/withparameterfromoutput.md) -- `method` -- Adds a Bicep parameter from another Bicep output reference
- [withParameterFromParameter](/reference/api/typescript/aspire.hosting.azure.keyvault/withparameterfromparameter.md) -- `method` -- Adds a Bicep parameter from a parameter resource builder
- [withParameterFromReferenceExpression](/reference/api/typescript/aspire.hosting.azure.keyvault/withparameterfromreferenceexpression.md) -- `method` -- Adds a Bicep parameter from a reference expression
- [withParameterStringValue](/reference/api/typescript/aspire.hosting.azure.keyvault/withparameterstringvalue.md) -- `method` -- Adds a Bicep parameter with a string value
- [withParameterStringValues](/reference/api/typescript/aspire.hosting.azure.keyvault/withparameterstringvalues.md) -- `method` -- Adds a Bicep parameter with a string list value
- [withResourceGroup](/reference/api/typescript/aspire.hosting.azure.keyvault/withresourcegroup.md) -- `method` -- Sets the Azure resource group for the shared Azure environment resource

## Enums

- [AzureKeyVaultRole](/reference/api/typescript/aspire.hosting.azure.keyvault/azurekeyvaultrole.md) -- `enum` - 13 values
- [DeploymentScope](/reference/api/typescript/aspire.hosting.azure.keyvault/deploymentscope.md) -- `enum` - 4 values
