terraform/website/source/docs/providers/azurerm/r/resource_group.html.markdown

856 B

layout page_title sidebar_current description
azurerm Azure Resource Manager: azurerm_resource_group docs-azurerm-resource-resource-group Creates a new resource group on Azure.

azurerm_resource_group

Creates a new resource group on Azure.

Example Usage

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

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the resource group. Must be unique on your Azure subscription.

  • location - (Required) The location where the resource group should be created. For a list of all Azure locations, please consult this link.

Attributes Reference

The following attributes are exported:

  • id - The resource group ID.