Fixing the Terraform Console Output Encoding in Azure DevOps
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