Merge pull request #29451 from kmadof/patch-1

Added required paramter `resource_group_name` for MSI
This commit is contained in:
Laura Pacilio 2021-09-09 14:54:17 -04:00 committed by GitHub
commit 48768a0037
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,7 @@ When authenticating using Managed Service Identity (MSI):
```hcl ```hcl
terraform { terraform {
backend "azurerm" { backend "azurerm" {
resource_group_name = "StorageAccount-ResourceGroup"
storage_account_name = "abcd1234" storage_account_name = "abcd1234"
container_name = "tfstate" container_name = "tfstate"
key = "prod.terraform.tfstate" key = "prod.terraform.tfstate"
@ -125,6 +126,7 @@ When authenticating using Managed Service Identity (MSI):
data "terraform_remote_state" "foo" { data "terraform_remote_state" "foo" {
backend = "azurerm" backend = "azurerm"
config = { config = {
resource_group_name = "StorageAccount-ResourceGroup"
storage_account_name = "terraform123abc" storage_account_name = "terraform123abc"
container_name = "terraform-state" container_name = "terraform-state"
key = "prod.terraform.tfstate" 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: 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. * `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. * `tenant_id` - (Optional) The Tenant ID in which the Subscription exists. This can also be sourced from the `ARM_TENANT_ID` environment variable.