We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.devcenter.getEnvironmentType
Start a Neo task
Explain and create an azure.devcenter.getEnvironmentType resource
Use this data source to access information about an existing Dev Center Environment Type.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.devcenter.getEnvironmentType({
name: exampleAzurermDevCenterEnvironmentType.name,
devCenterId: exampleAzurermDevCenterEnvironmentType.devCenterId,
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.devcenter.get_environment_type(name=example_azurerm_dev_center_environment_type["name"],
dev_center_id=example_azurerm_dev_center_environment_type["devCenterId"])
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.LookupEnvironmentType(ctx, &devcenter.LookupEnvironmentTypeArgs{
Name: exampleAzurermDevCenterEnvironmentType.Name,
DevCenterId: exampleAzurermDevCenterEnvironmentType.DevCenterId,
}, 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.GetEnvironmentType.Invoke(new()
{
Name = exampleAzurermDevCenterEnvironmentType.Name,
DevCenterId = exampleAzurermDevCenterEnvironmentType.DevCenterId,
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getEnvironmentTypeResult => getEnvironmentTypeResult.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.GetEnvironmentTypeArgs;
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.getEnvironmentType(GetEnvironmentTypeArgs.builder()
.name(exampleAzurermDevCenterEnvironmentType.name())
.devCenterId(exampleAzurermDevCenterEnvironmentType.devCenterId())
.build());
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:devcenter:getEnvironmentType
arguments:
name: ${exampleAzurermDevCenterEnvironmentType.name}
devCenterId: ${exampleAzurermDevCenterEnvironmentType.devCenterId}
outputs:
id: ${example.id}
API Providers
This data source uses the following Azure API Providers:
Microsoft.DevCenter- 2025-02-01
Using getEnvironmentType
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 getEnvironmentType(args: GetEnvironmentTypeArgs, opts?: InvokeOptions): Promise<GetEnvironmentTypeResult>
function getEnvironmentTypeOutput(args: GetEnvironmentTypeOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentTypeResult>def get_environment_type(dev_center_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnvironmentTypeResult
def get_environment_type_output(dev_center_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentTypeResult]func LookupEnvironmentType(ctx *Context, args *LookupEnvironmentTypeArgs, opts ...InvokeOption) (*LookupEnvironmentTypeResult, error)
func LookupEnvironmentTypeOutput(ctx *Context, args *LookupEnvironmentTypeOutputArgs, opts ...InvokeOption) LookupEnvironmentTypeResultOutput> Note: This function is named LookupEnvironmentType in the Go SDK.
public static class GetEnvironmentType
{
public static Task<GetEnvironmentTypeResult> InvokeAsync(GetEnvironmentTypeArgs args, InvokeOptions? opts = null)
public static Output<GetEnvironmentTypeResult> Invoke(GetEnvironmentTypeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnvironmentTypeResult> getEnvironmentType(GetEnvironmentTypeArgs args, InvokeOptions options)
public static Output<GetEnvironmentTypeResult> getEnvironmentType(GetEnvironmentTypeArgs args, InvokeOptions options)
fn::invoke:
function: azure:devcenter/getEnvironmentType:getEnvironmentType
arguments:
# arguments dictionaryThe following arguments are supported:
- Dev
Center stringId - The ID of the associated Dev Center.
- Name string
- The name of this Dev Center Environment Type.
- Dev
Center stringId - The ID of the associated Dev Center.
- Name string
- The name of this Dev Center Environment Type.
- dev
Center StringId - The ID of the associated Dev Center.
- name String
- The name of this Dev Center Environment Type.
- dev
Center stringId - The ID of the associated Dev Center.
- name string
- The name of this Dev Center Environment Type.
- dev_
center_ strid - The ID of the associated Dev Center.
- name str
- The name of this Dev Center Environment Type.
- dev
Center StringId - The ID of the associated Dev Center.
- name String
- The name of this Dev Center Environment Type.
getEnvironmentType Result
The following output properties are available:
- Dev
Center stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Dictionary<string, string>
- A mapping of tags assigned to the Dev Center Environment Type.
- Dev
Center stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- map[string]string
- A mapping of tags assigned to the Dev Center Environment Type.
- dev
Center StringId - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Map<String,String>
- A mapping of tags assigned to the Dev Center Environment Type.
- dev
Center stringId - id string
- The provider-assigned unique ID for this managed resource.
- name string
- {[key: string]: string}
- A mapping of tags assigned to the Dev Center Environment Type.
- dev_
center_ strid - id str
- The provider-assigned unique ID for this managed resource.
- name str
- Mapping[str, str]
- A mapping of tags assigned to the Dev Center Environment Type.
- dev
Center StringId - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Map<String>
- A mapping of tags assigned to the Dev Center Environment Type.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
