2023-10-09 17:36:48 -07:00
---
2023-10-09 19:54:53 -07:00
title_tag: azure-secrets Pulumi ESC Provider
meta_desc: The azure-secrets Pulumi ESC Provider enables you to dynamically import Secrets from Azure Key Vault into your Environment.
title: azure-secrets
h1: azure-secrets
2023-10-09 17:36:48 -07:00
meta_image: /images/docs/meta-images/docs-meta.png
menu:
pulumicloud:
2023-10-09 19:54:53 -07:00
identifier: azure-secrets
2023-10-09 17:36:48 -07:00
parent: esc-providers
2023-10-09 19:54:53 -07:00
weight: 4
2023-10-09 17:36:48 -07:00
---
2023-10-09 19:54:53 -07:00
The `azure-secrets` provider enables you to dynamically import Secrets and Configuration from Azure Key Vault into your Environment. The provider will return a map of names to Secrets.
2023-10-09 17:36:48 -07:00
## Example
```yaml
azure:
login:
fn::open::azure-login:
clientId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
tenantId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
subscriptionId: /subscriptions/00000000-0000-0000-0000-000000000000
oidc: true
secrets:
fn::open::azure-secrets:
login: ${azure.login}
vault: example-vault-name
get:
api-key:
name: api-key
app-secret:
name: app-secret
```
2023-10-09 19:54:53 -07:00
## Inputs
2023-10-09 17:36:48 -07:00
2023-10-09 19:54:53 -07:00
| Property | Type | Description |
|----------|------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| `login` | [AzureSecretsLogin ](#azuresecretslogin ) | Credentials used to log in to Azure. |
| `vault` | string | The vault to read from. |
| `get` | map[string][AzureSecretsGet ](#azuresecretsget ) | A map from names to secrets to read from Azure Key Vault. The outputs will map each name to the secret's sensitive data. |
2023-10-09 17:36:48 -07:00
2023-10-09 19:54:53 -07:00
### AzureSecretsLogin
2023-10-09 17:36:48 -07:00
| Property | Type | Description |
|------------------|-----------------------------------|---------------------------------------------------------------------|
| `clientId` | string | The configured client ID |
| `tenantId` | string | The configured tenant ID |
| `subscriptionId` | string | The configured subscription ID |
| `clientSecret` | string | [Optional] - The client secret used for authentication, if any. |
| `oidc` | [AzureLoginOIDC ](#azureloginoidc ) | [Optional] - OIDC-related data, if OIDC is used for authentication. |
2023-10-09 19:54:53 -07:00
### AzureLoginOIDC
2023-10-09 17:36:48 -07:00
| Property | Type | Description |
|----------|----------|-------------------------------------------|
| `token` | string | The OIDC token to use for authentication. |
2023-10-09 19:54:53 -07:00
### AzureSecretsGet
2023-10-09 17:36:48 -07:00
| Property | Type | Description |
|----------------|--------|---------------------------------------------------|
| `name` | string | The name of the secret to import. |
| `version` | string | [Optional] - The version of the secret to import. |
### Outputs
| Property | Type | Description |
|----------|--------|-------------------------------------|
| N/A | object | A map of names to imported Secrets. |