» Data Source: azurerm_resource_group

Use this data source to access information about an existing Resource Group.

» Example Usage

data "azurerm_resource_group" "example" {
  name = "dsrg_test"
}

resource "azurerm_managed_disk" "example" {
  name                 = "managed_disk_name"
  location             = "${data.azurerm_resource_group.example.location}"
  resource_group_name  = "${data.azurerm_resource_group.example.name}"
  storage_account_type = "Standard_LRS"
  create_option        = "Empty"
  disk_size_gb         = "1"
}

» Argument Reference

  • name - (Required) Specifies the name of the resource group.

» Attributes Reference

  • location - The location of the resource group.
  • tags - A mapping of tags assigned to the resource group.