concept

Azure cost and cleanup

Review retention, locks and cost before cleanup.

Formal Syntax & Structure

terraform syntaxterraform
Azure cost and cleanup

Working Example

Example Snippetterraform
# Static fragment; no live changes. Review lock ownership before teardown.resource "azurerm_management_lock" "retained_data" {  name       = "retain-data"  scope      = var.database_id  lock_level = "CanNotDelete"  notes      = "Deletion needs separate data-owner approval."}
Terraform Reference