> For the complete documentation index, see [llms.txt](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults/azure-key-vault.md). Agents can also search and read this documentation through its [MCP server](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/~gitbook/mcp).

# Azure Key Vault

Azure Key Vault configuration reference for Veza Secrets Vaults

This reference guide provides detailed steps for configuring Azure Key Vault to support Veza's Secrets Vaults feature. For the complete setup process, see the [main Secrets Vaults guide](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults.md).

## Overview

Azure Key Vault is Microsoft's cloud service for securely storing and accessing secrets. This guide covers the Azure-specific configuration requirements for integrating with Veza's Secrets Vaults feature.

## Prerequisites

* An Azure account with permission to create and manage Key Vaults
* A Microsoft Azure subscription with Key Vault service enabled
* Access to create and manage application credentials in Azure Active Directory
* An external [Insight Point](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point.md) deployed in your environment

## Azure Key Vault setup

### Create or configure Key Vault

1. Navigate to the Azure portal and search for "Key vaults".
2. Create a new Key Vault or select an existing one.

   Ensure the Key Vault is accessible from your network where the Insight Point is deployed.
3. Note the **Vault URI** for your configuration.

   This will be in the format: `https://your-vault-name.vault.azure.net/`

### Configure access control

Azure Key Vault supports two authorization models: **Azure RBAC** (recommended) and **Access Policies** (legacy). Microsoft recommends using Azure RBAC for new deployments.

#### Option 1: Azure RBAC (Recommended)

For new Key Vaults or those migrated to RBAC:

1. Ensure your Key Vault uses the RBAC permission model:

   ```bash
   az keyvault update --name "<vault-name>" --resource-group "<resource-group-name>" --enable-rbac-authorization true
   ```
2. Navigate to your Key Vault resource.
3. Select **Access control (IAM)** from the left navigation.
4. Click **+ Add** > **Add role assignment**.
5. Configure the role assignment:
   * **Role:** "Key Vault Secrets User" (for read access to secrets)
   * **Assign access to:** "User, group, or service principal"
   * **Select:** Choose the Azure AD application you created for Veza
6. Click **Save** to apply the role assignment.

#### Option 2: Access Policies (Legacy)

For existing Key Vaults using access policies:

1. Navigate to your Key Vault resource.
2. Select **Access policies** from the left navigation.
3. Click **+ Add Access Policy**.
4. Configure the following permissions:
   * **Secret permissions:** Get, List
   * **Select principal:** Choose the Azure AD application you created for Veza
   * **Authorized application:** Leave blank unless using specific application restrictions
5. Click **Add** and then **Save** to apply the policy.

> **Note:** Microsoft recommends migrating to Azure RBAC for improved security and management. See [Microsoft's migration guide](https://learn.microsoft.com/en-us/azure/key-vault/general/rbac-migration) for details.

## Azure Active Directory application setup

### Set up Azure AD application

If you already have an Azure integration configured with Veza, you can use the existing app registration. Otherwise, follow the steps in the [Azure integration guide](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/integrations/azure.md#1-register-a-new-application-for-veza) to create an app registration.

For secrets vault access, your app registration needs Key Vault permissions. If you need to create a new app registration specifically for secrets vault access:

1. Navigate to **Azure Active Directory** > **App registrations**.
2. Click **New registration**.
3. Configure the application:
   * **Name:** "Veza Secrets Vault Access" (or your preferred name)
   * **Supported account types:** Single tenant (recommended)
   * **Redirect URI:** Leave blank for this use case
4. Click **Register**.
5. Record the following values from the **Overview** page:
   * **Application (client) ID**
   * **Directory (tenant) ID**

### Generate client secret

1. From your application registration, navigate to **Certificates & secrets**.
2. Click **New client secret**.
3. Configure the secret:
   * **Description:** "Veza Insight Point Access"
   * **Expires:** Choose an appropriate expiration based on your security policies
4. Click **Add**.
5. **Important:** Copy the secret **Value** immediately.

   This value will only be displayed once and cannot be retrieved later.

![Creating a new secret.](https://1967633068-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZDkWMxox3pekd0NsZJ%2Fuploads%2Fgit-blob-868912c1c83942ec88c3357e4eb19660da6d86e7%2Fazure-secrets-create-secret.png?alt=media)

## Configure the vault on the Insight Point

Add an `azure_key_vault` entry to the secrets vault configuration file on your external Insight Point (see [Configure vault access on Insight Point](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults.md#configure-vault-access-on-insight-point) for how the file is loaded):

```yaml
vaults:
  - name: 'MyVault'
    vault_provider: 'azure_key_vault'
    auth_type: 'client_secret'
    auth_config:
      vault_uri: 'https://my-vault.vault.azure.net/'
      tenant_id: '11111111-2222-3333-4444-555555555555'
      client_id: 'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'
      client_secret: 'my-secret'
```

**Field reference:** All fields are required.

* `name`: The label for the vault in the **External Vault** list when you configure an integration. It must be unique among the vaults on one Insight Point.
* `vault_provider`: `azure_key_vault`.
* `auth_type`: `client_secret`, the only supported authentication type for Azure Key Vault. The Insight Point authenticates as the Azure AD application created above.
* `vault_uri`: The Key Vault's URI, such as `https://my-vault.vault.azure.net/`.
* `tenant_id`, `client_id`, `client_secret`: The Azure AD application's **Directory (tenant) ID**, **Application (client) ID**, and client secret value.

## Secret formats

Store each integration's credentials as one JSON secret in the Key Vault. For the JSON keys each integration expects, see [Create external secrets in Azure Key Vault](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults.md#create-external-secrets-in-azure-key-vault).

## Security considerations

### Network isolation

* Ensure your Key Vault is accessible from the Insight Point's network
* Consider using Azure Private Link for additional network isolation
* Implement network security groups (NSGs) to restrict Key Vault access

### Access control

* Follow the principle of least privilege when configuring access policies
* Regularly rotate client secrets and API tokens
* Monitor Key Vault access logs for unusual activity

### Certificate management

* Encode each certificate the way its integration expects: Active Directory `ldaps_certificate` and LDAP `ca_certificate` take base64-encoded PEM, and PEM private keys are stored as PEM text. See [Create external secrets in Azure Key Vault](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults.md#create-external-secrets-in-azure-key-vault)
* Ensure certificates are properly escaped for JSON formatting
* Monitor certificate expiration dates and plan for rotation

## Troubleshooting

### Authentication issues

**Problem:** "Access denied" errors when Insight Point attempts to retrieve secrets

**Solutions:**

1. Verify the client ID and secret are correct in the vault configuration
2. Check that access policies include both "Get" and "List" permissions for secrets
3. Ensure the tenant ID matches your Azure AD tenant
4. Verify the application registration is in the correct tenant

### Network connectivity issues

**Problem:** Connection timeouts when accessing Key Vault

**Solutions:**

1. Verify network connectivity from the Insight Point to Azure Key Vault endpoints
2. Check firewall rules and network security groups
3. Confirm the Key Vault URI is correct and accessible
4. Test connectivity using tools like `curl` or `wget` from the Insight Point

### Secret format issues

**Problem:** Integration fails to authenticate with target systems

**Solutions:**

1. Verify JSON formatting is correct (no extra spaces, proper escaping)
2. Ensure field names match the expected format for your integration type
3. Validate that each certificate uses the encoding its integration expects, such as base64-encoded PEM for `ldaps_certificate`
4. Check that credentials are valid for the target system

### Vault entry is ignored

**Problem:** The vault doesn't appear in the **External Vault** list, and the Insight Point logs `Invalid secrets vault configuration` with a list of violations. When no vault on the Insight Point is valid, the list is empty, with the tooltip "No vaults found on selected insight point. Please create a vault."

**Solutions:**

1. Confirm that the integration uses the Insight Point whose configuration file defines the vault
2. `Must be one of: client_secret` means `auth_type` is not `client_secret`
3. `Cannot be empty` names a missing `vault_uri`, `tenant_id`, `client_id`, or `client_secret`

### Configuration file issues

**Problem:** Vault configuration not loaded by Insight Point

**Solutions:**

1. Verify the `SECRETS_VAULTS_CONFIG_PATH` environment variable is set correctly
2. Check that the YAML file is properly formatted
3. Ensure the Insight Point process has read permissions for the configuration file
4. Review Insight Point logs for configuration parsing errors

## See also

* [Main Secrets Vaults configuration guide](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults.md)
* [Insight Point deployment guide](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/insight-point.md)
* [Azure Key Vault documentation](https://learn.microsoft.com/en-us/azure/key-vault/)
* [Register an application in Microsoft Entra ID](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veza.com/4yItIzMvkpAvMVFAamTf/integrations/connectivity/secrets-vaults/azure-key-vault.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
