LabArgs

data class LabArgs(val announcement: Output<LabAnnouncementPropertiesArgs>? = null, val environmentPermission: Output<Either<String, EnvironmentPermission>>? = null, val extendedProperties: Output<Map<String, String>>? = null, val labStorageType: Output<Either<String, StorageType>>? = null, val location: Output<String>? = null, val mandatoryArtifactsResourceIdsLinux: Output<List<String>>? = null, val mandatoryArtifactsResourceIdsWindows: Output<List<String>>? = null, val name: Output<String>? = null, val premiumDataDisks: Output<Either<String, PremiumDataDisk>>? = null, val resourceGroupName: Output<String>? = null, val support: Output<LabSupportPropertiesArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LabArgs>

A lab. Uses Azure REST API version 2018-09-15. In version 2.x of the Azure Native provider, it used API version 2018-09-15.

Example Usage

Labs_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var lab = new AzureNative.DevTestLab.Lab("lab", new()
{
LabStorageType = "{Standard|Premium}",
Location = "{location}",
Name = "{labName}",
ResourceGroupName = "resourceGroupName",
Tags =
{
{ "tagName1", "tagValue1" },
},
});
});
package main
import (
devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devtestlab.NewLab(ctx, "lab", &devtestlab.LabArgs{
LabStorageType: pulumi.String("{Standard|Premium}"),
Location: pulumi.String("{location}"),
Name: pulumi.String("{labName}"),
ResourceGroupName: pulumi.String("resourceGroupName"),
Tags: pulumi.StringMap{
"tagName1": pulumi.String("tagValue1"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devtestlab.Lab;
import com.pulumi.azurenative.devtestlab.LabArgs;
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 lab = new Lab("lab", LabArgs.builder()
.labStorageType("{Standard|Premium}")
.location("{location}")
.name("{labName}")
.resourceGroupName("resourceGroupName")
.tags(Map.of("tagName1", "tagValue1"))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:devtestlab:Lab {labName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}

Constructors

Link copied to clipboard
constructor(announcement: Output<LabAnnouncementPropertiesArgs>? = null, environmentPermission: Output<Either<String, EnvironmentPermission>>? = null, extendedProperties: Output<Map<String, String>>? = null, labStorageType: Output<Either<String, StorageType>>? = null, location: Output<String>? = null, mandatoryArtifactsResourceIdsLinux: Output<List<String>>? = null, mandatoryArtifactsResourceIdsWindows: Output<List<String>>? = null, name: Output<String>? = null, premiumDataDisks: Output<Either<String, PremiumDataDisk>>? = null, resourceGroupName: Output<String>? = null, support: Output<LabSupportPropertiesArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

The properties of any lab announcement associated with this lab

Link copied to clipboard
val environmentPermission: Output<Either<String, EnvironmentPermission>>? = null

The access rights to be granted to the user when provisioning an environment

Link copied to clipboard
val extendedProperties: Output<Map<String, String>>? = null

Extended properties of the lab used for experimental features

Link copied to clipboard
val labStorageType: Output<Either<String, StorageType>>? = null

Type of storage used by the lab. It can be either Premium or Standard. Default is Premium.

Link copied to clipboard
val location: Output<String>? = null

The location of the resource.

Link copied to clipboard

The ordered list of artifact resource IDs that should be applied on all Linux VM creations by default, prior to the artifacts specified by the user.

Link copied to clipboard

The ordered list of artifact resource IDs that should be applied on all Windows VM creations by default, prior to the artifacts specified by the user.

Link copied to clipboard
val name: Output<String>? = null

The name of the lab.

Link copied to clipboard
val premiumDataDisks: Output<Either<String, PremiumDataDisk>>? = null

The setting to enable usage of premium data disks. When its value is 'Enabled', creation of standard or premium data disks is allowed. When its value is 'Disabled', only creation of standard data disks is allowed.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val support: Output<LabSupportPropertiesArgs>? = null

The properties of any lab support message associated with this lab

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

The tags of the resource.

Functions

Link copied to clipboard
open override fun toJava(): LabArgs