Open panfilenok-epam opened 3 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?
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