Describe the bug
When using the terraform cli for a plan and adding the -publishPlanResults, followed by a terraform cli show command only populates TERRAFORM_PLAN_HAS_CHANGES variable and not the TERRAFORM_PLAN_HAS_DESTROY_CHANGES variable.
task: TerraformCLI@0
displayName: Terraform Show
inputs:
command: show
3. Execute pipeline
4. See error
No error, just not getting output variable as expected. I did get an error when I attempted to echo out the var that didnt existed.
TERRAFORM_PLAN_HAS_CHANGES==true
TERRAFORM_PLAN_HAS_DESTROY_CHANGES : The term 'TERRAFORM_PLAN_HAS_DESTROY_CHANGES' is not recognized as the name of a cmdlet, function, script file, or operable program.
5. The warnings in the pipeline indicate a destroy change:
![image](https://user-images.githubusercontent.com/25810385/186926603-39c66b3e-289d-459d-973e-06909bf0b0a6.png)
Setup a powershell task and did a get-childitem Env:
There is no env var for destroy changes?
Expected behavior
I expected there to be both variables set to true
TEMP C:\Users\VSSADM~1\AppData\Local\Temp
TERRAFORM_LAST_EXITCODE 0
TERRAFORM_PLAN_HAS_CHANGES true
TERRAFORM_PLAN_HAS_DESTROY_CHANGES true
TF_BUILD True
Screenshots
If applicable, add screenshots to help explain your problem.
Pipeline Logs
Include logs that help demonstrate the problem. Please make sure to redact any sensitive info such as secrets.
Describe the bug When using the terraform cli for a plan and adding the -publishPlanResults, followed by a terraform cli show command only populates TERRAFORM_PLAN_HAS_CHANGES variable and not the TERRAFORM_PLAN_HAS_DESTROY_CHANGES variable.
To Reproduce Steps to reproduce the behavior:
TERRAFORM_PLAN_HAS_CHANGES==true TERRAFORM_PLAN_HAS_DESTROY_CHANGES : The term 'TERRAFORM_PLAN_HAS_DESTROY_CHANGES' is not recognized as the name of a cmdlet, function, script file, or operable program.
Setup a powershell task and did a get-childitem Env: There is no env var for destroy changes?
TEMP C:\Users\VSSADM~1\AppData\Local\Temp
TERRAFORM_LAST_EXITCODE 0
TERRAFORM_PLAN_HAS_CHANGES true
TF_BUILD True
Expected behavior I expected there to be both variables set to true TEMP C:\Users\VSSADM~1\AppData\Local\Temp
TERRAFORM_LAST_EXITCODE 0
TERRAFORM_PLAN_HAS_CHANGES true
TERRAFORM_PLAN_HAS_DESTROY_CHANGES true
TF_BUILD True
Screenshots If applicable, add screenshots to help explain your problem.
Pipeline Logs Include logs that help demonstrate the problem. Please make sure to redact any sensitive info such as secrets.
Agent Configuration
Additional context