Pool Args
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
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
Name of a Dev Box definition in parent Project of this Pool
Link copied to clipboard
Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
Link copied to clipboard
Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
Link copied to clipboard
Name of a Network Connection in parent Project of this Pool
Link copied to clipboard
The name of the project.
Link copied to clipboard
Name of the resource group within the Azure subscription.