We recommend using Azure Native.
azure.lab.Lab
Explore with Pulumi AI
Manages a Lab Service Lab.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleLab = new Azure.Lab.Lab("exampleLab", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Title = "Test Title",
Security = new Azure.Lab.Inputs.LabSecurityArgs
{
OpenAccessEnabled = false,
},
VirtualMachine = new Azure.Lab.Inputs.LabVirtualMachineArgs
{
AdminUser = new Azure.Lab.Inputs.LabVirtualMachineAdminUserArgs
{
Username = "testadmin",
Password = "Password1234!",
},
ImageReference = new Azure.Lab.Inputs.LabVirtualMachineImageReferenceArgs
{
Offer = "0001-com-ubuntu-server-focal",
Publisher = "canonical",
Sku = "20_04-lts",
Version = "latest",
},
Sku = new Azure.Lab.Inputs.LabVirtualMachineSkuArgs
{
Name = "Classic_Fsv2_2_4GB_128_S_SSD",
Capacity = 0,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/lab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = lab.NewLab(ctx, "exampleLab", &lab.LabArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
Title: pulumi.String("Test Title"),
Security: &lab.LabSecurityArgs{
OpenAccessEnabled: pulumi.Bool(false),
},
VirtualMachine: &lab.LabVirtualMachineArgs{
AdminUser: &lab.LabVirtualMachineAdminUserArgs{
Username: pulumi.String("testadmin"),
Password: pulumi.String("Password1234!"),
},
ImageReference: &lab.LabVirtualMachineImageReferenceArgs{
Offer: pulumi.String("0001-com-ubuntu-server-focal"),
Publisher: pulumi.String("canonical"),
Sku: pulumi.String("20_04-lts"),
Version: pulumi.String("latest"),
},
Sku: &lab.LabVirtualMachineSkuArgs{
Name: pulumi.String("Classic_Fsv2_2_4GB_128_S_SSD"),
Capacity: pulumi.Int(0),
},
},
})
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.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 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(0)
.build())
.build())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_lab = azure.lab.Lab("exampleLab",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
title="Test Title",
security=azure.lab.LabSecurityArgs(
open_access_enabled=False,
),
virtual_machine=azure.lab.LabVirtualMachineArgs(
admin_user=azure.lab.LabVirtualMachineAdminUserArgs(
username="testadmin",
password="Password1234!",
),
image_reference=azure.lab.LabVirtualMachineImageReferenceArgs(
offer="0001-com-ubuntu-server-focal",
publisher="canonical",
sku="20_04-lts",
version="latest",
),
sku=azure.lab.LabVirtualMachineSkuArgs(
name="Classic_Fsv2_2_4GB_128_S_SSD",
capacity=0,
),
))
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleLab = new azure.lab.Lab("exampleLab", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
title: "Test Title",
security: {
openAccessEnabled: false,
},
virtualMachine: {
adminUser: {
username: "testadmin",
password: "Password1234!",
},
imageReference: {
offer: "0001-com-ubuntu-server-focal",
publisher: "canonical",
sku: "20_04-lts",
version: "latest",
},
sku: {
name: "Classic_Fsv2_2_4GB_128_S_SSD",
capacity: 0,
},
},
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleLab:
type: azure:lab:Lab
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
title: Test Title
security:
openAccessEnabled: false
virtualMachine:
adminUser:
username: testadmin
password: Password1234!
imageReference:
offer: 0001-com-ubuntu-server-focal
publisher: canonical
sku: 20_04-lts
version: latest
sku:
name: Classic_Fsv2_2_4GB_128_S_SSD
capacity: 0
Create Lab Resource
new Lab(name: string, args: LabArgs, opts?: CustomResourceOptions);
@overload
def Lab(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_shutdown: Optional[LabAutoShutdownArgs] = None,
connection_setting: Optional[LabConnectionSettingArgs] = None,
description: Optional[str] = None,
lab_plan_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
network: Optional[LabNetworkArgs] = None,
resource_group_name: Optional[str] = None,
roster: Optional[LabRosterArgs] = None,
security: Optional[LabSecurityArgs] = None,
tags: Optional[Mapping[str, str]] = None,
title: Optional[str] = None,
virtual_machine: Optional[LabVirtualMachineArgs] = None)
@overload
def Lab(resource_name: str,
args: LabArgs,
opts: Optional[ResourceOptions] = None)
func NewLab(ctx *Context, name string, args LabArgs, opts ...ResourceOption) (*Lab, error)
public Lab(string name, LabArgs args, CustomResourceOptions? opts = null)
type: azure:lab:Lab
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LabArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LabArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LabArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LabArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LabArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Lab Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Lab resource accepts the following input properties:
- Resource
Group stringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- Security
Lab
Security A
security
block as defined below.- Title string
The title of the Lab Service Lab.
- Virtual
Machine LabVirtual Machine A
virtual_machine
block as defined below.- Auto
Shutdown LabAuto Shutdown An
auto_shutdown
block as defined below.- Connection
Setting LabConnection Setting A
connection_setting
block as defined below.- Description string
The description of the Lab Service Lab.
- Lab
Plan stringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- Location string
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- Name string
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- Network
Lab
Network A
network
block as defined below.- Roster
Lab
Roster A
roster
block as defined below.- Dictionary<string, string>
A mapping of tags which should be assigned to the Lab Service Lab.
- Resource
Group stringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- Security
Lab
Security Args A
security
block as defined below.- Title string
The title of the Lab Service Lab.
- Virtual
Machine LabVirtual Machine Args A
virtual_machine
block as defined below.- Auto
Shutdown LabAuto Shutdown Args An
auto_shutdown
block as defined below.- Connection
Setting LabConnection Setting Args A
connection_setting
block as defined below.- Description string
The description of the Lab Service Lab.
- Lab
Plan stringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- Location string
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- Name string
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- Network
Lab
Network Args A
network
block as defined below.- Roster
Lab
Roster Args A
roster
block as defined below.- map[string]string
A mapping of tags which should be assigned to the Lab Service Lab.
- resource
Group StringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- security
Lab
Security A
security
block as defined below.- title String
The title of the Lab Service Lab.
- virtual
Machine LabVirtual Machine A
virtual_machine
block as defined below.- auto
Shutdown LabAuto Shutdown An
auto_shutdown
block as defined below.- connection
Setting LabConnection Setting A
connection_setting
block as defined below.- description String
The description of the Lab Service Lab.
- lab
Plan StringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- location String
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- name String
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- network
Lab
Network A
network
block as defined below.- roster
Lab
Roster A
roster
block as defined below.- Map<String,String>
A mapping of tags which should be assigned to the Lab Service Lab.
- resource
Group stringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- security
Lab
Security A
security
block as defined below.- title string
The title of the Lab Service Lab.
- virtual
Machine LabVirtual Machine A
virtual_machine
block as defined below.- auto
Shutdown LabAuto Shutdown An
auto_shutdown
block as defined below.- connection
Setting LabConnection Setting A
connection_setting
block as defined below.- description string
The description of the Lab Service Lab.
- lab
Plan stringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- location string
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- name string
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- network
Lab
Network A
network
block as defined below.- roster
Lab
Roster A
roster
block as defined below.- {[key: string]: string}
A mapping of tags which should be assigned to the Lab Service Lab.
- resource_
group_ strname The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- security
Lab
Security Args A
security
block as defined below.- title str
The title of the Lab Service Lab.
- virtual_
machine LabVirtual Machine Args A
virtual_machine
block as defined below.- auto_
shutdown LabAuto Shutdown Args An
auto_shutdown
block as defined below.- connection_
setting LabConnection Setting Args A
connection_setting
block as defined below.- description str
The description of the Lab Service Lab.
- lab_
plan_ strid The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- location str
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- name str
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- network
Lab
Network Args A
network
block as defined below.- roster
Lab
Roster Args A
roster
block as defined below.- Mapping[str, str]
A mapping of tags which should be assigned to the Lab Service Lab.
- resource
Group StringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- security Property Map
A
security
block as defined below.- title String
The title of the Lab Service Lab.
- virtual
Machine Property Map A
virtual_machine
block as defined below.- auto
Shutdown Property Map An
auto_shutdown
block as defined below.- connection
Setting Property Map A
connection_setting
block as defined below.- description String
The description of the Lab Service Lab.
- lab
Plan StringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- location String
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- name String
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- network Property Map
A
network
block as defined below.- roster Property Map
A
roster
block as defined below.- Map<String>
A mapping of tags which should be assigned to the Lab Service Lab.
Outputs
All input properties are implicitly available as output properties. Additionally, the Lab resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing Lab Resource
Get an existing Lab resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LabState, opts?: CustomResourceOptions): Lab
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_shutdown: Optional[LabAutoShutdownArgs] = None,
connection_setting: Optional[LabConnectionSettingArgs] = None,
description: Optional[str] = None,
lab_plan_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
network: Optional[LabNetworkArgs] = None,
resource_group_name: Optional[str] = None,
roster: Optional[LabRosterArgs] = None,
security: Optional[LabSecurityArgs] = None,
tags: Optional[Mapping[str, str]] = None,
title: Optional[str] = None,
virtual_machine: Optional[LabVirtualMachineArgs] = None) -> Lab
func GetLab(ctx *Context, name string, id IDInput, state *LabState, opts ...ResourceOption) (*Lab, error)
public static Lab Get(string name, Input<string> id, LabState? state, CustomResourceOptions? opts = null)
public static Lab get(String name, Output<String> id, LabState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Shutdown LabAuto Shutdown An
auto_shutdown
block as defined below.- Connection
Setting LabConnection Setting A
connection_setting
block as defined below.- Description string
The description of the Lab Service Lab.
- Lab
Plan stringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- Location string
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- Name string
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- Network
Lab
Network A
network
block as defined below.- Resource
Group stringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- Roster
Lab
Roster A
roster
block as defined below.- Security
Lab
Security A
security
block as defined below.- Dictionary<string, string>
A mapping of tags which should be assigned to the Lab Service Lab.
- Title string
The title of the Lab Service Lab.
- Virtual
Machine LabVirtual Machine A
virtual_machine
block as defined below.
- Auto
Shutdown LabAuto Shutdown Args An
auto_shutdown
block as defined below.- Connection
Setting LabConnection Setting Args A
connection_setting
block as defined below.- Description string
The description of the Lab Service Lab.
- Lab
Plan stringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- Location string
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- Name string
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- Network
Lab
Network Args A
network
block as defined below.- Resource
Group stringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- Roster
Lab
Roster Args A
roster
block as defined below.- Security
Lab
Security Args A
security
block as defined below.- map[string]string
A mapping of tags which should be assigned to the Lab Service Lab.
- Title string
The title of the Lab Service Lab.
- Virtual
Machine LabVirtual Machine Args A
virtual_machine
block as defined below.
- auto
Shutdown LabAuto Shutdown An
auto_shutdown
block as defined below.- connection
Setting LabConnection Setting A
connection_setting
block as defined below.- description String
The description of the Lab Service Lab.
- lab
Plan StringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- location String
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- name String
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- network
Lab
Network A
network
block as defined below.- resource
Group StringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- roster
Lab
Roster A
roster
block as defined below.- security
Lab
Security A
security
block as defined below.- Map<String,String>
A mapping of tags which should be assigned to the Lab Service Lab.
- title String
The title of the Lab Service Lab.
- virtual
Machine LabVirtual Machine A
virtual_machine
block as defined below.
- auto
Shutdown LabAuto Shutdown An
auto_shutdown
block as defined below.- connection
Setting LabConnection Setting A
connection_setting
block as defined below.- description string
The description of the Lab Service Lab.
- lab
Plan stringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- location string
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- name string
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- network
Lab
Network A
network
block as defined below.- resource
Group stringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- roster
Lab
Roster A
roster
block as defined below.- security
Lab
Security A
security
block as defined below.- {[key: string]: string}
A mapping of tags which should be assigned to the Lab Service Lab.
- title string
The title of the Lab Service Lab.
- virtual
Machine LabVirtual Machine A
virtual_machine
block as defined below.
- auto_
shutdown LabAuto Shutdown Args An
auto_shutdown
block as defined below.- connection_
setting LabConnection Setting Args A
connection_setting
block as defined below.- description str
The description of the Lab Service Lab.
- lab_
plan_ strid The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- location str
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- name str
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- network
Lab
Network Args A
network
block as defined below.- resource_
group_ strname The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- roster
Lab
Roster Args A
roster
block as defined below.- security
Lab
Security Args A
security
block as defined below.- Mapping[str, str]
A mapping of tags which should be assigned to the Lab Service Lab.
- title str
The title of the Lab Service Lab.
- virtual_
machine LabVirtual Machine Args A
virtual_machine
block as defined below.
- auto
Shutdown Property Map An
auto_shutdown
block as defined below.- connection
Setting Property Map A
connection_setting
block as defined below.- description String
The description of the Lab Service Lab.
- lab
Plan StringId The resource ID of the Lab Plan that is used during resource creation to provide defaults and acts as a permission container when creating a Lab Service Lab via
labs.azure.com
.- location String
The Azure Region where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- name String
The name which should be used for this Lab Service Lab. Changing this forces a new resource to be created.
- network Property Map
A
network
block as defined below.- resource
Group StringName The name of the Resource Group where the Lab Service Lab should exist. Changing this forces a new resource to be created.
- roster Property Map
A
roster
block as defined below.- security Property Map
A
security
block as defined below.- Map<String>
A mapping of tags which should be assigned to the Lab Service Lab.
- title String
The title of the Lab Service Lab.
- virtual
Machine Property Map A
virtual_machine
block as defined below.
Supporting Types
LabAutoShutdown, LabAutoShutdownArgs
- Disconnect
Delay string The amount of time a VM will stay running after a user disconnects if this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownOnDisconnect
isDisabled
whendisconnect_delay
isn't specified.- Idle
Delay string The amount of time a VM will idle before it is shutdown if this behavior is enabled. This value must be formatted as an ISO 8601 string.
- No
Connect stringDelay The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownWhenNotConnected
isDisabled
whenno_connect_delay
isn't specified.- Shutdown
On stringIdle A VM will get shutdown when it has idled for a period of time. Possible values are
LowUsage
andUserAbsence
.NOTE: This property is
None
when it isn't specified. No need to setidle_delay
whenshutdown_on_idle
isn't specified.
- Disconnect
Delay string The amount of time a VM will stay running after a user disconnects if this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownOnDisconnect
isDisabled
whendisconnect_delay
isn't specified.- Idle
Delay string The amount of time a VM will idle before it is shutdown if this behavior is enabled. This value must be formatted as an ISO 8601 string.
- No
Connect stringDelay The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownWhenNotConnected
isDisabled
whenno_connect_delay
isn't specified.- Shutdown
On stringIdle A VM will get shutdown when it has idled for a period of time. Possible values are
LowUsage
andUserAbsence
.NOTE: This property is
None
when it isn't specified. No need to setidle_delay
whenshutdown_on_idle
isn't specified.
- disconnect
Delay String The amount of time a VM will stay running after a user disconnects if this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownOnDisconnect
isDisabled
whendisconnect_delay
isn't specified.- idle
Delay String The amount of time a VM will idle before it is shutdown if this behavior is enabled. This value must be formatted as an ISO 8601 string.
- no
Connect StringDelay The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownWhenNotConnected
isDisabled
whenno_connect_delay
isn't specified.- shutdown
On StringIdle A VM will get shutdown when it has idled for a period of time. Possible values are
LowUsage
andUserAbsence
.NOTE: This property is
None
when it isn't specified. No need to setidle_delay
whenshutdown_on_idle
isn't specified.
- disconnect
Delay string The amount of time a VM will stay running after a user disconnects if this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownOnDisconnect
isDisabled
whendisconnect_delay
isn't specified.- idle
Delay string The amount of time a VM will idle before it is shutdown if this behavior is enabled. This value must be formatted as an ISO 8601 string.
- no
Connect stringDelay The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownWhenNotConnected
isDisabled
whenno_connect_delay
isn't specified.- shutdown
On stringIdle A VM will get shutdown when it has idled for a period of time. Possible values are
LowUsage
andUserAbsence
.NOTE: This property is
None
when it isn't specified. No need to setidle_delay
whenshutdown_on_idle
isn't specified.
- disconnect_
delay str The amount of time a VM will stay running after a user disconnects if this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownOnDisconnect
isDisabled
whendisconnect_delay
isn't specified.- idle_
delay str The amount of time a VM will idle before it is shutdown if this behavior is enabled. This value must be formatted as an ISO 8601 string.
- no_
connect_ strdelay The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownWhenNotConnected
isDisabled
whenno_connect_delay
isn't specified.- shutdown_
on_ stridle A VM will get shutdown when it has idled for a period of time. Possible values are
LowUsage
andUserAbsence
.NOTE: This property is
None
when it isn't specified. No need to setidle_delay
whenshutdown_on_idle
isn't specified.
- disconnect
Delay String The amount of time a VM will stay running after a user disconnects if this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownOnDisconnect
isDisabled
whendisconnect_delay
isn't specified.- idle
Delay String The amount of time a VM will idle before it is shutdown if this behavior is enabled. This value must be formatted as an ISO 8601 string.
- no
Connect StringDelay The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled. This value must be formatted as an ISO 8601 string.
NOTE: The
shutdownWhenNotConnected
isDisabled
whenno_connect_delay
isn't specified.- shutdown
On StringIdle A VM will get shutdown when it has idled for a period of time. Possible values are
LowUsage
andUserAbsence
.NOTE: This property is
None
when it isn't specified. No need to setidle_delay
whenshutdown_on_idle
isn't specified.
LabConnectionSetting, LabConnectionSettingArgs
- Client
Rdp stringAccess The enabled access level for Client Access over RDP. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.- Client
Ssh stringAccess The enabled access level for Client Access over SSH. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.
- Client
Rdp stringAccess The enabled access level for Client Access over RDP. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.- Client
Ssh stringAccess The enabled access level for Client Access over SSH. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.
- client
Rdp StringAccess The enabled access level for Client Access over RDP. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.- client
Ssh StringAccess The enabled access level for Client Access over SSH. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.
- client
Rdp stringAccess The enabled access level for Client Access over RDP. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.- client
Ssh stringAccess The enabled access level for Client Access over SSH. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.
- client_
rdp_ straccess The enabled access level for Client Access over RDP. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.- client_
ssh_ straccess The enabled access level for Client Access over SSH. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.
- client
Rdp StringAccess The enabled access level for Client Access over RDP. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.- client
Ssh StringAccess The enabled access level for Client Access over SSH. Possible value is
Public
.NOTE: This property is
None
when it isn't specified.
LabNetwork, LabNetworkArgs
- Load
Balancer stringId The resource ID of the Load Balancer for the network profile of the Lab Service Lab.
- Public
Ip stringId The resource ID of the Public IP for the network profile of the Lab Service Lab.
- Subnet
Id string The resource ID of the Subnet for the network profile of the Lab Service Lab.
- Load
Balancer stringId The resource ID of the Load Balancer for the network profile of the Lab Service Lab.
- Public
Ip stringId The resource ID of the Public IP for the network profile of the Lab Service Lab.
- Subnet
Id string The resource ID of the Subnet for the network profile of the Lab Service Lab.
- load
Balancer StringId The resource ID of the Load Balancer for the network profile of the Lab Service Lab.
- public
Ip StringId The resource ID of the Public IP for the network profile of the Lab Service Lab.
- subnet
Id String The resource ID of the Subnet for the network profile of the Lab Service Lab.
- load
Balancer stringId The resource ID of the Load Balancer for the network profile of the Lab Service Lab.
- public
Ip stringId The resource ID of the Public IP for the network profile of the Lab Service Lab.
- subnet
Id string The resource ID of the Subnet for the network profile of the Lab Service Lab.
- load_
balancer_ strid The resource ID of the Load Balancer for the network profile of the Lab Service Lab.
- public_
ip_ strid The resource ID of the Public IP for the network profile of the Lab Service Lab.
- subnet_
id str The resource ID of the Subnet for the network profile of the Lab Service Lab.
- load
Balancer StringId The resource ID of the Load Balancer for the network profile of the Lab Service Lab.
- public
Ip StringId The resource ID of the Public IP for the network profile of the Lab Service Lab.
- subnet
Id String The resource ID of the Subnet for the network profile of the Lab Service Lab.
LabRoster, LabRosterArgs
- Active
Directory stringGroup Id The AAD group ID which this Lab Service Lab roster is populated from.
- Lms
Instance string The base URI identifying the lms instance.
- Lti
Client stringId The unique id of the Azure Lab Service tool in the lms.
- Lti
Context stringId The unique context identifier for the Lab Service Lab in the lms.
- Lti
Roster stringEndpoint The URI of the names and roles service endpoint on the lms for the class attached to this Lab Service Lab.
- Active
Directory stringGroup Id The AAD group ID which this Lab Service Lab roster is populated from.
- Lms
Instance string The base URI identifying the lms instance.
- Lti
Client stringId The unique id of the Azure Lab Service tool in the lms.
- Lti
Context stringId The unique context identifier for the Lab Service Lab in the lms.
- Lti
Roster stringEndpoint The URI of the names and roles service endpoint on the lms for the class attached to this Lab Service Lab.
- active
Directory StringGroup Id The AAD group ID which this Lab Service Lab roster is populated from.
- lms
Instance String The base URI identifying the lms instance.
- lti
Client StringId The unique id of the Azure Lab Service tool in the lms.
- lti
Context StringId The unique context identifier for the Lab Service Lab in the lms.
- lti
Roster StringEndpoint The URI of the names and roles service endpoint on the lms for the class attached to this Lab Service Lab.
- active
Directory stringGroup Id The AAD group ID which this Lab Service Lab roster is populated from.
- lms
Instance string The base URI identifying the lms instance.
- lti
Client stringId The unique id of the Azure Lab Service tool in the lms.
- lti
Context stringId The unique context identifier for the Lab Service Lab in the lms.
- lti
Roster stringEndpoint The URI of the names and roles service endpoint on the lms for the class attached to this Lab Service Lab.
- active_
directory_ strgroup_ id The AAD group ID which this Lab Service Lab roster is populated from.
- lms_
instance str The base URI identifying the lms instance.
- lti_
client_ strid The unique id of the Azure Lab Service tool in the lms.
- lti_
context_ strid The unique context identifier for the Lab Service Lab in the lms.
- lti_
roster_ strendpoint The URI of the names and roles service endpoint on the lms for the class attached to this Lab Service Lab.
- active
Directory StringGroup Id The AAD group ID which this Lab Service Lab roster is populated from.
- lms
Instance String The base URI identifying the lms instance.
- lti
Client StringId The unique id of the Azure Lab Service tool in the lms.
- lti
Context StringId The unique context identifier for the Lab Service Lab in the lms.
- lti
Roster StringEndpoint The URI of the names and roles service endpoint on the lms for the class attached to this Lab Service Lab.
LabSecurity, LabSecurityArgs
- Open
Access boolEnabled Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
- Registration
Code string The registration code for the Lab Service Lab.
- Open
Access boolEnabled Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
- Registration
Code string The registration code for the Lab Service Lab.
- open
Access BooleanEnabled Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
- registration
Code String The registration code for the Lab Service Lab.
- open
Access booleanEnabled Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
- registration
Code string The registration code for the Lab Service Lab.
- open_
access_ boolenabled Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
- registration_
code str The registration code for the Lab Service Lab.
- open
Access BooleanEnabled Is open access enabled to allow any user or only specified users to register to a Lab Service Lab?
- registration
Code String The registration code for the Lab Service Lab.
LabVirtualMachine, LabVirtualMachineArgs
- Admin
User LabVirtual Machine Admin User An
admin_user
block as defined below.- Image
Reference LabVirtual Machine Image Reference An
image_reference
block as defined below.- Sku
Lab
Virtual Machine Sku A
sku
block as defined below.- Additional
Capability boolGpu Drivers Installed Is flagged to pre-install dedicated GPU drivers? Defaults to
false
. Changing this forces a new resource to be created.- Create
Option string The create option to indicate what Lab Service Lab VMs are created from. Possible values are
Image
andTemplateVM
. Defaults toImage
. Changing this forces a new resource to be created.- Non
Admin LabUser Virtual Machine Non Admin User A
non_admin_user
block as defined below.- bool
Is the shared password enabled with the same password for all user VMs? Defaults to
false
. Changing this forces a new resource to be created.- Usage
Quota string The initial quota allocated to each Lab Service Lab user. Defaults to
PT0S
. This value must be formatted as an ISO 8601 string.
- Admin
User LabVirtual Machine Admin User An
admin_user
block as defined below.- Image
Reference LabVirtual Machine Image Reference An
image_reference
block as defined below.- Sku
Lab
Virtual Machine Sku A
sku
block as defined below.- Additional
Capability boolGpu Drivers Installed Is flagged to pre-install dedicated GPU drivers? Defaults to
false
. Changing this forces a new resource to be created.- Create
Option string The create option to indicate what Lab Service Lab VMs are created from. Possible values are
Image
andTemplateVM
. Defaults toImage
. Changing this forces a new resource to be created.- Non
Admin LabUser Virtual Machine Non Admin User A
non_admin_user
block as defined below.- bool
Is the shared password enabled with the same password for all user VMs? Defaults to
false
. Changing this forces a new resource to be created.- Usage
Quota string The initial quota allocated to each Lab Service Lab user. Defaults to
PT0S
. This value must be formatted as an ISO 8601 string.
- admin
User LabVirtual Machine Admin User An
admin_user
block as defined below.- image
Reference LabVirtual Machine Image Reference An
image_reference
block as defined below.- sku
Lab
Virtual Machine Sku A
sku
block as defined below.- additional
Capability BooleanGpu Drivers Installed Is flagged to pre-install dedicated GPU drivers? Defaults to
false
. Changing this forces a new resource to be created.- create
Option String The create option to indicate what Lab Service Lab VMs are created from. Possible values are
Image
andTemplateVM
. Defaults toImage
. Changing this forces a new resource to be created.- non
Admin LabUser Virtual Machine Non Admin User A
non_admin_user
block as defined below.- Boolean
Is the shared password enabled with the same password for all user VMs? Defaults to
false
. Changing this forces a new resource to be created.- usage
Quota String The initial quota allocated to each Lab Service Lab user. Defaults to
PT0S
. This value must be formatted as an ISO 8601 string.
- admin
User LabVirtual Machine Admin User An
admin_user
block as defined below.- image
Reference LabVirtual Machine Image Reference An
image_reference
block as defined below.- sku
Lab
Virtual Machine Sku A
sku
block as defined below.- additional
Capability booleanGpu Drivers Installed Is flagged to pre-install dedicated GPU drivers? Defaults to
false
. Changing this forces a new resource to be created.- create
Option string The create option to indicate what Lab Service Lab VMs are created from. Possible values are
Image
andTemplateVM
. Defaults toImage
. Changing this forces a new resource to be created.- non
Admin LabUser Virtual Machine Non Admin User A
non_admin_user
block as defined below.- boolean
Is the shared password enabled with the same password for all user VMs? Defaults to
false
. Changing this forces a new resource to be created.- usage
Quota string The initial quota allocated to each Lab Service Lab user. Defaults to
PT0S
. This value must be formatted as an ISO 8601 string.
- admin_
user LabVirtual Machine Admin User An
admin_user
block as defined below.- image_
reference LabVirtual Machine Image Reference An
image_reference
block as defined below.- sku
Lab
Virtual Machine Sku A
sku
block as defined below.- additional_
capability_ boolgpu_ drivers_ installed Is flagged to pre-install dedicated GPU drivers? Defaults to
false
. Changing this forces a new resource to be created.- create_
option str The create option to indicate what Lab Service Lab VMs are created from. Possible values are
Image
andTemplateVM
. Defaults toImage
. Changing this forces a new resource to be created.- non_
admin_ Labuser Virtual Machine Non Admin User A
non_admin_user
block as defined below.- bool
Is the shared password enabled with the same password for all user VMs? Defaults to
false
. Changing this forces a new resource to be created.- usage_
quota str The initial quota allocated to each Lab Service Lab user. Defaults to
PT0S
. This value must be formatted as an ISO 8601 string.
- admin
User Property Map An
admin_user
block as defined below.- image
Reference Property Map An
image_reference
block as defined below.- sku Property Map
A
sku
block as defined below.- additional
Capability BooleanGpu Drivers Installed Is flagged to pre-install dedicated GPU drivers? Defaults to
false
. Changing this forces a new resource to be created.- create
Option String The create option to indicate what Lab Service Lab VMs are created from. Possible values are
Image
andTemplateVM
. Defaults toImage
. Changing this forces a new resource to be created.- non
Admin Property MapUser A
non_admin_user
block as defined below.- Boolean
Is the shared password enabled with the same password for all user VMs? Defaults to
false
. Changing this forces a new resource to be created.- usage
Quota String The initial quota allocated to each Lab Service Lab user. Defaults to
PT0S
. This value must be formatted as an ISO 8601 string.
LabVirtualMachineAdminUser, LabVirtualMachineAdminUserArgs
LabVirtualMachineImageReference, LabVirtualMachineImageReferenceArgs
- Id string
The resource ID of the image. Changing this forces a new resource to be created.
- Offer string
The image offer if applicable. Changing this forces a new resource to be created.
- Publisher string
The image publisher. Changing this forces a new resource to be created.
- Sku string
The image SKU. Changing this forces a new resource to be created.
- Version string
The image version specified on creation. Changing this forces a new resource to be created.
- Id string
The resource ID of the image. Changing this forces a new resource to be created.
- Offer string
The image offer if applicable. Changing this forces a new resource to be created.
- Publisher string
The image publisher. Changing this forces a new resource to be created.
- Sku string
The image SKU. Changing this forces a new resource to be created.
- Version string
The image version specified on creation. Changing this forces a new resource to be created.
- id String
The resource ID of the image. Changing this forces a new resource to be created.
- offer String
The image offer if applicable. Changing this forces a new resource to be created.
- publisher String
The image publisher. Changing this forces a new resource to be created.
- sku String
The image SKU. Changing this forces a new resource to be created.
- version String
The image version specified on creation. Changing this forces a new resource to be created.
- id string
The resource ID of the image. Changing this forces a new resource to be created.
- offer string
The image offer if applicable. Changing this forces a new resource to be created.
- publisher string
The image publisher. Changing this forces a new resource to be created.
- sku string
The image SKU. Changing this forces a new resource to be created.
- version string
The image version specified on creation. Changing this forces a new resource to be created.
- id str
The resource ID of the image. Changing this forces a new resource to be created.
- offer str
The image offer if applicable. Changing this forces a new resource to be created.
- publisher str
The image publisher. Changing this forces a new resource to be created.
- sku str
The image SKU. Changing this forces a new resource to be created.
- version str
The image version specified on creation. Changing this forces a new resource to be created.
- id String
The resource ID of the image. Changing this forces a new resource to be created.
- offer String
The image offer if applicable. Changing this forces a new resource to be created.
- publisher String
The image publisher. Changing this forces a new resource to be created.
- sku String
The image SKU. Changing this forces a new resource to be created.
- version String
The image version specified on creation. Changing this forces a new resource to be created.
LabVirtualMachineNonAdminUser, LabVirtualMachineNonAdminUserArgs
LabVirtualMachineSku, LabVirtualMachineSkuArgs
- Capacity int
The capacity for the SKU. Possible values are between
0
and400
.NOTE: Once
active_directory_group_id
is enabled,capacity
wouldn't take effect, and it would be automatically set to the number of members in AAD Group by service API. So it has to useignore_changes
to avoid the difference of tf plan.- Name string
The name of the SKU. Changing this forces a new resource to be created.
- Capacity int
The capacity for the SKU. Possible values are between
0
and400
.NOTE: Once
active_directory_group_id
is enabled,capacity
wouldn't take effect, and it would be automatically set to the number of members in AAD Group by service API. So it has to useignore_changes
to avoid the difference of tf plan.- Name string
The name of the SKU. Changing this forces a new resource to be created.
- capacity Integer
The capacity for the SKU. Possible values are between
0
and400
.NOTE: Once
active_directory_group_id
is enabled,capacity
wouldn't take effect, and it would be automatically set to the number of members in AAD Group by service API. So it has to useignore_changes
to avoid the difference of tf plan.- name String
The name of the SKU. Changing this forces a new resource to be created.
- capacity number
The capacity for the SKU. Possible values are between
0
and400
.NOTE: Once
active_directory_group_id
is enabled,capacity
wouldn't take effect, and it would be automatically set to the number of members in AAD Group by service API. So it has to useignore_changes
to avoid the difference of tf plan.- name string
The name of the SKU. Changing this forces a new resource to be created.
- capacity int
The capacity for the SKU. Possible values are between
0
and400
.NOTE: Once
active_directory_group_id
is enabled,capacity
wouldn't take effect, and it would be automatically set to the number of members in AAD Group by service API. So it has to useignore_changes
to avoid the difference of tf plan.- name str
The name of the SKU. Changing this forces a new resource to be created.
- capacity Number
The capacity for the SKU. Possible values are between
0
and400
.NOTE: Once
active_directory_group_id
is enabled,capacity
wouldn't take effect, and it would be automatically set to the number of members in AAD Group by service API. So it has to useignore_changes
to avoid the difference of tf plan.- name String
The name of the SKU. Changing this forces a new resource to be created.
Import
Lab Service Labs can be imported using the resource id
, e.g.
$ pulumi import azure:lab/lab:Lab example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.LabServices/labs/lab1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.