Manages a Lab Service User.
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 = 1
}
}
}
resource "azurerm_lab_service_user" "example" {
name = "example-labuser"
lab_id = azurerm_lab_service_lab.example.id
email = "terraform-acctest@hashicorp.com"
}
The following arguments are supported:
name
- (Required) The name which should be used for this Lab Service User. Changing this forces a new resource to be created.
lab_id
- (Required) The resource ID of the Lab Service Lab. Changing this forces a new resource to be created.
email
- (Required) The email address of the Lab Service User. Changing this forces a new resource to be created.
additional_usage_quota
- (Optional) The amount of usage quota time the Lab Service User gets in addition to the lab usage quota. Defaults to PT0S
.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Lab Service User.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Lab Service User.read
- (Defaults to 5 minutes) Used when retrieving the Lab Service User.update
- (Defaults to 30 minutes) Used when updating the Lab Service User.delete
- (Defaults to 30 minutes) Used when deleting the Lab Service User.Lab Service Users can be imported using the resource id
, e.g.
terraform import azurerm_lab_service_user.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.LabServices/labs/lab1/users/user1