{{vault:key}} namespace as local secrets, so your requests don’t need to know where a secret comes from.
Each secret row carries its own vault name, so a single connection can read from several key vaults in the same Azure tenant.
What you need from Azure
Requestly signs in to Azure with the service principal client credentials flow, so you need an app registration and a client secret before you configure anything in the app.Note the key vault name
my-vault in https://my-vault.vault.azure.net/). You enter this name per secret in Requestly, not once per connection.Register an application
- The Directory (tenant) ID.
- The Application (client) ID.
Create a client secret
Grant the app access to the secrets
Setting up an Azure provider
Open the Vault page
Connect a provider
Choose Azure Key Vault and enter credentials

Test the connection
Save
Adding and fetching secrets
Add a secret mapping
- Alias: the key you’ll use in
{{vault:alias}} - Vault name: the key vault to read from, for example
my-vault - Secret name: the name of the secret inside that vault

Fetch the values
Check the result
- Never fetched: the Secret column shows Not fetched.
- Fetched: the Secret column shows a masked value. Hover the value and click the eye icon to reveal it.
- Failed: the Secret column shows Error in red, with the error message on a line beneath the row. Any value the row showed before is cleared.
Use it in a request
{{vault:alias}} in any request field. It resolves on send just like a local secret.Remove a secret mapping
To remove a mapping, open the row menu and select Delete. This removes the mapping and its cached value from Requestly. Nothing changes in Azure.Vault and secret name rules
Requestly checks both names before calling Azure, so most typos fail immediately with a clear message:- Vault name: 3 to 24 characters, letters, numbers, and hyphens only, starting with a letter and ending with a letter or number.
- Secret name: 1 to 127 characters, letters, numbers, and hyphens only.
Invalid vaultName or Invalid secretName error on the row.
Reading from multiple key vaults
Because the vault name lives on each secret row rather than on the connection, one Azure provider configuration can read from any number of key vaults, as long as the same app registration has access to each of them:Refreshing secrets after rotation
Fetched values are cached locally and survive app restarts. Requestly also re-fetches every secret of the active configuration automatically when the app starts, so a secret rotated in Azure overnight is usually current before you send your first request. While that startup fetch runs, the Secret Provider section shows a “Loading secrets from provider at startup” banner. If the startup fetch fails, a warning banner names the affected configuration and offers a Fetch secrets button to retry. You can click Fetch secrets at any time to pull the current values for every row in the section. The Last fetched label next to the configuration selector helps you judge staleness.Multiple Azure configurations
You can store several Azure configurations (for example, one per Entra ID tenant) and switch between them:- Click the configuration selector in the Secret Provider section header. Azure entries are labeled
<Instance name> (Azure). - Select a different configuration. The secret table swaps to that configuration’s secrets.
- One Azure configuration is active at a time, and
{{vault:key}}resolves from that one. Secrets from an active configuration of a different provider, such as AWS Secrets Manager, keep resolving alongside it.
Errors and what they mean
Fetch errors appear beneath the affected row. A failed fetch also clears that secret’s cached value from disk and memory, so{{vault:alias}} stops resolving until a fetch succeeds. Only the rows that failed are affected: every other row keeps its value.
FAQ
Do JSON secrets expand into dot-separated keys?
Do JSON secrets expand into dot-separated keys?
Can I use several Azure tenants at the same time?
Can I use several Azure tenants at the same time?
{{vault:key}}, and an active configuration of a different provider, such as AWS Secrets Manager, keeps resolving alongside it. Switch between Azure configurations using the configuration selector in the Secret Provider section header.Can I pin a secret to a specific version?
Can I pin a secret to a specific version?
Can I convert an Azure secret into a local secret?
Can I convert an Azure secret into a local secret?
Where is my client secret stored?
Where is my client secret stored?
Can scripts modify Azure secrets?
Can scripts modify Azure secrets?
rq.vault is read-only from scripts. Only rq.vault.get(), rq.vault.has(), and rq.vault.toObject() are available. Manage Azure secrets from the Vault page or in Azure directly.


