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
╷
│ Warning: Argument is deprecated
│
│ with module.myapp.azurerm_monitor_diagnostic_setting.a_diagnostic_setting,
│ on projects/myapp/app_api.tf line 64, in resource "azurerm_monitor_diagnostic_setting""a_diagnostic_setting":
│ 64: resource "azurerm_monitor_diagnostic_setting""a_diagnostic_setting" {
│
│ `retention_policy` has been deprecated - to learn more
│ https://aka.ms/diagnostic_settings_log_retention
│
│ (and 23 more similar warnings elsewhere)
╵
Expected Behaviour
The warning message should be more explicit and state that this needs to be removed, and replaced with a new resource block, azurerm_storage_management_policy.
The documentation here mentions nothing about the attribute being deprecated. Furthermore it offers no guidance in an approach to resolve the deprecation. It should make some mention that the attribute is being removed from the resource type, and is being replaced with azurerm_storage_management_policy.
Actual Behaviour
Warning message presented in plan and validate steps of Terraform.
Steps to Reproduce
terraform plan
terraform validate
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
AzureRM Provider Version
3.72.0
Affected Resource(s)/Data Source(s)
azurerm_monitor_diagnostic_setting
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The warning message should be more explicit and state that this needs to be removed, and replaced with a new resource block, azurerm_storage_management_policy.
The documentation here mentions nothing about the attribute being deprecated. Furthermore it offers no guidance in an approach to resolve the deprecation. It should make some mention that the attribute is being removed from the resource type, and is being replaced with azurerm_storage_management_policy.
Actual Behaviour
Warning message presented in plan and validate steps of Terraform.
Steps to Reproduce
terraform plan
terraform validate
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: