Skip to content

docs: document workaround for static website properties 404 on private storage accounts - #301

Open
Brian Gordon Davis (bgdnext64) wants to merge 1 commit into
mainfrom
docs/47-static-website-workaround
Open

docs: document workaround for static website properties 404 on private storage accounts#301
Brian Gordon Davis (bgdnext64) wants to merge 1 commit into
mainfrom
docs/47-static-website-workaround

Conversation

@bgdnext64

Copy link
Copy Markdown
Collaborator

Adds a Known Issues entry documenting the retrieving static website properties for Storage Account 404 error that can occur when analyzing private storage accounts with Terraform.

The static website properties are read through the Storage data plane API served from the storage account's own endpoint, so the call is subject to the account's network restrictions. When a private endpoint or deny-by-default network rules are in place, the request is only reachable from within the account's network. Because the failure is a network reachability issue rather than a missing-permission (control-plane authorization) error, the utility cannot infer or append any RBAC permission to resolve it, so a documented workaround is the appropriate fix.

The new section explains the root cause and gives two workarounds: run the utility from a network location that can reach the private endpoint, or temporarily allow public access during analysis.

Fixes #47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation for a Terraform/azurerm behavior where reading static website properties can fail with a misleading 404 when analyzing private (network-restricted) Azure Storage Accounts, clarifying that this is a data-plane network reachability issue rather than an RBAC permissions gap.

Changes:

  • Documented the “retrieving static website properties for Storage Account” 404 scenario in Known Issues.
  • Explained root cause (data-plane call via the storage account endpoint subject to network rules/private endpoints).
  • Added workarounds for running analysis from a reachable network location or temporarily allowing public access during analysis.

Storage Account Name: "saexample"): executing request: unexpected status 404 (404 The specified resource does not exist.) with ResourceNotFound: The specified resource does not exist.
```

Setting and retrieving static website properties uses the Storage [data plane API](https://github.com/hashicorp/terraform-provider-azurerm/issues/24982#issuecomment-1972246655), which is served from the storage account's own endpoint. That endpoint is subject to the same network access restrictions as the account itself, so when the account has a private endpoint or its network rules deny public access, the request is only reachable from a network location that can resolve and reach the private endpoint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document workaround to use for "retrieving static website properties for Storage Account" error

2 participants