Azure Azure - Terraform templates

Resource Groups

Last updated: December 14, 2024
You can create a resource group in Azure with the following snippet:

module "rg" {
  source  = "Azure/avm-res-resources-resourcegroup/azurerm"
  version = "0.1.0"
  
  name     = "${local.resource_prefix}"
  location = local.location

  tags = local.tags
}

Note: Review the variables page for variables in the name.

As parameters, name and location are required, tags is optional.






Further reading