AzureBicepResourceExtensions.GetSecretOutput 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.
Caution
GetSecretOutput is obsolete. Use IAzureKeyVaultResource.GetSecret instead.
Gets a reference to a secret output from a bicep template. This is an output that is written to a keyvault using the "keyVaultName" convention.
[System.Obsolete("GetSecretOutput is obsolete. Use IAzureKeyVaultResource.GetSecret instead.")]
public static Aspire.Hosting.Azure.BicepSecretOutputReference GetSecretOutput(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureBicepResource> builder, string name);
public static Aspire.Hosting.Azure.BicepSecretOutputReference GetSecretOutput(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureBicepResource> builder, string name);
[<System.Obsolete("GetSecretOutput is obsolete. Use IAzureKeyVaultResource.GetSecret instead.")>]
static member GetSecretOutput : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureBicepResource> * string -> Aspire.Hosting.Azure.BicepSecretOutputReference
static member GetSecretOutput : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureBicepResource> * string -> Aspire.Hosting.Azure.BicepSecretOutputReference
<Extension()>
Public Function GetSecretOutput (builder As IResourceBuilder(Of AzureBicepResource), name As String) As BicepSecretOutputReference
Parameters
- builder
- IResourceBuilder<AzureBicepResource>
The resource builder.
- name
- String
The name of the secret output.
Returns
A BicepSecretOutputReference that represents the output.
- Attributes