Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs says to use TerraformTaskV4@4 task but provides no details and pipeline editor says it does not exist #25638

Open
1 task done
mortenn opened this issue Apr 16, 2024 · 3 comments

Comments

@mortenn
Copy link

mortenn commented Apr 16, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

latest in ubuntu image

AzureRM Provider Version

3.99.0

Affected Resource(s)/Data Source(s)

n/a

Terraform Configuration Files

n/a

Debug Output/Panic Output

n/a

Expected Behaviour

The docs should contain information about how to use the TerraformTaskV4@4 task or a link to documentation for the task

Actual Behaviour

The docs just says to use the task to easily connect, but the pipeline editor in devops claims the task does not exist

Steps to Reproduce

Open the docs at this url: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_oidc#setting-up-an-application-and-service-principal-in-azure

Scroll down near the bottom, to the section "Azure DevOps Pipelines"

Read the sentence "Use the TerraformTaskV4@4 task to easily connect Terraform to Azure using your workload identity."

Important Factoids

No response

References

No response

@liuwuliuyun
Copy link
Contributor

Hi @mortenn , thanks for raising this issue. You will need to install the extension to use TerraformTaskV4 or to install Terraform. You could login your account and install it from Visual Studio Market Place.

Setting up the Terraform extension in your Azure DevOps pipeline involves a few key steps. Here’s a simplified guide to get you started:

  1. Install the Terraform Extension:
  • Go to the Visual Studio Marketplace and find the Terraform extension.
  • Install it to your Azure DevOps organization.
  1. Create a Service Connection:
  • In Azure DevOps, navigate to ‘Project settings’ > ‘Service connections’.
  • Create a new service connection for Azure Resource Manager, providing the necessary permissions.
  1. Set Up a New Pipeline:
  • In your Azure DevOps project, go to ‘Pipelines’ > ‘New pipeline’.
  • Connect to the repository where your Terraform configuration files are stored.
  1. Define Your Pipeline YAML:
  • Use the YAML editor to define the pipeline stages, which will include Terraform commands like init, validate, plan, and apply.
  • Specify the Terraform version and the service connection to use.
  1. Run the Pipeline:
  • Save and run your pipeline to execute the Terraform code and deploy your infrastructure.

@liuwuliuyun
Copy link
Contributor

You could raise issue in https://github.com/microsoft/azure-pipelines-terraform incase you encounter any problems using this extension

@mortenn
Copy link
Author

mortenn commented Apr 17, 2024

Thanks for the clarification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants