github.com/atsaki/terraform@v0.4.3-0.20150919165407-25bba5967654/website/source/docs/providers/azure/r/affinity_group.html.markdown (about)

     1  ---
     2  layout: "azure"
     3  page_title: "Azure: azure_affinity_group"
     4  sidebar_current: "docs-azure-affinity-group"
     5  description: |-
     6      Creates a new affinity group on Azure.
     7  ---
     8  
     9  # azure\_affinity\_group
    10  
    11  Creates a new affinity group on Azure.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "azure_affinity_group" "terraform-main-group" {
    17      name = "terraform-group"
    18      location = "North Europe"
    19      label = "tf-group-01"
    20      description = "Affinity group created by Terraform."
    21  }
    22  ```
    23  
    24  ## Argument Reference
    25  
    26  The following arguments are supported:
    27  
    28  * `name` - (Required) The name of the affinity group. Must be unique on your
    29      Azure subscription.
    30  
    31  * `location` - (Required) The location where the affinity group should be created.
    32      For a list of all Azure locations, please consult [this link](http://azure.microsoft.com/en-us/regions/).
    33  
    34  * `label` - (Required) A label to be used for tracking purposes.
    35  
    36  * `description` - (Optional) A description for the affinity group.
    37  
    38  ## Attributes Reference
    39  
    40  The following attributes are exported:
    41  
    42  * `id` - The affinity group ID. Coincides with the given `name`.