azure-native.devcenter.Pool
Explore with Pulumi AI
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)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
The Pool resource accepts the following input properties:
- DevBox stringDefinition Name 
- Name of a Dev Box definition in parent Project of this Pool
- LicenseType string | Pulumi.Azure Native. Dev Center. License Type 
- Specifies the license type indicating the caller has already acquired licenses for the Dev Boxes that will be created.
- LocalAdministrator string | Pulumi.Azure Native. Dev Center. Local Admin Status 
- Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
- NetworkConnection stringName 
- Name of a Network Connection in parent Project of this Pool
- ProjectName string
- The name of the project.
- ResourceGroup stringName 
- Name of the resource group within the Azure subscription.
- Location string
- The geo-location where the resource lives
- PoolName string
- Name of the pool.
- Dictionary<string, string>
- Resource tags.
- DevBox stringDefinition Name 
- 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 | LocalAdmin Status 
- Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
- NetworkConnection stringName 
- Name of a Network Connection in parent Project of this Pool
- ProjectName string
- The name of the project.
- ResourceGroup stringName 
- Name of the resource group within the Azure subscription.
- Location string
- The geo-location where the resource lives
- PoolName string
- Name of the pool.
- map[string]string
- Resource tags.
- devBox StringDefinition Name 
- 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 | LocalAdmin Status 
- Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
- networkConnection StringName 
- Name of a Network Connection in parent Project of this Pool
- projectName String
- The name of the project.
- resourceGroup StringName 
- Name of the resource group within the Azure subscription.
- location String
- The geo-location where the resource lives
- poolName String
- Name of the pool.
- Map<String,String>
- Resource tags.
- devBox stringDefinition Name 
- 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 | LocalAdmin Status 
- Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
- networkConnection stringName 
- Name of a Network Connection in parent Project of this Pool
- projectName string
- The name of the project.
- resourceGroup stringName 
- Name of the resource group within the Azure subscription.
- location string
- The geo-location where the resource lives
- poolName string
- Name of the pool.
- {[key: string]: string}
- Resource tags.
- dev_box_ strdefinition_ name 
- 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 | LocalAdmin Status 
- Indicates whether owners of Dev Boxes in this pool are added as local administrators on the Dev Box.
- network_connection_ strname 
- Name of a Network Connection in parent Project of this Pool
- project_name str
- The name of the project.
- resource_group_ strname 
- 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.
- Mapping[str, str]
- Resource tags.
- devBox StringDefinition Name 
- 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.
- networkConnection StringName 
- Name of a Network Connection in parent Project of this Pool
- projectName String
- The name of the project.
- resourceGroup StringName 
- Name of the resource group within the Azure subscription.
- location String
- The geo-location where the resource lives
- poolName String
- Name of the pool.
- 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.Azure Native. Dev Center. Outputs. System Data Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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
- LocalAdmin Status Disabled 
- Disabled
- LocalAdmin Status Enabled 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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