Azure Azure - Terraform templates

Resource Groups

Last updated: May 16, 2025
You can create a resource group in Azure with the following snippet:

resource "azurerm_resource_group" "rg" {
  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