1. Git Connections
Self-hosting Apidog
  • Overview
  • Introduction
    • Obtaining Apidog On-Premises License
    • System Requirements
    • Data Privacy & Compliance
  • Deployments
    • Docker Deployment
      • Standalone Docker Deployment
      • Hybrid Docker Deployment
      • Multi-Containers Docker Deployment
    • Kubernetes Deployment
      • Deploying Apidog on Kubernetes using Deployment Manifest
      • Deploying Apidog on Kubernetes using Helm
  • Post Deployment
    • Accessing Apidog Admin Panel
    • Accessing Apidog Web Interface
    • Installing Apidog On-Premises Client
  • Configurations
    • Environment Variables
    • Database Configuration
    • Storage Services Configuration
    • Authentication Providers
      • Using LDAP for Authentication
      • Using OKTA for Authentication
      • Using OAuth2.0 for Authentication
    • Git Connections
      • Overview
      • GitHub
      • GitLab
      • Azure DevOps
      • Bitbucket (Beta)
  • Maintenance & Upgrades
    • Updating Apidog
    • Backing up Apidog
    • License Renewal
    • System Design Flow
  • Troubleshooting
    • Troubleshooting
    • FAQ
  • Apidog API (coming soon)
  • Changelog
    • Apidog On-Premise Changelog Q1 2026 - v2.7.38
    • Apidog On-Premise Changelog Q2 2026 - v2.7.81
    • Apidog On-Premise Changelog Q3 2026 - v2.8.35
  1. Git Connections

Azure DevOps

Version Requirement: The Azure DevOps Git connection requires Apidog On-Premises image version 2.8.35 or later.

Azure DevOps Configuration#

To integrate with Azure DevOps, you need to register an application in Microsoft Entra ID (formerly Azure Active Directory) to enable OAuth authentication.

Registering an Application in Microsoft Entra ID#

Follow the official Microsoft documentation to register your application:
https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app
Register Application

Configuration Steps#

1.
Sign in to Microsoft Entra Admin Center:
Navigate to Microsoft Entra admin center
Go to Identity > Applications > App registrations
2.
Register a New Application:
Click New registration
Provide a Name for your application (e.g., "Apidog On-Premises")
Select the appropriate Supported account types based on your organization's requirements:
Single tenant: Accounts in this organizational directory only
Multitenant: Accounts in any organizational directory (recommended for most cases)
3.
Configure Redirect URI:
Under Redirect URI, select Web as the platform
Set the redirect URI to your Apidog On-Premises API domain, followed by /api/v1/projects/git-connections/azure-callback
For example: https://your-apidog-domain.com/api/v1/projects/git-connections/azure-callback
4.
Click Register to create the application
Note the Application Details
After registration, you will see the Application (client) ID on the Overview page
Save this value as you will need it for the AZURE_DEVOPS_CLIENT_ID environment variable
5.
Create a Client Secret:
image.png
Under the Manage section in the left navigation, select Certificates & secrets
Click New client secret
Add a description and select an expiration period
Click Add
Important Note
Copy and securely store the client secret Value immediately. The secret is displayed only once upon creation and cannot be retrieved later. This value is required to configure the AZURE_DEVOPS_CLIENT_SECRET environment variable.
6.
Required OAuth Scopes
image.png
The default scope configuration includes:
vso.code_full: Grants full access to source code, including commit metadata, changesets, branches, and other version control artifacts.
vso.profile: Grants read-only access to user profile, accounts, collections, projects, teams, and other top-level organizational artifacts.
7.
Grant Admin Consent (External Tenants Only)
By default, the application is assigned the User.Read permission upon registration. For external tenants, individual users are often restricted from consenting to permissions independently. Therefore, an administrator must grant consent on behalf of the entire tenant.
Under the Manage section in the left navigation, select API permissions.
Select Grant admin consent for <Tenant Name> to authorize permission.
In the confirmation dialog, select Yes.
Select Refresh.
Ensure the Status indicator shows Granted for <Tenant Name> next to the User.Read permission.

Environment Variables#

Once you have registered your application and obtained the credentials, configure the following environment variables:
Environment VariableDescriptionDefault ValueNotes
GIT_CONNECTION_AZURE_DEVOPS_ENABLEWhether to enable Azure DevOps Git connectionfalseSet to true to enable Azure DevOps integration
AZURE_DEVOPS_AUTH_HOSTMicrosoft Entra ID authentication endpointhttps://login.microsoftonline.com/commonUse /common for multitenant or /{tenant-id} for single tenant
AZURE_DEVOPS_API_HOSTAzure DevOps API host URLhttps://dev.azure.comUse your Azure DevOps Server URL for on-premises installations
AZURE_DEVOPS_VSSPS_HOSTAzure DevOps Visual Studio Services host URLhttps://app.vssps.visualstudio.comRequired for user profile and organization information
AZURE_DEVOPS_CLIENT_IDMicrosoft Entra ID application client ID-Required - obtained from app registration
AZURE_DEVOPS_CLIENT_SECRETMicrosoft Entra ID application client secret-Required - obtained from app registration
AZURE_DEVOPS_REDIRECT_URIOAuth redirect URI-Must match the redirect URI configured in your Entra ID application
AZURE_DEVOPS_SCOPEOAuth scope permissionsoffline_access https://app.vssps.visualstudio.com/.defaultRequired scopes for repository access and user information
GIT_CONNECTION_AZURE_DEVOPS_REJECT_UNAUTHORIZEDSSL certificate validation for Azure DevOpstrueSet to false for self-signed certificates in Azure DevOps Server environments

Configuration Example for Azure DevOps Services (SaaS)#

- name: GIT_CONNECTION_AZURE_DEVOPS_ENABLE
  value: 'true'
- name: AZURE_DEVOPS_AUTH_HOST
  value: 'https://login.microsoftonline.com/common'
- name: AZURE_DEVOPS_API_HOST
  value: 'https://dev.azure.com'
- name: AZURE_DEVOPS_VSSPS_HOST
  value: 'https://app.vssps.visualstudio.com'
- name: AZURE_DEVOPS_CLIENT_ID
  value: <your-application-client-id>
- name: AZURE_DEVOPS_CLIENT_SECRET
  value: <your-application-client-secret>
- name: AZURE_DEVOPS_REDIRECT_URI
  value: 'https://your-apidog-domain.com/api/v1/projects/git-connections/azure-callback'
- name: AZURE_DEVOPS_SCOPE
  value: 'offline_access https://app.vssps.visualstudio.com/.default'
- name: GIT_CONNECTION_AZURE_DEVOPS_REJECT_UNAUTHORIZED
  value: 'true'
Modified at 2026-10-26 09:07:01
Previous
GitLab
Next
Bitbucket (Beta)
Built with