» Configuring Azure DevOps Services Access
These instructions are for using dev.azure.com for Terraform Cloud’s VCS features. Other supported VCS providers have separate instructions.
Connecting Terraform Cloud to your Azure DevOps Services VCS involves four steps:
|On your VCS||On Terraform Cloud|
|Register your Terraform Cloud organization as a new app. Get ID and key.|
|Tell Terraform Cloud how to reach VCS, and provide ID and key. Get callback URL.|
|Provide callback URL.|
|Connect your Terraform Cloud organization to your Azure DevOps Services project.|
The rest of the page explains these steps in more detail.
» Step 1: From your Azure DevOps Services Profile, Create a New Application
Open your Azure DevOps Services Profile in a browser tab; log in to your Azure DevOps Services account if necessary.
Important: The Azure DevOps Services account you use for connecting Terraform Cloud must have admin access since creating webhooks requires admin permissions. If you're unable to load the link above, you can create a new application for the next step at one of the following links:
Click the “Create new application” link at the bottom of the left column under the “Applications and services” header. The next page is a form asking for your company and application information. At the minimum, you’ll need to provide your company name, application name (Terraform Cloud), application website (
https://app.terraform.ioor the URL of your Terraform Enterprise instance), and authorization callback URL.
The authorization callback URL can be a placeholder, as you’ll update it with the actual callback value in Step 2.
In the "Authorized scopes" section, select only “Code (read)” and “Code (status)” and then click “Create Application.”
Important: Do not add any additional scopes beyond "Code (read)" and "Code (status)," as this can prevent Terraform Cloud from connecting. Note that these authorized scopes cannot be updated after the application is created; to fix incorrect scopes you must delete and re-create the application.
After creating the application, the next page displays its details. Leave this page open in a browser tab. In the next step, you will copy and paste the unique App ID and Client Secret from this page, and in a later step you will update the application's callback URL.
If you accidentally close this details page and need to find it later, you can reach it from the "Applications and Services" links at the bottom left of your profile.
» Step 2: On Terraform Cloud, Add a New VCS Provider
Open Terraform Cloud in your browser and navigate to the “Settings > VCS Providers” page for your organization. Click the “Add VCS Provider” button.
If you just created your organization, you might already be on this page. Otherwise:
- Click the upper-left organization menu, making sure it currently shows your organization
- Click the “Settings” link at the top of the page (or within the ☰ menu)
- On the next page, click “VCS Providers” in the left sidebar
- Click the “Add a VCS Provider” button
The next page has a drop-down and several text fields. Select "Azure DevOps Services" from the drop-down.
(Optional) Enter a display name for your Azure DevOps Services VCS Provider.
Enter your Azure DevOps Services application's App ID and Client Secret. These can be found in the application's details, which should still be open in the browser tab from Step 1.
Verify the information entered on this page, and then click “Create VCS provider.” This will take you back to the VCS Providers page which now includes your new Azure DevOps Services client.
Locate the new client’s Callback URL and copy it to your clipboard; you’ll paste it in the next step. Leave this page open in a browser tab.
» Step 3: Within your Azure DevOps Services Application, Update your Callback URL
Open your Azure DevOps Services Profile browser tab from Step 1. If you accidentally closed it, you can reach it by navigating to your Azure DevOps Services Profile, logging in, and finding your application settings in the bottom of the left column.
Edit your application.
Paste the callback URL you received from Step 2 in the Authorization callback URL entry.
Save the updated application settings. You can now close this browser tab.
» Step 4: On Terraform Cloud, Connect Organization
Go back to your Terraform Cloud browser tab and click the “Connect organization
<NAME>” button on the VCS Providers page.
This takes you to a page on Azure DevOps Services asking whether you want to authorize the app.
Click the "Accept" button at the bottom of the authorization page. This returns you to Terraform Cloud’s VCS Providers page, where the Azure DevOps Services client’s information has been updated.
Note: If you receive a 404 error from Azure DevOps Services, it likely means your callback URL has not been configured correctly.
At this point, Azure DevOps Services access for Terraform Cloud is fully configured, and you can create Terraform workspaces based on your organization’s repositories.