NOTE: The Azure Service Management Provider has been
superseded by the Azure Resource Manager Provider
and is no longer being actively developed by HashiCorp employees. It continues to be supported by the community.
We recommend using the Azure Resource Manager
based Microsoft Azure Provider
if possible.
» 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 givenname
.