title: azure: malformed storage account key: illegal base64 data at input byte0 terraform CD
body: <p>Terraform backend uses a deprecated version of terraform and warns that it is been deprecated, even if you pinned to lower version or higher version <code>=2.0.0</code> or <code>&gt;=0.11</code> throws  malformed storage account key</p>
  
  <blockquote>
    <p>[DEPRECATED] <code>arm_tenant_id</code> has been replaced by <code>tenant_id</code>[0m</p>
  </blockquote>
  
  <p>-backend-config=storage_account_name=testcmsaamsdn</p>
  
  <p>-backend-config=container_name=terraform</p>
  
  <p>-backend-config=key=terraform.tfstate</p>
  
  <p>-backend-config=resource_group_name=rg-testconfig-AMSDN</p>
  
  <p>-backend-config=arm_subscription_id=000-000-000-000-000</p>
  
  <p>-backend-config=arm_tenant_id=***</p>
  
  <p>-backend-config=arm_client_id=***</p>
  
  <p>-backend-config=arm_client_secret=***</p>
  
  <pre><code>Failed to get existing workspaces: Error creating storage client for storage account "testcmsaamsdn": azure: malformed storage account key: illegal base64 data at input byte 0[0m
  </code></pre>
  
  <p>Backend config looks like </p>
  
  <p>terraform {</p>
  
  <p>backend "azurerm" {</p>
  
  <p>storage_account_name = <code>"__terraformstorageaccount__"</code></p>
  
  <p>container_name       = "terraform"</p>
  
  <p>key                  = "terraform.tfstate"</p>
  
  <p>access_key           = <code>"__storagekey__"</code></p>
  
  <p>}</p>
  
  <p>}</p>