Skip to main content
An Azure DNS connection lets Infisical manage DNS records in your Azure DNS zones. Infisical supports two methods for connecting to Azure DNS: Client Secret and Managed Identity.
To use client secret authentication, ensure your Azure Service Principal has the required permissions to manage DNS records in your Azure DNS Zone.
If you want to configure automatic client secret rotation for this App Connection, you also need to grant either Application.ReadWrite.OwnedBy or Application.ReadWrite.All permissions.
Prerequisites:
  • Set up Azure and have an existing DNS Zone.
  • An Azure Service Principal (App Registration) with a Client Secret.
1

Navigate to your DNS Zone

In the Azure Portal, navigate to your DNS Zone that you want to use for ACME DNS validation. Select Access control (IAM) in the left sidebar, then select Add > Add role assignment.Navigate to DNS Zone
2

Assign DNS Zone Contributor Role

Search for and select the DNS Zone Contributor role, then click Next.Select DNS Zone Contributor Role
3

Select your Service Principal

Click Select members, search for your App Registration (Service Principal), select it, and click Select.Select Service PrincipalClick Review + assign to complete the role assignment.
With managed identity authentication, Infisical connects as a user-assigned managed identity with access to the DNS zone you want to use, and doesn’t store a secret for the connection.If you self-host Infisical, set SITE_URL to a URL that Azure can reach from the internet, because Azure fetches Infisical’s signing keys from it.
1
In the Azure portal, go to Managed Identities and select Create. Choose a subscription, resource group, region, and name, then select Review + create and Create.
2
Open the managed identity and copy the Client ID from its Overview page. Copy your Tenant ID from the Overview page of Microsoft Entra ID.
3
Open your DNS zone and select Access control (IAM) > Add > Add role assignment. Choose the DNS Zone Contributor role, then select Next.Under Assign access to, select Managed identity, then use Select members to pick your managed identity. Select Review + assign.

Setup Azure DNS connection in Infisical

1

Navigate to App Connections

Navigate to the App Connections page in the desired project.App Connections Tab
2

Add Connection

Select the Azure DNS Connection option from the connection options modal.Select Azure DNS Connection
3

Create Connection

Fill in the Tenant ID, Client ID, Client Secret, and Subscription ID fields with the credentials from your Azure Service Principal.Connect to Azure DNS
You can find your Subscription ID in the Azure Portal under Subscriptions. The Tenant ID and Client ID can be found in your App Registration’s Overview page.
You can optionally enable Automatic Credential Rotation for this connection. See the Automatic Credential Rotation section below for details.
4

Connection Created

Your Azure DNS Connection is now available for use in your Infisical projects.Azure DNS Connection Created

Automatic credential rotation

When using the Client Secret authentication method, Infisical can automatically rotate the Client Secret of your Azure application on a recurring schedule. When enabled, Infisical will immediately generate a new Client Secret on connection creation and revoke the original one, ensuring that no external party retains access using the credentials you provided.
1

Locate the Key ID of your Client Secret

Before enabling rotation, you’ll need the Key ID of the Client Secret you’re using to authenticate. Navigate to your App Registration in the Azure Portal, then go to Certificates & secrets. Copy the Secret ID (Key ID) of the secret you’re providing to Infisical.Azure Client Secret Key ID
2

Enable Automatic Credential Rotation

When creating or editing your connection, toggle on the Automatic Credential Rotation switch.Enable Automatic Credential Rotation
3

Provide the Client Secret Key ID

Enter the Key ID you copied in the previous step into the Client Secret Key ID field. Infisical uses this to revoke your original secret after generating a new one.Client Secret Key ID Field
4

Configure the Rotation Schedule

Set the Rotation Interval (in days) to define how often the credential should be rotated, and set Rotate At to the local time of day at which the rotation should occur.
  • Rotation Interval - How many days between each rotation.
  • Rotate At - The local time of day at which the rotation will be triggered. Rotation Schedule