ServicePlanArgs

data class ServicePlanArgs(val allowedRegions: Output<List<String>>? = null, val defaultAutoShutdown: Output<ServicePlanDefaultAutoShutdownArgs>? = null, val defaultConnection: Output<ServicePlanDefaultConnectionArgs>? = null, val defaultNetworkSubnetId: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sharedGalleryId: Output<String>? = null, val support: Output<ServicePlanSupportArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServicePlanArgs>

Manages a Lab Service Plan.

Note: Before using this resource, it's required to submit the request of registering the provider with Azure CLI az provider register --namespace Microsoft.LabServices.

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.ServicePlan;
import com.pulumi.azure.lab.ServicePlanArgs;
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 exampleServicePlan = new ServicePlan("exampleServicePlan", ServicePlanArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.allowedRegions(exampleResourceGroup.location())
.build());
}
}

Import

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

$ pulumi import azure:lab/servicePlan:ServicePlan example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.LabServices/labPlans/labPlan1

Constructors

Link copied to clipboard
fun ServicePlanArgs(allowedRegions: Output<List<String>>? = null, defaultAutoShutdown: Output<ServicePlanDefaultAutoShutdownArgs>? = null, defaultConnection: Output<ServicePlanDefaultConnectionArgs>? = null, defaultNetworkSubnetId: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, sharedGalleryId: Output<String>? = null, support: Output<ServicePlanSupportArgs>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

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

The allowed regions for the lab creator to use when creating labs using this Lab Service Plan. The allowed region's count must be between 1 and 28.

Link copied to clipboard

A default_auto_shutdown block as defined below.

Link copied to clipboard

A default_connection block as defined below.

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

The resource ID of the Subnet for the Lab Service Plan network profile.

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

The Azure Region where the Lab Service Plan should exist. Changing this forces a new resource to be created.

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

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

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

The name of the Resource Group where the Lab Service Plan should exist. Changing this forces a new resource to be created.

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

The resource ID of the Shared Image Gallery attached to this Lab Service Plan. When saving a lab template virtual machine image it will be persisted in this gallery. The shared images from the gallery can be made available to use when creating new labs.

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

A support block as defined below.

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

A mapping of tags which should be assigned to the Lab Service Plan.