Service Plan Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
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)