User
User

Reputation: 59

Using Terraform Cloud store the state files in Azure storage account

Terraform Cloud store the state files in Azure storage account, When using Terraform Cloud, the default behaviour is indeed to store the state files within Terraform Cloud itself. However, we can override this behaviour by explicitly configuring a remote backend in my Terraform configuration files is that possible? I have tried to create the remote backend but it is not storing the file in storage account. Assist me to resolve this issue, Thanks in Advance!!

terraform {
  backend "azurerm" {
    resource_group_name  = "Azure"
    storage_account_name = "azuredevopsdev"
    container_name       = "terraformcloud"
    key                  = "resourcegroup.tfstate"
  }
}

Upvotes: 1

Views: 817

Answers (0)

Related Questions