AzureKeyVaultResource
Classnet10.0
A resource that represents an Azure Key Vault.
namespace Aspire.Hosting.Azure;
public class AzureKeyVaultResource : Aspire.Hosting.Azure.AzureProvisioningResource, Aspire.Hosting.ApplicationModel.IAzureResource, Aspire.Hosting.ApplicationModel.IExpressionValue, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithEndpoints, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences, Aspire.Hosting.Azure.IAzureKeyVaultResource, Aspire.Hosting.Azure.IAzureNspAssociationTarget, Aspire.Hosting.Azure.IAzurePrivateEndpointTarget{ // ...}AzureProvisioningResourceIAzureResourceIExpressionValueIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithEndpointsIValueProviderIValueWithReferencesIAzureKeyVaultResourceIAzureNspAssociationTargetIAzurePrivateEndpointTarget
10 members
Constructors1
Section titled Constructors A resource that represents an Azure Key Vault.
Properties6
Section titled PropertiesReferenceExpression Gets the connection string template for the manifest for the Azure Key Vault resource.
IsEmulator getbool Gets a value indicating whether the Azure Key Vault resource is running in the local emulator.
BicepOutputReference Gets the "name" output reference for the Azure Key Vault resource.
VaultUri getBicepOutputReference Gets the "vaultUri" output reference for the Azure Key Vault resource.
Methods3
Section titled MethodsProvisionableResource Adds a new
Primitives.ProvisionableResource into infra. The new resource represents a reference to the current Azure.AzureProvisioningResource via https://learn.microsoft.com/azure/azure-resource-manager/bicep/existing-resource. ValueTask<string?> Gets the connection string for the Azure Key Vault resource.
IAzureKeyVaultSecretReference Gets a secret reference for the specified secret name.