Member-only story

Fixing the Terraform Console Output Encoding in Azure DevOps

Jack Roper
May 25, 2021

--

When using Terraform in an Azure DevOps release pipeline, you may notice that the encoding on the console output has annoying characters displayed. This is caused by Terraform attempting to output colors to the console to signify additions, deleting, changes, etc. Azure DevOps can’t handle this, examples are as follows:

To fix this, in your Terraform stages in the release pipeline, under ‘additional command arguments’, add:

-no-color

Remember to add it to each Terraform stage, init, plan, apply, destroy etc.

The console output now looks better!

Want more Terraform content? Check out my other articles on Terraform here!

Cheers! 🍻

--

--

Jack Roper
Jack Roper

Written by Jack Roper

A blog about DevOps & Cloud Tech. Specializing in Terraform, Kubernetes, GitHub, Azure & Azure DevOps! ☁️

No responses yet