You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.6
AzureRM Provider Version
4.14.0
Affected Resource(s)/Data Source(s)
azurerm_storage_account
Terraform Configuration Files
resource"azurerm_resource_group""rg_test" {
location="westeurope"name="rg-test-lab"
}
resource"azurerm_storage_account""storage" {
access_tier="Hot"account_kind="StorageV2"account_replication_type="LRS"account_tier="Standard"allow_nested_items_to_be_public=falsehttps_traffic_only_enabled=truelocation="westeurope"name="sttesttsetlab"public_network_access_enabled=falseresource_group_name=azurerm_resource_group.rg_test.nameblob_properties {
change_feed_enabled=falselast_access_time_enabled=falseversioning_enabled=falsecontainer_delete_retention_policy {
days=7
}
delete_retention_policy {
days=7permanent_delete_enabled=false
}
}
}
resource"azurerm_storage_container""container" {
container_access_type="private"name="data-transfer"storage_account_name=azurerm_storage_account.storage.name
}
resource"azurerm_private_endpoint""private_endpoint" {
location="westeurope"name="pe-pve-sttestlab"resource_group_name="rg-test-lab"subnet_id=data.azurerm_subnet.subnet_spoke.idprivate_service_connection {
private_connection_resource_id=azurerm_storage_account.storage.id// just a simple subnet in a private VNetis_manual_connection=falsename="pce-pve-sttestlab"subresource_names=[
"blob",
]
}
lifecycle {
ignore_changes=[private_dns_zone_group]
}
}
#### test.tftest.hclrun"valid_setup" {
command=apply
assert {
condition=module.shared.rg_test=="rg-test-lab"error_message="Resource group shared name not matching."
}
}
Debug Output/Panic Output
validations.tftest.hcl... in progress
run "valid_setup"... pass
validations.tftest.hcl... tearing down
Terraform encountered an error destroying resources created while executing
validations.tftest.hcl/valid_setup.
╷
│ Error: retrieving static website properties for Storage Account (Subscription: "[REDACTED]"
│ Resource Group Name: "rg-test-lab"
│ Storage Account Name: "sttesttsetlab"): executing request: Get "https://sttesttsetlab.blob.core.windows.net/?comp=properties&restype=service": dial tcp: lookup sttesttsetlab.blob.core.windows.net on 127.0.0.53:53: no such host
│
│ with module.shared.module.storage_account.azurerm_storage_account.storage,
│ on ../../hubit-modules/storage/azure-storage-account/main.tf line 8, in resource "azurerm_storage_account""storage":
│ 8: resource "azurerm_storage_account""storage" {
│
╵
Terraform left the following resources in state after executing
validations.tftest.hcl/valid_setup, and they need to be cleaned up manually:
- module.shared.azurerm_resource_group.rg_hertha
- module.shared.module.storage_account_hertha.azurerm_storage_account.storage
- module.shared.module.storage_account_hertha.azurerm_storage_container.container["data-transfer"]
- module.shared.module.storage_account.module.private_endpoint_storage_account[0].azurerm_private_endpoint.private_endpoint
- module.shared.module.storage_account.module.private_endpoint_storage_account_file[0].azurerm_private_endpoint.private_endpoint
test.tftest.hcl... fail
Failure! 1 passed, 0 failed.
##[error]Terraform encountered an error destroying resources created while executing
validations.tftest.hcl/valid_setup.
╷
│ Error: retrieving static website properties for Storage Account (Subscription: "[REDACTED]"
│ Resource Group Name: "rg-test-lab"
│ Storage Account Name: "sttesttsetlab"): executing request: Get "https://sttesttsetlab.blob.core.windows.net/?comp=properties&restype=service": dial tcp: lookup sttesttsetlab.blob.core.windows.net on 127.0.0.53:53: no such host
│
│ with module.shared.module.storage_account.azurerm_storage_account.storage,
│ on ../../hubit-modules/storage/azure-storage-account/main.tf line 8, in resource "azurerm_storage_account""storage":
│ 8: resource "azurerm_storage_account""storage" {
##[error]Script has output to stderr. Failing as failOnStdErr is set to true.
Expected Behaviour
The tests run through and destroys the resources without problems
Actual Behaviour
terraform tests passes the tests, but then fails to delete the storage account.
Steps to Reproduce
terraform init
terraform test
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Community Note
Terraform Version
1.9.6
AzureRM Provider Version
4.14.0
Affected Resource(s)/Data Source(s)
azurerm_storage_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The tests run through and destroys the resources without problems
Actual Behaviour
terraform tests passes the tests, but then fails to delete the storage account.
Steps to Reproduce
terraform init
terraform test
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: