Azure OAuth on a Self-Hosted Instance
Azure OAuth on a Self-Hosted Instance
- Set up Azure.
Create an application in Azure

Create the application. As part of the form, set the Redirect URI to https://your-domain.com/organization/app-connections/azure/oauth/callback.
Assign API permissions to the application
Azure DevOps permissions
Set the API permissions of the Azure application to include the following permissions:- Azure DevOps
-
user_impersonation -
vso.project_write -
vso.variablegroups_manage -
vso.variablegroups_write
-
Add your application credentials to Infisical


Back in your Infisical instance, add two new environment variables for the credentials of your Azure application.INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID: The Application (Client) ID of your Azure application.INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET: The Client Secret of your Azure application.
Azure DevOps personal access token (PAT)
Azure DevOps personal access token (PAT)
Create a new Azure DevOps personal access token (PAT)
When using the Azure DevOps Access Token connection you’ll need to create a new personal access token (PAT) in order to authenticate Infisical with Azure DevOps.Navigate to Azure DevOps

Create a new token

Copy the new access token

Client Secret Authentication
Client Secret Authentication
- Set up Azure and have an existing Azure DevOps organization.
- The service principal must be connected to your target Azure DevOps organization and project(s)
Assign API permissions to the service principal
Azure DevOps permissions
Set the API permissions of your Azure service principal to include the following Azure DevOps permissions:- Azure DevOps
-
user_impersonation -
vso.project_write -
vso.variablegroups_manage -
vso.variablegroups_write
-
Application.ReadWrite.OwnedBy or Application.ReadWrite.All permissions.Setup Azure Connection in Infisical
Navigate to App Connections

Add Connection

Create Connection
- OAuth
- Access Token
- Client Secret
Fill in Connection Details

Grant Access

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.Locate the Key ID of your Client Secret

Enable Automatic Credential Rotation

Provide the Client Secret Key ID

Configure the Rotation Schedule
- Rotation Interval - How many days between each rotation.
-
Rotate At - The local time of day at which the rotation will be triggered.

