Issue in initiating Terraform azure remote backend

Hi
I am trying to create infrastructure on azure with circle ci… I am using certified orb of terraform by circleci for this purpose. orb; Issues · CircleCI-Public/terraform-orb · GitHub
My config file looks like

version: 2.1

orbs:

  terraform: circleci/terraform@3.1

  azure-cli: circleci/azure-cli@1.0.0

jobs:

  verify-install:

    executor: azure-cli/default      

    steps:

      - checkout

      - azure-cli/install

      - run:

          command: az -v

          name: Verify Azure CLI is installed

      - run:

          name: Setup Terraform Remote Backend

          command: |

            az login --service-principal -u $spid -p $spkey --tenant $tenantid

            az group create --location $region --name $terraformstoragerg

            az storage account create --name $terraformstorageaccount --resource-group $terraformstoragerg --location $region --sku Standard_LRS

            az storage container create --name terraform --account-name $terraformstorageaccount

            key=$(az storage account keys list -n $terraformstorageaccount --query [0].value -o tsv)

      - terraform/init:

          backend: true

          backend_config:

            "resource_group_name=${TF_RESOURCE_GROUP_NAME}, \

            storage_account_name=${TF_STORAGE_ACCOUNT_NAME}, \

            container_name=${TF_CONTAINER_NAME}, \

            key=${TF_KEY_NAME}"

          path: "Terraform"

      - terraform/plan:          

          backend_config:

            "resource_group_name=${TF_RESOURCE_GROUP_NAME}, \

            storage_account_name=${TF_STORAGE_ACCOUNT_NAME}, \

            container_name=${TF_CONTAINER_NAME}, \

            key=${TF_KEY_NAME}"

          path: "Terraform"  

workflows:

  my-workflow:

    jobs:

      - verify-install:

          context:

             - ab-synpase

Now i get error at init step:

How to define this $INIT_ARGS for terraform as per the orb?

Do you have an environment variable TF_PARAM_BACKEND_CONFIG_FILE set and pointing to a valid file?

The ORB code seems to have 2 if statement blocks above the export that try and define INIT_ARGS based on the value of TF_PARAM_BACKEND_CONFIG_FILE, but no error checking to make sure that they managed to define INIT_ARGS before exporting it.

Hi
Yes, I did defined that variable in context,


but still it says not found

This two-step workflow is primarily intended for when.