Files
opentf/website/source/docs/providers/azure/r/affinity_group.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.1 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
azure Azure: azure_affinity_group docs-azure-affinity-group Creates a new affinity group on Azure.

azure_affinity_group

Creates a new affinity group on Azure.

Example Usage

resource "azure_affinity_group" "terraform-main-group" {
  name        = "terraform-group"
  location    = "North Europe"
  label       = "tf-group-01"
  description = "Affinity group created by Terraform."
}

Argument Reference

The following arguments are supported:

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

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

  • label - (Required) A label to be used for tracking purposes.

  • description - (Optional) A description for the affinity group.

Attributes Reference

The following attributes are exported:

  • id - The affinity group ID. Coincides with the given name.