1. Packages
  2. Azure Native v1
  3. API Docs
  4. devcenter
  5. Pool
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.devcenter.Pool

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    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 pulumi
    import pulumi_azure_native as azure_native
    
    pool = azure_native.devcenter.Pool("pool",
        dev_box_definition_name="WebDevBox",
        license_type="Windows_Client",
        local_administrator="Enabled",
        location="centralus",
        network_connection_name="Network1-westus2",
        pool_name="{poolName}",
        project_name="{projectName}",
        resource_group_name="rg1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const pool = new azure_native.devcenter.Pool("pool", {
        devBoxDefinitionName: "WebDevBox",
        licenseType: "Windows_Client",
        localAdministrator: "Enabled",
        location: "centralus",
        networkConnectionName: "Network1-westus2",
        poolName: "{poolName}",
        projectName: "{projectName}",
        resourceGroupName: "rg1",
    });
    
    resources:
      pool:
        type: azure-native:devcenter:Pool
        properties:
          devBoxDefinitionName: WebDevBox
          licenseType: Windows_Client
          localAdministrator: Enabled
          location: centralus
          networkConnectionName: Network1-westus2
          poolName: '{poolName}'
          projectName: '{projectName}'
          resourceGroupName: rg1
    

    Create Pool Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Pool(name: string, args: PoolArgs, opts?: CustomResourceOptions);
    @overload
    def Pool(resource_name: str,
             args: PoolArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Pool(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             dev_box_definition_name: Optional[str] = None,
             license_type: Optional[Union[str, LicenseType]] = None,
             local_administrator: Optional[Union[str, LocalAdminStatus]] = None,
             network_connection_name: Optional[str] = None,
             project_name: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             location: Optional[str] = None,
             pool_name: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None)
    func NewPool(ctx *Context, name string, args PoolArgs, opts ...ResourceOption) (*Pool, error)
    public Pool(string name, PoolArgs args, CustomResourceOptions? opts = null)
    public Pool(String name, PoolArgs args)
    public Pool(String name, PoolArgs args, CustomResourceOptions options)
    
    type: azure-native:devcenter:Pool
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PoolArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PoolArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PoolArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var examplepoolResourceResourceFromDevcenter = new AzureNative.Devcenter.Pool("examplepoolResourceResourceFromDevcenter", new()
    {
        DevBoxDefinitionName = "string",
        LicenseType = "string",
        LocalAdministrator = "string",
        NetworkConnectionName = "string",
        ProjectName = "string",
        ResourceGroupName = "string",
        Location = "string",
        PoolName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := devcenter.NewPool(ctx, "examplepoolResourceResourceFromDevcenter", &devcenter.PoolArgs{
    	DevBoxDefinitionName:  "string",
    	LicenseType:           "string",
    	LocalAdministrator:    "string",
    	NetworkConnectionName: "string",
    	ProjectName:           "string",
    	ResourceGroupName:     "string",
    	Location:              "string",
    	PoolName:              "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var examplepoolResourceResourceFromDevcenter = new Pool("examplepoolResourceResourceFromDevcenter", PoolArgs.builder()
        .devBoxDefinitionName("string")
        .licenseType("string")
        .localAdministrator("string")
        .networkConnectionName("string")
        .projectName("string")
        .resourceGroupName("string")
        .location("string")
        .poolName("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    examplepool_resource_resource_from_devcenter = azure_native.devcenter.Pool("examplepoolResourceResourceFromDevcenter",
        dev_box_definition_name=string,
        license_type=string,
        local_administrator=string,
        network_connection_name=string,
        project_name=string,
        resource_group_name=string,
        location=string,
        pool_name=string,
        tags={
            string: string,
        })
    
    const examplepoolResourceResourceFromDevcenter = new azure_native.devcenter.Pool("examplepoolResourceResourceFromDevcenter", {
        devBoxDefinitionName: "string",
        licenseType: "string",
        localAdministrator: "string",
        networkConnectionName: "string",
        projectName: "string",
        resourceGroupName: "string",
        location: "string",
        poolName: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:devcenter:Pool
    properties:
        devBoxDefinitionName: string
        licenseType: string
        localAdministrator: string
        location: string
        networkConnectionName: string
        poolName: string
        projectName: string
        resourceGroupName: string
        tags:
            string: string
    

    Pool Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Pool resource accepts the following input properties:

    DevBoxDefinitionName string
    Name of a Dev Box definition in parent Project of this Pool
    LicenseType string | Pulumi.AzureNative.DevCenter.LicenseType
    Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
    LocalAdministrator string | Pulumi.AzureNative.DevCenter.LocalAdminStatus
    Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
    NetworkConnectionName string
    Name of a Network Connection in parent Project of this Pool
    ProjectName string
    The name of the project.
    ResourceGroupName string
    Name of the resource group within the Azure subscription.
    Location string
    The geo-location where the resource lives
    PoolName string
    Name of the pool.
    Tags Dictionary<string, string>
    Resource tags.
    DevBoxDefinitionName string
    Name of a Dev Box definition in parent Project of this Pool
    LicenseType string | LicenseType
    Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
    LocalAdministrator string | LocalAdminStatus
    Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
    NetworkConnectionName string
    Name of a Network Connection in parent Project of this Pool
    ProjectName string
    The name of the project.
    ResourceGroupName string
    Name of the resource group within the Azure subscription.
    Location string
    The geo-location where the resource lives
    PoolName string
    Name of the pool.
    Tags map[string]string
    Resource tags.
    devBoxDefinitionName String
    Name of a Dev Box definition in parent Project of this Pool
    licenseType String | LicenseType
    Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
    localAdministrator String | LocalAdminStatus
    Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
    networkConnectionName String
    Name of a Network Connection in parent Project of this Pool
    projectName String
    The name of the project.
    resourceGroupName String
    Name of the resource group within the Azure subscription.
    location String
    The geo-location where the resource lives
    poolName String
    Name of the pool.
    tags Map<String,String>
    Resource tags.
    devBoxDefinitionName string
    Name of a Dev Box definition in parent Project of this Pool
    licenseType string | LicenseType
    Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
    localAdministrator string | LocalAdminStatus
    Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
    networkConnectionName string
    Name of a Network Connection in parent Project of this Pool
    projectName string
    The name of the project.
    resourceGroupName string
    Name of the resource group within the Azure subscription.
    location string
    The geo-location where the resource lives
    poolName string
    Name of the pool.
    tags {[key: string]: string}
    Resource tags.
    dev_box_definition_name str
    Name of a Dev Box definition in parent Project of this Pool
    license_type str | LicenseType
    Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
    local_administrator str | LocalAdminStatus
    Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
    network_connection_name str
    Name of a Network Connection in parent Project of this Pool
    project_name str
    The name of the project.
    resource_group_name str
    Name of the resource group within the Azure subscription.
    location str
    The geo-location where the resource lives
    pool_name str
    Name of the pool.
    tags Mapping[str, str]
    Resource tags.
    devBoxDefinitionName String
    Name of a Dev Box definition in parent Project of this Pool
    licenseType String | "Windows_Client"
    Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
    localAdministrator String | "Disabled" | "Enabled"
    Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
    networkConnectionName String
    Name of a Network Connection in parent Project of this Pool
    projectName String
    The name of the project.
    resourceGroupName String
    Name of the resource group within the Azure subscription.
    location String
    The geo-location where the resource lives
    poolName String
    Name of the pool.
    tags Map<String>
    Resource tags.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Pool resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    The provisioning state of the resource.
    SystemData Pulumi.AzureNative.DevCenter.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    The provisioning state of the resource.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    The provisioning state of the resource.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    The provisioning state of the resource.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    The provisioning state of the resource.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    The provisioning state of the resource.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    LicenseType, LicenseTypeArgs

    Windows_Client
    Windows_Client
    LicenseType_Windows_Client
    Windows_Client
    Windows_Client
    Windows_Client
    Windows_Client
    Windows_Client
    WINDOWS_CLIENT
    Windows_Client
    "Windows_Client"
    Windows_Client

    LocalAdminStatus, LocalAdminStatusArgs

    Disabled
    Disabled
    Enabled
    Enabled
    LocalAdminStatusDisabled
    Disabled
    LocalAdminStatusEnabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    DISABLED
    Disabled
    ENABLED
    Enabled
    "Disabled"
    Disabled
    "Enabled"
    Enabled

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi