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

We recommend using Azure Native.

Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi

azure.devcenter.getProjectEnvironmentType

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.devcenter.getProjectEnvironmentType({
        name: exampleAzurermDevCenterProjectEnvironmentType.name,
        devCenterProjectId: exampleAzurermDevCenterProjectEnvironmentType.devCenterProjectId,
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.devcenter.get_project_environment_type(name=example_azurerm_dev_center_project_environment_type["name"],
        dev_center_project_id=example_azurerm_dev_center_project_environment_type["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.LookupProjectEnvironmentType(ctx, &devcenter.LookupProjectEnvironmentTypeArgs{
    			Name:               exampleAzurermDevCenterProjectEnvironmentType.Name,
    			DevCenterProjectId: exampleAzurermDevCenterProjectEnvironmentType.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.GetProjectEnvironmentType.Invoke(new()
        {
            Name = exampleAzurermDevCenterProjectEnvironmentType.Name,
            DevCenterProjectId = exampleAzurermDevCenterProjectEnvironmentType.DevCenterProjectId,
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getProjectEnvironmentTypeResult => getProjectEnvironmentTypeResult.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.GetProjectEnvironmentTypeArgs;
    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.getProjectEnvironmentType(GetProjectEnvironmentTypeArgs.builder()
                .name(exampleAzurermDevCenterProjectEnvironmentType.name())
                .devCenterProjectId(exampleAzurermDevCenterProjectEnvironmentType.devCenterProjectId())
                .build());
    
            ctx.export("id", example.id());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azure:devcenter:getProjectEnvironmentType
          arguments:
            name: ${exampleAzurermDevCenterProjectEnvironmentType.name}
            devCenterProjectId: ${exampleAzurermDevCenterProjectEnvironmentType.devCenterProjectId}
    outputs:
      id: ${example.id}
    

    API Providers

    This data source uses the following Azure API Providers:

    • Microsoft.DevCenter: 2025-02-01

    Using getProjectEnvironmentType

    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 getProjectEnvironmentType(args: GetProjectEnvironmentTypeArgs, opts?: InvokeOptions): Promise<GetProjectEnvironmentTypeResult>
    function getProjectEnvironmentTypeOutput(args: GetProjectEnvironmentTypeOutputArgs, opts?: InvokeOptions): Output<GetProjectEnvironmentTypeResult>
    def get_project_environment_type(dev_center_project_id: Optional[str] = None,
                                     name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetProjectEnvironmentTypeResult
    def get_project_environment_type_output(dev_center_project_id: Optional[pulumi.Input[str]] = None,
                                     name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetProjectEnvironmentTypeResult]
    func LookupProjectEnvironmentType(ctx *Context, args *LookupProjectEnvironmentTypeArgs, opts ...InvokeOption) (*LookupProjectEnvironmentTypeResult, error)
    func LookupProjectEnvironmentTypeOutput(ctx *Context, args *LookupProjectEnvironmentTypeOutputArgs, opts ...InvokeOption) LookupProjectEnvironmentTypeResultOutput

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

    public static class GetProjectEnvironmentType 
    {
        public static Task<GetProjectEnvironmentTypeResult> InvokeAsync(GetProjectEnvironmentTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectEnvironmentTypeResult> Invoke(GetProjectEnvironmentTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectEnvironmentTypeResult> getProjectEnvironmentType(GetProjectEnvironmentTypeArgs args, InvokeOptions options)
    public static Output<GetProjectEnvironmentTypeResult> getProjectEnvironmentType(GetProjectEnvironmentTypeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:devcenter/getProjectEnvironmentType:getProjectEnvironmentType
      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 Environment Type.
    DevCenterProjectId string
    The ID of the associated Dev Center Project.
    Name string
    The name of this Dev Center Project Environment Type.
    devCenterProjectId String
    The ID of the associated Dev Center Project.
    name String
    The name of this Dev Center Project Environment Type.
    devCenterProjectId string
    The ID of the associated Dev Center Project.
    name string
    The name of this Dev Center Project Environment Type.
    dev_center_project_id str
    The ID of the associated Dev Center Project.
    name str
    The name of this Dev Center Project Environment Type.
    devCenterProjectId String
    The ID of the associated Dev Center Project.
    name String
    The name of this Dev Center Project Environment Type.

    getProjectEnvironmentType Result

    The following output properties are available:

    CreatorRoleAssignmentRoles List<string>
    A list of roles assigned to the environment creator.
    DeploymentTargetId string
    The ID of the subscription that the Environment Type is mapped to.
    DevCenterProjectId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities List<GetProjectEnvironmentTypeIdentity>
    An identity block as defined below.
    Location string
    The Azure Region where the Dev Center Project Environment Type exists.
    Name string
    Tags Dictionary<string, string>
    A mapping of tags assigned to the Dev Center Project Environment Type.
    UserRoleAssignments List<GetProjectEnvironmentTypeUserRoleAssignment>
    A user_role_assignment block as defined below.
    CreatorRoleAssignmentRoles []string
    A list of roles assigned to the environment creator.
    DeploymentTargetId string
    The ID of the subscription that the Environment Type is mapped to.
    DevCenterProjectId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Identities []GetProjectEnvironmentTypeIdentity
    An identity block as defined below.
    Location string
    The Azure Region where the Dev Center Project Environment Type exists.
    Name string
    Tags map[string]string
    A mapping of tags assigned to the Dev Center Project Environment Type.
    UserRoleAssignments []GetProjectEnvironmentTypeUserRoleAssignment
    A user_role_assignment block as defined below.
    creatorRoleAssignmentRoles List<String>
    A list of roles assigned to the environment creator.
    deploymentTargetId String
    The ID of the subscription that the Environment Type is mapped to.
    devCenterProjectId String
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<GetProjectEnvironmentTypeIdentity>
    An identity block as defined below.
    location String
    The Azure Region where the Dev Center Project Environment Type exists.
    name String
    tags Map<String,String>
    A mapping of tags assigned to the Dev Center Project Environment Type.
    userRoleAssignments List<GetProjectEnvironmentTypeUserRoleAssignment>
    A user_role_assignment block as defined below.
    creatorRoleAssignmentRoles string[]
    A list of roles assigned to the environment creator.
    deploymentTargetId string
    The ID of the subscription that the Environment Type is mapped to.
    devCenterProjectId string
    id string
    The provider-assigned unique ID for this managed resource.
    identities GetProjectEnvironmentTypeIdentity[]
    An identity block as defined below.
    location string
    The Azure Region where the Dev Center Project Environment Type exists.
    name string
    tags {[key: string]: string}
    A mapping of tags assigned to the Dev Center Project Environment Type.
    userRoleAssignments GetProjectEnvironmentTypeUserRoleAssignment[]
    A user_role_assignment block as defined below.
    creator_role_assignment_roles Sequence[str]
    A list of roles assigned to the environment creator.
    deployment_target_id str
    The ID of the subscription that the Environment Type is mapped to.
    dev_center_project_id str
    id str
    The provider-assigned unique ID for this managed resource.
    identities Sequence[GetProjectEnvironmentTypeIdentity]
    An identity block as defined below.
    location str
    The Azure Region where the Dev Center Project Environment Type exists.
    name str
    tags Mapping[str, str]
    A mapping of tags assigned to the Dev Center Project Environment Type.
    user_role_assignments Sequence[GetProjectEnvironmentTypeUserRoleAssignment]
    A user_role_assignment block as defined below.
    creatorRoleAssignmentRoles List<String>
    A list of roles assigned to the environment creator.
    deploymentTargetId String
    The ID of the subscription that the Environment Type is mapped to.
    devCenterProjectId String
    id String
    The provider-assigned unique ID for this managed resource.
    identities List<Property Map>
    An identity block as defined below.
    location String
    The Azure Region where the Dev Center Project Environment Type exists.
    name String
    tags Map<String>
    A mapping of tags assigned to the Dev Center Project Environment Type.
    userRoleAssignments List<Property Map>
    A user_role_assignment block as defined below.

    Supporting Types

    GetProjectEnvironmentTypeIdentity

    IdentityIds List<string>
    The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
    PrincipalId string
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    TenantId string
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    Type string
    The type of Managed Service Identity that is configured on this Dev Center Project Environment Type.
    IdentityIds []string
    The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
    PrincipalId string
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    TenantId string
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    Type string
    The type of Managed Service Identity that is configured on this Dev Center Project Environment Type.
    identityIds List<String>
    The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
    principalId String
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    tenantId String
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    type String
    The type of Managed Service Identity that is configured on this Dev Center Project Environment Type.
    identityIds string[]
    The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
    principalId string
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    tenantId string
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    type string
    The type of Managed Service Identity that is configured on this Dev Center Project Environment Type.
    identity_ids Sequence[str]
    The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
    principal_id str
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    tenant_id str
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    type str
    The type of Managed Service Identity that is configured on this Dev Center Project Environment Type.
    identityIds List<String>
    The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
    principalId String
    The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    tenantId String
    The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
    type String
    The type of Managed Service Identity that is configured on this Dev Center Project Environment Type.

    GetProjectEnvironmentTypeUserRoleAssignment

    Roles List<string>
    A list of roles to assign to the user_id.
    UserId string
    The user object ID that is assigned roles.
    Roles []string
    A list of roles to assign to the user_id.
    UserId string
    The user object ID that is assigned roles.
    roles List<String>
    A list of roles to assign to the user_id.
    userId String
    The user object ID that is assigned roles.
    roles string[]
    A list of roles to assign to the user_id.
    userId string
    The user object ID that is assigned roles.
    roles Sequence[str]
    A list of roles to assign to the user_id.
    user_id str
    The user object ID that is assigned roles.
    roles List<String>
    A list of roles to assign to the user_id.
    userId String
    The user object ID that is assigned roles.

    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.24.0 published on Wednesday, Jun 18, 2025 by Pulumi