| name | terraform-azure |
| description | Provision Azure infrastructure with Terraform including VNets, VMs, AKS, and managed identities |
| sasmp_version | 1.3.0 |
| version | 2.0.0 |
| bonded_agent | 05-terraform-azure |
| bond_type | PRIMARY_BOND |
Terraform Azure Skill
Production patterns for Azure infrastructure provisioning with security best practices.
Provider Setup
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.80"
}
azuread = {
source = "hashicorp/azuread"
version = "~> 2.45"
}
}
}
provider "azurerm" {
features {
resource_group {
prevent_deletion_if_contains_resources = true
}
key_vault {
purge_soft_delete_on_destroy = false
}
}
}
Resource Group
resource "azurerm_resource_group" "main" {
name = "${var.project}-${var.environment}-rg"
location = var.location
tags = local.common_tags
}