Open panfilenok-epam opened 4 months ago
Thanks for raising this issue. I assume it's by TF design since the specified storage account has configured/enabled the defender. As terraform would always check if the target resource is added/created before creating the resource, so TF returns this error.
The error text is confusing. I'm not trying to create storage account. Why it tells me that storage accout already exists?
also encountering this issue with provider version 3.116.0. It seems like the azurerm_security_center_storage_defender resource is getting the same resource id as the storage account it is hooked up to, which causes the error. Seems like this resource wasn't tested at all before being put in.
Is there an existing issue for this?
Community Note
Terraform Version
1.9.0
AzureRM Provider Version
3.113.0
Affected Resource(s)/Data Source(s)
azurerm_security_center_storage_defender
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Terraform applies changes successfully
Actual Behaviour
Terraform returns an error. I can guess that the cloud defender is configured at the storage account level outside of terraform, however, the terraform error clearly says that the "storage account already esists". The error message is confusing
Steps to Reproduce
No response
Important Factoids
No response
References
No response