ServicePlan

class ServicePlan : KotlinCustomResource

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

Properties

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

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

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

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

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>

The name of the Lab Service Plan. 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

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>?

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

A support block as defined below.

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

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

Link copied to clipboard
val urn: Output<String>