Manages a System Center Virtual Machine Manager Availability Set.
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_system_center_virtual_machine_manager_server" "example" {
name = "example-scvmmms"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
custom_location_id = "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1"
fqdn = "example.labtest"
username = "testUser"
password = "H@Sh1CoR3!"
}
resource "azurerm_system_center_virtual_machine_manager_availability_set" "example" {
name = "example-scvmmas"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
custom_location_id = azurerm_system_center_virtual_machine_manager_server.example.custom_location_id
system_center_virtual_machine_manager_server_id = azurerm_system_center_virtual_machine_manager_server.example.id
}
The following arguments are supported:
name
- (Required) The name of the System Center Virtual Machine Manager Availability Set. Changing this forces a new resource to be created.
resource_group_name
- (Required) The name of the Resource Group where the System Center Virtual Machine Availability Set should exist. Changing this forces a new resource to be created.
location
- (Required) The Azure Region where the System Center Virtual Machine Manager Availability Set should exist. Changing this forces a new resource to be created.
custom_location_id
- (Required) The ID of the Custom Location for the System Center Virtual Machine Manager Availability Set. Changing this forces a new resource to be created.
system_center_virtual_machine_manager_server_id
- (Required) The ID of the System Center Virtual Machine Manager Server. Changing this forces a new resource to be created.
tags
- (Optional) A mapping of tags which should be assigned to the System Center Virtual Machine Manager Availability Set.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the System Center Virtual Machine Manager Availability Set.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating this System Center Virtual Machine Manager Availability Set.read
- (Defaults to 5 minutes) Used when retrieving this System Center Virtual Machine Manager Availability Set.update
- (Defaults to 30 minutes) Used when updating this System Center Virtual Machine Manager Availability Set.delete
- (Defaults to 30 minutes) Used when deleting this System Center Virtual Machine Manager Availability Set.System Center Virtual Machine Manager Availability Sets can be imported into Terraform using the resource id
, e.g.
terraform import azurerm_system_center_virtual_machine_manager_availability_set.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.ScVmm/availabilitySets/availabilitySet1