Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storage account names are different in az cli and Terraform.tf file #4

Open
dwschulze opened this issue Nov 23, 2022 · 1 comment
Open

Comments

@dwschulze
Copy link

You show this az cli command:

az storage account create --resource-group MyRgRemoteBackend --name storageremotetf --sku Standard_LRS --encryption-services blob

In Terraform.tf file you show a different storage_account_name:

terraform {
    backend "azurerm" {
        storage_account_name  = "storageremotetfdemo"
        container_name        = "tfbackends"
        key                   = "myappli.tfstate"
       snapshot           = true
    }
}

Don't these have to be the same?

Also, what is the key value shown? Can this be anything we choose it to be?

@nithikpackt
Copy link

Hi @dwschulze, Can you please specify which chapter where this issue is ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants