FEATURES PRICING ABOUT DOCS LOGIN

azurerm_resource_group

Creates a new resource group on Azure.

Example Usage

resource "azurerm_resource_group" "test" {
  name     = "testResourceGroup1"
  location = "West US"
  
  tags {
    environment = "Production"
  }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Resource Groups can be imported using the resource id, e.g.

terraform import azurerm_resource_group.mygroup /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup

See the source of this document at Terraform.io

REQUEST A DEMO