AzureKeyVaultResourceExtensions.GetSecret Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a secret reference for the specified secret name from the Azure Key Vault resource.
public static Aspire.Hosting.Azure.IAzureKeyVaultSecretReference GetSecret(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureKeyVaultResource> builder, string secretName);
static member GetSecret : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureKeyVaultResource> * string -> Aspire.Hosting.Azure.IAzureKeyVaultSecretReference
<Extension()>
Public Function GetSecret (builder As IResourceBuilder(Of AzureKeyVaultResource), secretName As String) As IAzureKeyVaultSecretReference
Parameters
- builder
- IResourceBuilder<AzureKeyVaultResource>
The Azure Key Vault resource builder.
- secretName
- String
The name of the secret.
Returns
A reference to the secret.