Creating Azure Dev Ops Pipeline to integrate with Terraform Cloud (CLI Version)

Kenneth Huddleston 41 Reputation points
2022-12-21T19:48:57.687+00:00

GitHub has a predefined action workflow to allow me to integrate a repository with Terraform Cloud (using the CLI integration, not the VCS integration). This is a useful feature that allows me to use Terraform Cloud as a remote backend, but still use the more versatile CLI driven syntax in my pipeline. The GitHub tool I am referring to can be seen here:

https://github.com/hashicorp/setup-terraform

Is there an equivalent functionality for Azure Dev Ops? Looking through the documentation, I have found examples of individuals linking Azure Dev Ops to terraform using the VCS setting, but that is not what I am looking for. Every other app/integration seems to assume a cloud storage account is being used for the backend - which is not the case. Struggling to understand 'if' I am able to integrate Azure Dev Ops with Terraform Cloud (remote backend) using the same CLI commands that GitHub has support for. Any thoughts?

Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2022-12-21T21:36:22.507+00:00

    Azure Devops is not currently supported here on Microsoft QnA.
    The Community Members and Engineers are actively answering questions in dedicated forums here. Please post your question in that forum:
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://azure.microsoft.com/en-in/support/devops/

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Kenneth Huddleston 41 Reputation points
    2022-12-21T20:37:06.407+00:00

    I found one 'possible' solution using a 3rd party integration available in the Azure Dev Ops store. A description of this implementation can be found here:
    https://blog.devgenius.io/how-to-configure-azure-devops-with-terraform-enterprise-cac1bbd9810b

    The app that is being used to achieve the connection is found here:
    https://marketplace.visualstudio.com/items?itemName=charleszipp.azure-pipelines-tasks-terraform

    This all looks like something of a hack, though - and I cannot find any official documentation supporting the implementation. I would still love to hear if there is a more 'above board' way of doing this.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.