Skip to main content
Version: Next

Azure Key Vault Get Secret

Gets a secret value from an Azure Key Vault, based on the secret name.

Description

To function properly, this brick requires authentication credentials values and the name of the Azure Key Vault from which to retrieve the secret.

In Azure Key Vault, an access policy must be configured to grant your Azure application permission to access the vault.

A recommended approach to provide authentication details is to use this brick alongside the <b>"Get Parameter"</b> brick, which retrieves these values from the backend configuration. Typically, the required parameters are:

  • azure.oauth2.appId (the tenant id)
  • azure.oauth2.clientId (the client id)
  • azure.oauth2.clientSecret (the client secret)
  • azure.oauth2.vaultName (the vault name)

Here's an example of configuration:

azure": &#123;
"oauth2": &#123;
"appId": "&lt;tenant_id&gt;",
"clientId": "&lt;client_id&gt;"
&#125;
&#125;

Inputs

  • Control Flow (Control Flow)
  • Secret name (String): The name of the secret you want to get.
  • Vault name (String): The name of the vault where to get the secret.
  • Tenant id (String): Azure tenant to use for the authentication.
  • Client id (String): Azure client ID to use for the authentication.
  • Client secret (String): Azure client secret to use for the authentication.

Outputs

  • Control Flow (Control Flow)
  • Secret value (String): The value of the secret retrieved from the Vault.
  • Error Flow (Error Flow)