azurerm_storage_account
cannot be created without internet access due to static_website
field #27750
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Terraform Version
1.9.5
AzureRM Provider Version
4.3.0
Affected Resource(s)/Data Source(s)
azurerm_storage_account
Terraform Configuration Files
resource "azurerm_storage_account" "configs" {
name = var.config_storage_name
resource_group_name = azurerm_resource_group.stage.name
location = azurerm_resource_group.stage.location
account_tier = "Standard"
account_replication_type = "LRS"
allow_nested_items_to_be_public = false
public_network_access_enabled = false
lifecycle {
ignore_changes = [static_website]
}
}
Debug Output/Panic Output
Error: retrieving static website properties for Storage Account (Subscription: "[MASKED]"
│ Resource Group Name: "[MASKED]"
│ Storage Account Name: "configapp52xxxxx"): executing request: Get "https://configapp52xxxxx.blob.core.windows.net/?comp=properties&restype=service": context deadline exceeded
Expected Behaviour
No response
Actual Behaviour
The domain *.core.windows.net
is blocked by our company firewall, so the request to that URL is supposed to fail. As I understand it, the root cause is that azure itself does not provide the current state of static_website
via the API. [Azure/azure-rest-api-specs/issues/22984]
That said, it should be possible to explicitly ignore changes and thus not trigger the refresh if disabled in lifecycle
. That would allow us to create the storage and PEP as planned.
Steps to Reproduce
terraform plan
Important Factoids
No response
References
Azure/azure-rest-api-specs#22984 <- the root cause of this and the other issues
#27750
#20257
#2977