title: Terraform Azurerm backend writing ok but not reading
body: <p>I am trying to set up a simple Terraform backend on Azure. I am able to write but it seems reading does not really work. For example, I tried to add an <code>azurerm_resource_group</code> called <code>test_a</code>, then <code>terraform init</code> and <code>terraform apply</code> and it was stored correctly on a bucket on Azure.</p>
  <p>I modified my code and changed the name of my resource to call it <code>test_b</code> then <code>terraform init</code> and <code>terraform apply</code> and terraform destroyed my <code>test_a</code> and added my <code>test_b</code> resource. &quot;<code>Apply complete! Resources: 1 added, 0 changed, 1 destroyed.</code>&quot;. What can be the issue? I can see that whenever I am running my <code>terraform init</code> command, it's still generating a <code>.terraform</code> folder with a <code>terraform.tfstate</code> inside.</p>
  <p><strong>main.tf</strong></p>
  <pre><code>terraform {
    required_providers {
      azurerm = {
        source  = &quot;hashicorp/azurerm&quot;
        version = &quot;~&gt;2.0&quot;
      }
      azuread = {
        source  = &quot;hashicorp/azuread&quot;
        version = &quot;~&gt;1.0&quot;
      }
    }
  }
  
  provider &quot;azurerm&quot; {
    features {}
  }
  
  resource &quot;azurerm_resource_group&quot; &quot;test_a&quot; {
    name     = &quot;testing-resources&quot;
    location = &quot;West Europe&quot;
  }
  </code></pre>
  <p><strong>backend_config.tf</strong></p>
  <pre><code>terraform {
    required_version = &quot;&gt;= 0.12.6&quot;
    
    backend &quot;azurerm&quot; {
      subscription_id      = &quot;a095c3dd-xxx&quot;
      resource_group_name  = &quot;terraform&quot;
      storage_account_name = &quot;terraform963&quot;
      container_name       = &quot;tfstate&quot;
      key                  = &quot;terraform.tfstate&quot;
    }
  }
  </code></pre>
  <p><strong>terraform.tfstate (stored in Azure)</strong></p>
  <pre><code>{
    &quot;version&quot;: 4,
    &quot;terraform_version&quot;: &quot;0.14.3&quot;,
    &quot;serial&quot;: 4,
    &quot;lineage&quot;: &quot;1fcb0f9a-7c26-xxx&quot;,
    &quot;outputs&quot;: {},
    &quot;resources&quot;: [
      {
        &quot;mode&quot;: &quot;managed&quot;,
        &quot;type&quot;: &quot;azurerm_resource_group&quot;,
        &quot;name&quot;: &quot;test_b&quot;,
        &quot;provider&quot;: &quot;provider[\&quot;registry.terraform.io/hashicorp/azurerm\&quot;]&quot;,
        &quot;instances&quot;: [
          {
            &quot;schema_version&quot;: 0,
            &quot;attributes&quot;: {
              &quot;id&quot;: &quot;/subscriptions/a095c3dd-xxx/resourceGroups/testing-resources&quot;,
              &quot;location&quot;: &quot;westeurope&quot;,
              &quot;name&quot;: &quot;testing-resources&quot;,
              &quot;tags&quot;: null,
              &quot;timeouts&quot;: null
            },
            &quot;sensitive_attributes&quot;: [],
            &quot;private&quot;: &quot;eyJlMmJmYjczxxx=&quot;
          }
        ]
      }
    ]
  }
  </code></pre>