azurerm_lab_service_lab

Manages a Lab Service Lab.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_lab_service_lab" "example" {
  name                = "example-lab"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  title               = "Test Title"

  security {
    open_access_enabled = false
  }

  virtual_machine {
    admin_user {
      username = "testadmin"
      password = "Password1234!"
    }

    image_reference {
      publisher = "Canonical"
      offer     = "0001-com-ubuntu-server-jammy"
      sku       = "22_04-lts"
      version   = "latest"
    }

    sku {
      name     = "Classic_Fsv2_2_4GB_128_S_SSD"
      capacity = 0
    }
  }
}

Arguments Reference

The following arguments are supported:


An auto_shutdown block supports the following:


A connection_setting block supports the following:


A security block supports the following:


A virtual_machine block supports the following:


An admin_user block supports the following:


An image_reference block supports the following:


A non_admin_user block supports the following:


A sku block supports the following:


A network block supports the following:


A roster block supports the following:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


A security block supports the following:


A network block supports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Lab Service Labs can be imported using the resource id, e.g.

terraform import azurerm_lab_service_lab.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.LabServices/labs/lab1