Member-only story
Fixing the Terraform Console Output Encoding in Azure DevOps
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! 🍻