terraform { required_version = ">= 1.6" required_providers { azurerm = { source = "hashicorp/azurerm" version = "~> 5.0" } } # Remote state. Uncomment and point at your own backend. # backend "azurerm" { # resource_group_name = "rg-tfstate" # storage_account_name = "tfstatesecprod" # container_name = "tfstate" # key = "audit-log-immutable/azure.tfstate" # use_azuread_auth = true # } } provider "azurerm" { features { key_vault { purge_soft_delete_on_destroy = false } } # Key-based access is off on the storage account, so the provider has to use # Entra ID for any data-plane call it makes. storage_use_azuread = true subscription_id = var.subscription_id }