We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.devcenter.getProjectEnvironmentType
Start a Neo task
Explain and create an azure.devcenter.getProjectEnvironmentType resource
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 dictionaryThe following arguments are supported:
- Dev
Center stringProject Id - The ID of the associated Dev Center Project.
- Name string
- The name of this Dev Center Project Environment Type.
- Dev
Center stringProject Id - The ID of the associated Dev Center Project.
- Name string
- The name of this Dev Center Project Environment Type.
- dev
Center StringProject Id - The ID of the associated Dev Center Project.
- name String
- The name of this Dev Center Project Environment Type.
- dev
Center stringProject Id - The ID of the associated Dev Center Project.
- name string
- The name of this Dev Center Project Environment Type.
- dev_
center_ strproject_ id - The ID of the associated Dev Center Project.
- name str
- The name of this Dev Center Project Environment Type.
- dev
Center StringProject Id - 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:
- Creator
Role List<string>Assignment Roles - A list of roles assigned to the environment creator.
- Deployment
Target stringId - The ID of the subscription that the Environment Type is mapped to.
- Dev
Center stringProject Id - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Project Environment Type Identity> - An
identityblock as defined below. - Location string
- The Azure Region where the Dev Center Project Environment Type exists.
- Name string
- Dictionary<string, string>
- A mapping of tags assigned to the Dev Center Project Environment Type.
- User
Role List<GetAssignments Project Environment Type User Role Assignment> - A
user_role_assignmentblock as defined below.
- Creator
Role []stringAssignment Roles - A list of roles assigned to the environment creator.
- Deployment
Target stringId - The ID of the subscription that the Environment Type is mapped to.
- Dev
Center stringProject Id - Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Project Environment Type Identity - An
identityblock as defined below. - Location string
- The Azure Region where the Dev Center Project Environment Type exists.
- Name string
- map[string]string
- A mapping of tags assigned to the Dev Center Project Environment Type.
- User
Role []GetAssignments Project Environment Type User Role Assignment - A
user_role_assignmentblock as defined below.
- creator
Role List<String>Assignment Roles - A list of roles assigned to the environment creator.
- deployment
Target StringId - The ID of the subscription that the Environment Type is mapped to.
- dev
Center StringProject Id - id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Project Environment Type Identity> - An
identityblock as defined below. - location String
- The Azure Region where the Dev Center Project Environment Type exists.
- name String
- Map<String,String>
- A mapping of tags assigned to the Dev Center Project Environment Type.
- user
Role List<GetAssignments Project Environment Type User Role Assignment> - A
user_role_assignmentblock as defined below.
- creator
Role string[]Assignment Roles - A list of roles assigned to the environment creator.
- deployment
Target stringId - The ID of the subscription that the Environment Type is mapped to.
- dev
Center stringProject Id - id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Project Environment Type Identity[] - An
identityblock as defined below. - location string
- The Azure Region where the Dev Center Project Environment Type exists.
- name string
- {[key: string]: string}
- A mapping of tags assigned to the Dev Center Project Environment Type.
- user
Role GetAssignments Project Environment Type User Role Assignment[] - A
user_role_assignmentblock as defined below.
- creator_
role_ Sequence[str]assignment_ roles - A list of roles assigned to the environment creator.
- deployment_
target_ strid - The ID of the subscription that the Environment Type is mapped to.
- dev_
center_ strproject_ id - id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Project Environment Type Identity] - An
identityblock as defined below. - location str
- The Azure Region where the Dev Center Project Environment Type exists.
- name str
- Mapping[str, str]
- A mapping of tags assigned to the Dev Center Project Environment Type.
- user_
role_ Sequence[Getassignments Project Environment Type User Role Assignment] - A
user_role_assignmentblock as defined below.
- creator
Role List<String>Assignment Roles - A list of roles assigned to the environment creator.
- deployment
Target StringId - The ID of the subscription that the Environment Type is mapped to.
- dev
Center StringProject Id - id String
- The provider-assigned unique ID for this managed resource.
- identities List<Property Map>
- An
identityblock as defined below. - location String
- The Azure Region where the Dev Center Project Environment Type exists.
- name String
- Map<String>
- A mapping of tags assigned to the Dev Center Project Environment Type.
- user
Role List<Property Map>Assignments - A
user_role_assignmentblock as defined below.
Supporting Types
GetProjectEnvironmentTypeIdentity
- Identity
Ids List<string> - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
- Tenant
Id 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 []string - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
- Tenant
Id 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 List<String> - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
- tenant
Id 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 string[] - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
- principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
- tenant
Id 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.
- identity
Ids List<String> - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project Environment Type.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project Environment Type.
- tenant
Id 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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
