From 49b31d005a7e068bf67a03d14ec6cde69ee5ad15 Mon Sep 17 00:00:00 2001 From: Krzysztof Madej Date: Tue, 24 Aug 2021 02:05:43 +0200 Subject: [PATCH] Added required paramter `resource_group_name` for MSI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without `resource_group_name` I had > │ Error: Either an Access Key / SAS Token or the Resource Group for the Storage Account must be specified - or Azure AD Authentication must be enabled --- website/docs/language/settings/backends/azurerm.html.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/docs/language/settings/backends/azurerm.html.md b/website/docs/language/settings/backends/azurerm.html.md index d5796a348..36e95a2f8 100644 --- a/website/docs/language/settings/backends/azurerm.html.md +++ b/website/docs/language/settings/backends/azurerm.html.md @@ -35,6 +35,7 @@ When authenticating using Managed Service Identity (MSI): ```hcl terraform { backend "azurerm" { + resource_group_name = "StorageAccount-ResourceGroup" storage_account_name = "abcd1234" container_name = "tfstate" key = "prod.terraform.tfstate" @@ -125,6 +126,7 @@ When authenticating using Managed Service Identity (MSI): data "terraform_remote_state" "foo" { backend = "azurerm" config = { + resource_group_name = "StorageAccount-ResourceGroup" storage_account_name = "terraform123abc" container_name = "terraform-state" key = "prod.terraform.tfstate" @@ -215,6 +217,8 @@ The following configuration options are supported: When authenticating using the Managed Service Identity (MSI) - the following fields are also supported: +* `resource_group_name` - (Required) The Name of the Resource Group in which the Storage Account exists. + * `subscription_id` - (Optional) The Subscription ID in which the Storage Account exists. This can also be sourced from the `ARM_SUBSCRIPTION_ID` environment variable. * `tenant_id` - (Optional) The Tenant ID in which the Subscription exists. This can also be sourced from the `ARM_TENANT_ID` environment variable.