Azure DevOps v3.10.2 published on Wednesday, Oct 22, 2025 by Pulumi
azuredevops.getProject
Use this data source to access information about an existing Project within Azure DevOps.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = azuredevops.getProject({
name: "Example Project",
});
export const project = example;
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.get_project(name="Example Project")
pulumi.export("project", example)
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := azuredevops.LookupProject(ctx, &azuredevops.LookupProjectArgs{
Name: pulumi.StringRef("Example Project"),
}, nil)
if err != nil {
return err
}
ctx.Export("project", example)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = AzureDevOps.GetProject.Invoke(new()
{
Name = "Example Project",
});
return new Dictionary<string, object?>
{
["project"] = example,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.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 = AzuredevopsFunctions.getProject(GetProjectArgs.builder()
.name("Example Project")
.build());
ctx.export("project", example);
}
}
variables:
example:
fn::invoke:
function: azuredevops:getProject
arguments:
name: Example Project
outputs:
project: ${example}
Relevant Links
PAT Permissions Required
- Project & Team: Read
- Work Items: Read
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,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectResult
def get_project_output(name: Optional[pulumi.Input[str]] = None,
project_id: 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: azuredevops:index/getProject:getProject
arguments:
# arguments dictionaryThe following arguments are supported:
- name str
- Name of the Project.
- project_
id str ID of the Project.
NOTE: One of either
project_idornamemust be specified.
getProject Result
The following output properties are available:
- Description string
- The description of the project.
- Features Dictionary<string, string>
- Id string
- The provider-assigned unique ID for this managed resource.
- Process
Template stringId - The process template ID for the project.
- Version
Control string - The version control of the project.
- Visibility string
- The visibility of the project.
- Work
Item stringTemplate - The work item template for the project.
- Name string
- The name of the project.
- Project
Id string
- Description string
- The description of the project.
- Features map[string]string
- Id string
- The provider-assigned unique ID for this managed resource.
- Process
Template stringId - The process template ID for the project.
- Version
Control string - The version control of the project.
- Visibility string
- The visibility of the project.
- Work
Item stringTemplate - The work item template for the project.
- Name string
- The name of the project.
- Project
Id string
- description String
- The description of the project.
- features Map<String,String>
- id String
- The provider-assigned unique ID for this managed resource.
- process
Template StringId - The process template ID for the project.
- version
Control String - The version control of the project.
- visibility String
- The visibility of the project.
- work
Item StringTemplate - The work item template for the project.
- name String
- The name of the project.
- project
Id String
- description string
- The description of the project.
- features {[key: string]: string}
- id string
- The provider-assigned unique ID for this managed resource.
- process
Template stringId - The process template ID for the project.
- version
Control string - The version control of the project.
- visibility string
- The visibility of the project.
- work
Item stringTemplate - The work item template for the project.
- name string
- The name of the project.
- project
Id string
- description str
- The description of the project.
- features Mapping[str, str]
- id str
- The provider-assigned unique ID for this managed resource.
- process_
template_ strid - The process template ID for the project.
- version_
control str - The version control of the project.
- visibility str
- The visibility of the project.
- work_
item_ strtemplate - The work item template for the project.
- name str
- The name of the project.
- project_
id str
- description String
- The description of the project.
- features Map<String>
- id String
- The provider-assigned unique ID for this managed resource.
- process
Template StringId - The process template ID for the project.
- version
Control String - The version control of the project.
- visibility String
- The visibility of the project.
- work
Item StringTemplate - The work item template for the project.
- name String
- The name of the project.
- project
Id String
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.
