PoolArgs

data class PoolArgs(val devBoxDefinitionName: Output<String>? = null, val licenseType: Output<Either<String, LicenseType>>? = null, val localAdministrator: Output<Either<String, LocalAdminStatus>>? = null, val location: Output<String>? = null, val networkConnectionName: Output<String>? = null, val poolName: Output<String>? = null, val projectName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<PoolArgs>

A pool of Virtual Machines. API Version: 2022-09-01-preview.

Example Usage

Pools_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var pool = new AzureNative.DevCenter.Pool("pool", new()
{
DevBoxDefinitionName = "WebDevBox",
LicenseType = "Windows_Client",
LocalAdministrator = "Enabled",
Location = "centralus",
NetworkConnectionName = "Network1-westus2",
PoolName = "{poolName}",
ProjectName = "{projectName}",
ResourceGroupName = "rg1",
});
});
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewPool(ctx, "pool", &devcenter.PoolArgs{
DevBoxDefinitionName: pulumi.String("WebDevBox"),
LicenseType: pulumi.String("Windows_Client"),
LocalAdministrator: pulumi.String("Enabled"),
Location: pulumi.String("centralus"),
NetworkConnectionName: pulumi.String("Network1-westus2"),
PoolName: pulumi.String("{poolName}"),
ProjectName: pulumi.String("{projectName}"),
ResourceGroupName: pulumi.String("rg1"),
})
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.azurenative.devcenter.Pool;
import com.pulumi.azurenative.devcenter.PoolArgs;
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 pool = new Pool("pool", PoolArgs.builder()
.devBoxDefinitionName("WebDevBox")
.licenseType("Windows_Client")
.localAdministrator("Enabled")
.location("centralus")
.networkConnectionName("Network1-westus2")
.poolName("{poolName}")
.projectName("{projectName}")
.resourceGroupName("rg1")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:devcenter:Pool {poolName} /subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/{projectName}/pools/{poolName}

Constructors

Link copied to clipboard
constructor(devBoxDefinitionName: Output<String>? = null, licenseType: Output<Either<String, LicenseType>>? = null, localAdministrator: Output<Either<String, LocalAdminStatus>>? = null, location: Output<String>? = null, networkConnectionName: Output<String>? = null, poolName: Output<String>? = null, projectName: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

Name of a Dev Box definition in parent Project of this Pool

Link copied to clipboard
val licenseType: Output<Either<String, LicenseType>>? = null

Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.

Link copied to clipboard
val localAdministrator: Output<Either<String, LocalAdminStatus>>? = null

Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.

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

The geo-location where the resource lives

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

Name of a Network Connection in parent Project of this Pool

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

Name of the pool.

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

The name of the project.

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

Name of the resource group within the Azure subscription.

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

Resource tags.

Functions

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