Azure / terraform-azurerm-avm-res-storage-storageaccount

This Terraform module is designed to create Azure Storage Accounts and its related resources, including blob containers, queues, tables, and file shares. It also supports the creation of a storage account private endpoint which provides secure and direct connectivity to Azure Storage over a private network.
https://registry.terraform.io/modules/Azure/avm-res-storage-storageaccount
MIT License
19 stars 27 forks source link

unexpected status #148

Closed cshea-msft closed 3 weeks ago

cshea-msft commented 3 weeks ago

Is there an existing issue for this?

Greenfield/Brownfield provisioning

greenfield

Terraform Version

1.3

Module Version

0.2.3

AzureRM Provider Version

3.71.0

Affected Resource(s)/Data Source(s)

azurerm_storageaccount

Terraform Configuration Files

module "avm-res-storage-storageaccount" {
  source  = "Azure/avm-res-storage-storageaccount/azurerm"
  version = "0.2.3"
  name                     = module.naming.storage_account.name_unique
  resource_group_name      = azurerm_resource_group.rg_stg.name
  location                 = azurerm_resource_group.rg_stg.location
  account_tier             = "Standard"
  account_replication_type = "ZRS"
  account_kind = "StorageV2"
  public_network_access_enabled = false
  shared_access_key_enabled = false
  default_to_oauth_authentication = true
}

tfvars variables values

n/a

Debug Output/Panic Output

N/A

Expected Behaviour

Complete deployment

Actual Behaviour

│ Error: retrieving queue properties for Storage Account (Subscription: "0ec38a31-9a35-44fe-ac59-8347ac564cef" │ Resource Group Name: "rg-g22j-stg" │ Storage Account Name: "stg22j"): executing request: unexpected status 403 (403 Key based authentication is not permitted on this storage account.) with KeyBasedAuthenticationNotPermitted: Key based authentication is not permitted on this storage account. │ RequestId:99df95d0-e003-0081-1294-f4c575000000 │ Time:2024-08-22T13:09:57.5874197Z │ │ with module.avm-res-storage-storageaccount.azurerm_storage_account.this, │ on .terraform\modules\avm-res-storage-storageaccount\main.tf line 1, in resource "azurerm_storage_account" "this": │ 1: resource "azurerm_storage_account" "this" { │

Steps to Reproduce

Run storage account module without PE and with public network access set to false

Important Factoids

No response

References

No response

cshea-msft commented 3 weeks ago

closing this and making a feature request