azurermLabServiceUser
Manages a Lab Service User.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
this,
"example",
{
location: "West Europe",
name: "example-resources",
}
);
const azurermLabServiceLabExample = new azurerm.labServiceLab.LabServiceLab(
this,
"example_1",
{
location: azurermResourceGroupExample.location,
name: "example-lab",
resource_group_name: azurermResourceGroupExample.name,
security: [
{
open_access_enabled: false,
},
],
title: "Test Title",
virtual_machine: [
{
admin_user: [
{
password: "Password1234!",
username: "testadmin",
},
],
image_reference: [
{
offer: "0001-com-ubuntu-server-focal",
publisher: "canonical",
sku: "20_04-lts",
version: "latest",
},
],
sku: [
{
capacity: 1,
name: "Classic_Fsv2_2_4GB_128_S_SSD",
},
],
},
],
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermLabServiceLabExample.overrideLogicalId("example");
const azurermLabServiceUserExample = new azurerm.labServiceUser.LabServiceUser(
this,
"example_2",
{
email: "terraform-acctest@hashicorp.com",
lab_id: azurermLabServiceLabExample.id,
name: "example-labuser",
}
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermLabServiceUserExample.overrideLogicalId("example");
Arguments Reference
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. -
labId
- (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. -
additionalUsageQuota
- (Optional) The amount of usage quota time the Lab Service User gets in addition to the lab usage quota. Defaults topt0S
.
Attributes Reference
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Lab Service User.
Timeouts
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.
Import
Lab Service Users can be imported using the resourceId
, e.g.