github.com/lymingtonprecision/terraform@v0.9.9-0.20170613092852-62acef9611a9/website/source/docs/providers/azurerm/d/resource_group.html.markdown (about)

     1  ---
     2  layout: "azurerm"
     3  page_title: "Azure Resource Manager: azurerm_resource_group"
     4  sidebar_current: "docs-azurerm-datasource-resource-group"
     5  description: |-
     6    Get information about the specified resource group.
     7  ---
     8  
     9  # azurerm\_resource\_group
    10  
    11  Use this data source to access the properties of an Azure resource group.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  data "azurerm_resource_group" "test" {
    17    name = "dsrg_test"
    18  }
    19  
    20  resource "azurerm_managed_disk" "test" {
    21    name                 = "managed_disk_name"
    22    location             = "${data.azurerm_resource_group.test.location}"
    23    resource_group_name  = "${data.azurerm_resource_group.test.name}"
    24    storage_account_type = "Standard_LRS"
    25    create_option        = "Empty"
    26    disk_size_gb         = "1"
    27  }
    28  ```
    29  
    30  ## Argument Reference
    31  
    32  * `name` - (Required) Specifies the name of the resource group.
    33  
    34  ~> **NOTE:** If the specified location doesn't match the actual resource group location, an error message with the actual location value will be shown.
    35  
    36  ## Attributes Reference
    37  
    38  * `location` - The location of the resource group.
    39  * `tags` - A mapping of tags assigned to the resource group.