Terraform module to create Virtual Machines in Azure.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
560B

  1. data "azurerm_network_interface" "this" {
  2. count = var.enabled && var.network_interface_exists ? var.vm_count : 0
  3. name = var.network_interface_external_names[count.index]
  4. resource_group_name = var.resource_group_name
  5. }
  6. data "azurerm_availability_set" "this" {
  7. count = var.enabled && var.availability_set_enabled && var.availability_set_exists ? 1 : 0
  8. name = var.availability_set_exists ? var.availability_set_name : concat(azurerm_availability_set.this.*.id, [""])[0]
  9. resource_group_name = var.resource_group_name
  10. }