Partager via


ISecretManager.GetSecretAsync(String, String) Method

Definition

Gets a secret.

public System.Threading.Tasks.Task<string> GetSecretAsync (string vaultBaseUrl, string secretName);
abstract member GetSecretAsync : string * string -> System.Threading.Tasks.Task<string>
Public Function GetSecretAsync (vaultBaseUrl As String, secretName As String) As Task(Of String)

Parameters

vaultBaseUrl
String

The URL for the vault containing the secrets. The format of this should be like: https://{yourkeyvault}.vault.azure.net

secretName
String

The name of the secret in the given vault.

Returns

The secret

Applies to