terraform { required_version = ">= 1.6" required_providers { azurerm = { source = "hashicorp/azurerm" version = "~> 5.0" } random = { source = "hashicorp/random" version = "~> 3.6" } } # This folder creates the account every other folder keeps its state in, so # its own state starts on your machine. Once the account exists, uncomment # this, fill in the names from the output, and run # terraform init -migrate-state # # backend "azurerm" { # resource_group_name = "rg-tfstate" # storage_account_name = "tfstateabc123" # container_name = "tfstate" # key = "state-backend.tfstate" # use_azuread_auth = true # } } provider "azurerm" { features { key_vault { purge_soft_delete_on_destroy = false } } storage_use_azuread = true subscription_id = var.subscription_id }