Introduction
In this article we will review one of most common issues, related to Azure DevOps VCS driven workflow, that prevent runs to be triggered after PR get merged into the main/master branch.
Problem
The user create Terraform Cloud workspace using Azure DevOps VCS connection.
The first run of the newly created workspace is triggered from Terraform Cloud UI and it is successful.
The issue comes when a new commit get pushed to development branch in the the Azure DevOps VCS repo.
The user will open a Pull Request from this commit, then will merge the changes to main/master branch, but Terraform Cloud run will not be triggered.
Cause
The reason for this malfunction in 99% of the cases is the missed warning into the documentation:
Important: Terraform Cloud only supports Azure DevOps connections which use
the dev.azure.com domain. If your Azure DevOps project uses the older visualstudio.com
domain, you will need to migrate using the steps provided by Microsoft.
Solution:
- Go to your Azure DevOps organization
- Click on Organization Settings
- In the Overview tab make sure that Use new URL button is switched on
Additional Information
If you are still not able to solve your issue, please reach out Terraform Cloud support at
tf-cloud@hashicorp.support or submit a ticket via our support portal.