Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.lab.kotlin
import com.pulumi.azure.lab.ServicePlanArgs.builder
import com.pulumi.azure.lab.kotlin.inputs.ServicePlanDefaultAutoShutdownArgs
import com.pulumi.azure.lab.kotlin.inputs.ServicePlanDefaultAutoShutdownArgsBuilder
import com.pulumi.azure.lab.kotlin.inputs.ServicePlanDefaultConnectionArgs
import com.pulumi.azure.lab.kotlin.inputs.ServicePlanDefaultConnectionArgsBuilder
import com.pulumi.azure.lab.kotlin.inputs.ServicePlanSupportArgs
import com.pulumi.azure.lab.kotlin.inputs.ServicePlanSupportArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* 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
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleServicePlan = new azure.lab.ServicePlan("example", {
* name: "example-lp",
* resourceGroupName: example.name,
* location: example.location,
* allowedRegions: [example.location],
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_service_plan = azure.lab.ServicePlan("example",
* name="example-lp",
* resource_group_name=example.name,
* location=example.location,
* allowed_regions=[example.location])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var exampleServicePlan = new Azure.Lab.ServicePlan("example", new()
* {
* Name = "example-lp",
* ResourceGroupName = example.Name,
* Location = example.Location,
* AllowedRegions = new[]
* {
* example.Location,
* },
* });
* });
* ```
* ```go
* 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 {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = lab.NewServicePlan(ctx, "example", &lab.ServicePlanArgs{
* Name: pulumi.String("example-lp"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* AllowedRegions: pulumi.StringArray{
* example.Location,
* },
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var exampleServicePlan = new ServicePlan("exampleServicePlan", ServicePlanArgs.builder()
* .name("example-lp")
* .resourceGroupName(example.name())
* .location(example.location())
* .allowedRegions(example.location())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleServicePlan:
* type: azure:lab:ServicePlan
* name: example
* properties:
* name: example-lp
* resourceGroupName: ${example.name}
* location: ${example.location}
* allowedRegions:
* - ${example.location}
* ```
*
* ## Import
* Lab Service Plans can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:lab/servicePlan:ServicePlan example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.LabServices/labPlans/labPlan1
* ```
* @property allowedRegions 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`.
* @property defaultAutoShutdown A `default_auto_shutdown` block as defined below.
* @property defaultConnection A `default_connection` block as defined below.
* @property defaultNetworkSubnetId The resource ID of the Subnet for the Lab Service Plan network profile.
* @property location The Azure Region where the Lab Service Plan should exist. Changing this forces a new resource to be created.
* @property name The name of the Lab Service Plan. Changing this forces a new resource to be created.
* @property resourceGroupName The name of the Resource Group where the Lab Service Plan should exist. Changing this forces a new resource to be created.
* @property sharedGalleryId 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.
* > **NOTE:** The built-in `Azure Lab Services` Service Principal with role needs to be assigned to the Shared Image Gallery while using this property.
* @property support A `support` block as defined below.
* @property tags A mapping of tags which should be assigned to the Lab Service Plan.
*/
public data class ServicePlanArgs(
public val allowedRegions: Output>? = null,
public val defaultAutoShutdown: Output? = null,
public val defaultConnection: Output? = null,
public val defaultNetworkSubnetId: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val sharedGalleryId: Output? = null,
public val support: Output? = null,
public val tags: Output