User

class User : KotlinCustomResource

Manages a Lab Service User.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.lab.Lab;
import com.pulumi.azure.lab.LabArgs;
import com.pulumi.azure.lab.inputs.LabSecurityArgs;
import com.pulumi.azure.lab.inputs.LabVirtualMachineArgs;
import com.pulumi.azure.lab.inputs.LabVirtualMachineAdminUserArgs;
import com.pulumi.azure.lab.inputs.LabVirtualMachineImageReferenceArgs;
import com.pulumi.azure.lab.inputs.LabVirtualMachineSkuArgs;
import com.pulumi.azure.lab.User;
import com.pulumi.azure.lab.UserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleLab = new Lab("exampleLab", LabArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.title("Test Title")
.security(LabSecurityArgs.builder()
.openAccessEnabled(false)
.build())
.virtualMachine(LabVirtualMachineArgs.builder()
.adminUser(LabVirtualMachineAdminUserArgs.builder()
.username("testadmin")
.password("Password1234!")
.build())
.imageReference(LabVirtualMachineImageReferenceArgs.builder()
.offer("0001-com-ubuntu-server-focal")
.publisher("canonical")
.sku("20_04-lts")
.version("latest")
.build())
.sku(LabVirtualMachineSkuArgs.builder()
.name("Classic_Fsv2_2_4GB_128_S_SSD")
.capacity(1)
.build())
.build())
.build());
var exampleUser = new User("exampleUser", UserArgs.builder()
.labId(exampleLab.id())
.email("terraform-acctest@hashicorp.com")
.build());
}
}

Import

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

$ pulumi import azure:lab/user:User example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.LabServices/labs/lab1/users/user1

Properties

Link copied to clipboard

The amount of usage quota time the Lab Service User gets in addition to the lab usage quota. Defaults to PT0S.

Link copied to clipboard
val email: Output<String>

The email address of the Lab Service User. Changing this forces a new resource to be created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val labId: Output<String>

The resource ID of the Lab Service Lab. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Lab Service User. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>