We recommend using Azure Native.
Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi
azure.devcenter.getProject
Explore with Pulumi AI
Use this data source to access information about an existing Dev Center Project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.devcenter.getProject({
name: "example",
resourceGroupName: "example-resource-group",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.devcenter.get_project(name="example",
resource_group_name="example-resource-group")
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.LookupProject(ctx, &devcenter.LookupProjectArgs{
Name: "example",
ResourceGroupName: "example-resource-group",
}, 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.GetProject.Invoke(new()
{
Name = "example",
ResourceGroupName = "example-resource-group",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getProjectResult => getProjectResult.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.GetProjectArgs;
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.getProject(GetProjectArgs.builder()
.name("example")
.resourceGroupName("example-resource-group")
.build());
ctx.export("id", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:devcenter:getProject
arguments:
name: example
resourceGroupName: example-resource-group
outputs:
id: ${example.id}
API Providers
This data source uses the following Azure API Providers:
Microsoft.DevCenter
: 2025-02-01
Using getProject
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 getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
function getProjectOutput(args: GetProjectOutputArgs, opts?: InvokeOptions): Output<GetProjectResult>
def get_project(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectResult]
func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)
func LookupProjectOutput(ctx *Context, args *LookupProjectOutputArgs, opts ...InvokeOption) LookupProjectResultOutput
> Note: This function is named LookupProject
in the Go SDK.
public static class GetProject
{
public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
public static Output<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
fn::invoke:
function: azure:devcenter/getProject:getProject
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of this Dev Center Project.
- Resource
Group stringName - The name of the Resource Group where the Dev Center Project exists.
- Name string
- The name of this Dev Center Project.
- Resource
Group stringName - The name of the Resource Group where the Dev Center Project exists.
- name String
- The name of this Dev Center Project.
- resource
Group StringName - The name of the Resource Group where the Dev Center Project exists.
- name string
- The name of this Dev Center Project.
- resource
Group stringName - The name of the Resource Group where the Dev Center Project exists.
- name str
- The name of this Dev Center Project.
- resource_
group_ strname - The name of the Resource Group where the Dev Center Project exists.
- name String
- The name of this Dev Center Project.
- resource
Group StringName - The name of the Resource Group where the Dev Center Project exists.
getProject Result
The following output properties are available:
- Description string
- The description of the Dev Center Project.
- Dev
Center stringId - The ID of the associated Dev Center.
- Dev
Center stringUri - The URI of the Dev Center.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Project Identity> - An
identity
block as defined below. - Location string
- The Azure Region where the Dev Center Project exists.
- Maximum
Dev intBoxes Per User - The maximum number of Dev Boxes a single user can create across all pools in the project.
- Name string
- Resource
Group stringName - Dictionary<string, string>
- A mapping of tags assigned to the Dev Center Project.
- Description string
- The description of the Dev Center Project.
- Dev
Center stringId - The ID of the associated Dev Center.
- Dev
Center stringUri - The URI of the Dev Center.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Project Identity - An
identity
block as defined below. - Location string
- The Azure Region where the Dev Center Project exists.
- Maximum
Dev intBoxes Per User - The maximum number of Dev Boxes a single user can create across all pools in the project.
- Name string
- Resource
Group stringName - map[string]string
- A mapping of tags assigned to the Dev Center Project.
- description String
- The description of the Dev Center Project.
- dev
Center StringId - The ID of the associated Dev Center.
- dev
Center StringUri - The URI of the Dev Center.
- id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Project Identity> - An
identity
block as defined below. - location String
- The Azure Region where the Dev Center Project exists.
- maximum
Dev IntegerBoxes Per User - The maximum number of Dev Boxes a single user can create across all pools in the project.
- name String
- resource
Group StringName - Map<String,String>
- A mapping of tags assigned to the Dev Center Project.
- description string
- The description of the Dev Center Project.
- dev
Center stringId - The ID of the associated Dev Center.
- dev
Center stringUri - The URI of the Dev Center.
- id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Project Identity[] - An
identity
block as defined below. - location string
- The Azure Region where the Dev Center Project exists.
- maximum
Dev numberBoxes Per User - The maximum number of Dev Boxes a single user can create across all pools in the project.
- name string
- resource
Group stringName - {[key: string]: string}
- A mapping of tags assigned to the Dev Center Project.
- description str
- The description of the Dev Center Project.
- dev_
center_ strid - The ID of the associated Dev Center.
- dev_
center_ struri - The URI of the Dev Center.
- id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Project Identity] - An
identity
block as defined below. - location str
- The Azure Region where the Dev Center Project exists.
- maximum_
dev_ intboxes_ per_ user - The maximum number of Dev Boxes a single user can create across all pools in the project.
- name str
- resource_
group_ strname - Mapping[str, str]
- A mapping of tags assigned to the Dev Center Project.
- description String
- The description of the Dev Center Project.
- dev
Center StringId - The ID of the associated Dev Center.
- dev
Center StringUri - The URI of the Dev Center.
- 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 exists.
- maximum
Dev NumberBoxes Per User - The maximum number of Dev Boxes a single user can create across all pools in the project.
- name String
- resource
Group StringName - Map<String>
- A mapping of tags assigned to the Dev Center Project.
Supporting Types
GetProjectIdentity
- Identity
Ids List<string> - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- Tenant
Id string - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- Type string
- The type of Managed Service Identity that is configured on this Dev Center Project.
- Identity
Ids []string - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project.
- Principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- Tenant
Id string - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- Type string
- The type of Managed Service Identity that is configured on this Dev Center Project.
- identity
Ids List<String> - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- tenant
Id String - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- type String
- The type of Managed Service Identity that is configured on this Dev Center Project.
- identity
Ids string[] - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project.
- principal
Id string - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- tenant
Id string - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- type string
- The type of Managed Service Identity that is configured on this Dev Center Project.
- identity_
ids Sequence[str] - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project.
- principal_
id str - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- tenant_
id str - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- type str
- The type of Managed Service Identity that is configured on this Dev Center Project.
- identity
Ids List<String> - The list of User Assigned Managed Identity IDs assigned to this Dev Center Project.
- principal
Id String - The Principal ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- tenant
Id String - The Tenant ID of the System Assigned Managed Service Identity that is configured on this Dev Center Project.
- type String
- The type of Managed Service Identity that is configured on this Dev Center Project.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.