azurestack_resource_group

Creates a new resource group on Azure.

Example Usage

resource "azurestack_resource_group" "test" {
  name     = "testResourceGroup1"
  location = "West US"

  tags {
    environment = "Production"
  }
}

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 or run az account list-locations --output table.

  • tags - (Optional) A mapping of tags to assign to the resource.

Attributes Reference

The following attributes are exported:

  • id - The resource group ID.

Import

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

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

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurestack/r/resource_group.html