I have created a Azure storage account without static website configuration but facing error retrieving static website properties.

Ansar Shaik 0 Reputation points
2024-12-12T07:25:03.8866667+00:00

# Azure storage blob
resource "azurerm_storage_account" "fuastorageacc" {
  name                     = "fuastorageacc"
  resource_group_name      = data.azurerm_resource_group.fua_group.name
  location                 = data.azurerm_resource_group.fua_group.location
  account_tier             = "Standard"
  account_replication_type = "LRS"
  account_kind = "StorageV2"
  min_tls_version = "TLS1_2"
  # enable_https_traffic_only = true
  depends_on = [
    azurerm_subnet.PrivateSubnet1A,
    azurerm_subnet.PrivateSubnet1B
  ]
  tags = {
    environment = "staging"
  }
}
here i don't have any static website configuration to retrieve then i don't know why its getting error as 

│ Error: retrieving static website properties for Storage Account (Subscription: "XXXXXXXX-2d7b-XXXX-b661-15dfXXXXXXX"
│ Resource Group Name: "fua_group"
│ Storage Account Name: "fuastorageacc"): accounts.Client#GetServiceProperties: Failure responding to request: StatusCode=404 -- Original Error: autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The specified resource does not exist.\nRequestId:b525ffd3-d01e-005f-3063-4c4ae1000000\nTime:2024-12-12T06:59:13.4368840Z"     
│
│   with azurerm_storage_account.fuastorageacc,
│   on main.tf line 1504, in resource "azurerm_storage_account" "fuastorageacc":
│ 1504: resource "azurerm_storage_account" "fuastorageacc" {
│ can any one please help me to resolve this error?
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,292 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amrinder Singh 5,555 Reputation points Microsoft Employee
    2024-12-12T12:16:03.9166667+00:00

    Hi Ansar Shaik- Thanks for reaching out over Q&A Forum.

    From the failure, it isn't checking any static website configuration rather it tries to check for the properties of the account and tend to fail in there. Can you review the below:

    Are there any networking configuration enabled on the account? If yes, try accessing enabling all network and test ahead.

    Is the blob public access enabled on the account level? If not, try enabling that and test ahead.

    Let me know how it goes out ahead.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.