Describe the bug
In Azure DevOps, TerraformCLI@1 Task works as expected with Secret based Service Connection but doesn't work with Certificate based Service Connection.
Below is the YAML file snippet
Setup pipeline with above YAML file (TerraformCLI@1 Task)
Execute pipeline with Secret Based Service Connection in backendServiceArm
Pipeline succeeds and Works as expected
Update and Execute pipeline with Certificate Based Service Connection in backendServiceArm
Pipeline fails with following error - Error: Error building ARM Config: obtain subscription() from Azure CLI: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: Please run 'az login' to setup account.
Expected behavior
Terraform CLI tasks should be able to authenticate to Azure even with Certificate based Service Connections
Agent Configuration
OS: ubuntu-latest
Microsoft Hosted
Terraform version used (Default for hosted agent is acceptable)
AzureCLI version used (Default for hosted agent is acceptable or N/A)
Describe the bug In Azure DevOps, TerraformCLI@1 Task works as expected with Secret based Service Connection but doesn't work with Certificate based Service Connection. Below is the YAML file snippet
To Reproduce Steps to reproduce the behavior:
backendServiceArm
backendServiceArm
Expected behavior Terraform CLI tasks should be able to authenticate to Azure even with Certificate based Service Connections
Agent Configuration