1. Packages
  2. Azure Classic
  3. API Docs
  4. devcenter
  5. getProjectPool

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

azure.devcenter.getProjectPool

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Use this data source to access information about an existing Dev Center Project Pool.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.devcenter.getProjectPool({
        name: exampleAzurermDevCenterProjectPool.name,
        devCenterProjectId: exampleAzurermDevCenterProjectPool.devCenterProjectId,
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.devcenter.get_project_pool(name=example_azurerm_dev_center_project_pool["name"],
        dev_center_project_id=example_azurerm_dev_center_project_pool["devCenterProjectId"])
    pulumi.export("id", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/devcenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := devcenter.LookupProjectPool(ctx, &devcenter.LookupProjectPoolArgs{
    			Name:               exampleAzurermDevCenterProjectPool.Name,
    			DevCenterProjectId: exampleAzurermDevCenterProjectPool.DevCenterProjectId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", example.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.DevCenter.GetProjectPool.Invoke(new()
        {
            Name = exampleAzurermDevCenterProjectPool.Name,
            DevCenterProjectId = exampleAzurermDevCenterProjectPool.DevCenterProjectId,
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getProjectPoolResult => getProjectPoolResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.devcenter.DevcenterFunctions;
    import com.pulumi.azure.devcenter.inputs.GetProjectPoolArgs;
    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) {
            final var example = DevcenterFunctions.getProjectPool(GetProjectPoolArgs.builder()
                .name(exampleAzurermDevCenterProjectPool.name())
                .devCenterProjectId(exampleAzurermDevCenterProjectPool.devCenterProjectId())
                .build());
    
            ctx.export("id", example.id());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azure:devcenter:getProjectPool
          arguments:
            name: ${exampleAzurermDevCenterProjectPool.name}
            devCenterProjectId: ${exampleAzurermDevCenterProjectPool.devCenterProjectId}
    outputs:
      id: ${example.id}
    

    API Providers

    This data source uses the following Azure API Providers:

    • Microsoft.DevCenter - 2025-02-01

    Using getProjectPool

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getProjectPool(args: GetProjectPoolArgs, opts?: InvokeOptions): Promise<GetProjectPoolResult>
    function getProjectPoolOutput(args: GetProjectPoolOutputArgs, opts?: InvokeOptions): Output<GetProjectPoolResult>
    def get_project_pool(dev_center_project_id: Optional[str] = None,
                         name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetProjectPoolResult
    def get_project_pool_output(dev_center_project_id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetProjectPoolResult]
    func LookupProjectPool(ctx *Context, args *LookupProjectPoolArgs, opts ...InvokeOption) (*LookupProjectPoolResult, error)
    func LookupProjectPoolOutput(ctx *Context, args *LookupProjectPoolOutputArgs, opts ...InvokeOption) LookupProjectPoolResultOutput

    > Note: This function is named LookupProjectPool in the Go SDK.

    public static class GetProjectPool 
    {
        public static Task<GetProjectPoolResult> InvokeAsync(GetProjectPoolArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectPoolResult> Invoke(GetProjectPoolInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectPoolResult> getProjectPool(GetProjectPoolArgs args, InvokeOptions options)
    public static Output<GetProjectPoolResult> getProjectPool(GetProjectPoolArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:devcenter/getProjectPool:getProjectPool
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DevCenterProjectId string
    The ID of the associated Dev Center Project.
    Name string
    The name of this Dev Center Project Pool.
    DevCenterProjectId string
    The ID of the associated Dev Center Project.
    Name string
    The name of this Dev Center Project Pool.
    devCenterProjectId String
    The ID of the associated Dev Center Project.
    name String
    The name of this Dev Center Project Pool.
    devCenterProjectId string
    The ID of the associated Dev Center Project.
    name string
    The name of this Dev Center Project Pool.
    dev_center_project_id str
    The ID of the associated Dev Center Project.
    name str
    The name of this Dev Center Project Pool.
    devCenterProjectId String
    The ID of the associated Dev Center Project.
    name String
    The name of this Dev Center Project Pool.

    getProjectPool Result

    The following output properties are available:

    DevBoxDefinitionName string
    The name of the Dev Center Dev Box Definition.
    DevCenterAttachedNetworkName string
    The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool.
    DevCenterProjectId string
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalAdministratorEnabled bool
    Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box.
    Location string
    The Azure Region where the Dev Center Project Pool exists.
    Name string
    StopOnDisconnectGracePeriodMinutes int
    The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected.
    Tags Dictionary<string, string>
    A mapping of tags assigned to the Dev Center Project Pool.
    DevBoxDefinitionName string
    The name of the Dev Center Dev Box Definition.
    DevCenterAttachedNetworkName string
    The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool.
    DevCenterProjectId string
    Id string
    The provider-assigned unique ID for this managed resource.
    LocalAdministratorEnabled bool
    Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box.
    Location string
    The Azure Region where the Dev Center Project Pool exists.
    Name string
    StopOnDisconnectGracePeriodMinutes int
    The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected.
    Tags map[string]string
    A mapping of tags assigned to the Dev Center Project Pool.
    devBoxDefinitionName String
    The name of the Dev Center Dev Box Definition.
    devCenterAttachedNetworkName String
    The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool.
    devCenterProjectId String
    id String
    The provider-assigned unique ID for this managed resource.
    localAdministratorEnabled Boolean
    Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box.
    location String
    The Azure Region where the Dev Center Project Pool exists.
    name String
    stopOnDisconnectGracePeriodMinutes Integer
    The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected.
    tags Map<String,String>
    A mapping of tags assigned to the Dev Center Project Pool.
    devBoxDefinitionName string
    The name of the Dev Center Dev Box Definition.
    devCenterAttachedNetworkName string
    The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool.
    devCenterProjectId string
    id string
    The provider-assigned unique ID for this managed resource.
    localAdministratorEnabled boolean
    Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box.
    location string
    The Azure Region where the Dev Center Project Pool exists.
    name string
    stopOnDisconnectGracePeriodMinutes number
    The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected.
    tags {[key: string]: string}
    A mapping of tags assigned to the Dev Center Project Pool.
    dev_box_definition_name str
    The name of the Dev Center Dev Box Definition.
    dev_center_attached_network_name str
    The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool.
    dev_center_project_id str
    id str
    The provider-assigned unique ID for this managed resource.
    local_administrator_enabled bool
    Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box.
    location str
    The Azure Region where the Dev Center Project Pool exists.
    name str
    stop_on_disconnect_grace_period_minutes int
    The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected.
    tags Mapping[str, str]
    A mapping of tags assigned to the Dev Center Project Pool.
    devBoxDefinitionName String
    The name of the Dev Center Dev Box Definition.
    devCenterAttachedNetworkName String
    The name of the Dev Center Attached Network in parent Project of the Dev Center Project Pool.
    devCenterProjectId String
    id String
    The provider-assigned unique ID for this managed resource.
    localAdministratorEnabled Boolean
    Specifies whether owners of Dev Boxes in the Dev Center Project Pool are added as local administrators on the Dev Box.
    location String
    The Azure Region where the Dev Center Project Pool exists.
    name String
    stopOnDisconnectGracePeriodMinutes Number
    The specified time in minutes to wait before stopping a Dev Center Dev Box once disconnect is detected.
    tags Map<String>
    A mapping of tags assigned to the Dev Center Project Pool.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi