While deploying storage account data lake gen2 with service endpoints using Terraform on Azure, encountering a 404 Not Found
error, kindly help…
resource "random_integer" "random_suffix1" { min = 10000 max = 99999 } resource "azurerm_storage_account" "dev_storage" { name = "dllinddatalakedev${random_integer.random_suffix1.result}" resource_group_name = azurerm_resource_group.rg_analytics_dev_central_india.name location = azurerm_resource_group.rg_analytics_dev_central_india.location account_tier = "Standard" account_replication_type = "LRS" is_hns_enabled = true public_network_access_enabled = false infrastructure_encryption_enabled = true account_kind = "StorageV2" network_rules { default_action = "Deny" virtual_network_subnet_ids = [ azurerm_subnet.private-dev.id, azurerm_subnet.public-dev.id, azurerm_subnet.pe-subnet.id ] } depends_on = [azurerm_subnet.pe-subnet] } resource "azurerm_storage_account" "prod_storage" { name = "dllinddatalakeprod${random_integer.random_suffix1.result}" resource_group_name = azurerm_resource_group.rg_analytics_prod_central_india.name location = azurerm_resource_group.rg_analytics_prod_central_india.location account_tier = "Standard" account_replication_type = "LRS" is_hns_enabled = true public_network_access_enabled = false infrastructure_encryption_enabled = true account_kind = "StorageV2" network_rules { default_action = "Deny" virtual_network_subnet_ids = [ azurerm_subnet.public.id, azurerm_subnet.private.id, azurerm_subnet.private-dev.id, azurerm_subnet.public-dev.id, azurerm_subnet.pe-subnet.id ] } depends_on = [azurerm_storage_account.dev_storage] }
Error: retrieving Storage Account (Subscription: “XXXXXXXXXXXXX” │
Resource Group Name: “RG-Analytics-Dev-CentralIndia” │ Storage Account
Name: “inddatalakedev27620”): unexpected status 404 (404 Not Found)
with error: StorageAccountNotFound: The storage account
dllinddatalakedev27620 was not found. │ │ with
azurerm_storage_account.dev_storage, │ on storage.tf line 11, in
resource “azurerm_storage_account” “dev_storage”: │ 11: resource
“azurerm_storage_account” “dev_storage” {Blockquote