Project
Represents a project resource. API Version: 2022-09-01-preview.
Example Usage
Projects_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var project = new AzureNative.DevCenter.Project("project", new()
{
Description = "This is my first project.",
DevCenterId = "/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/{devCenterName}",
Location = "centralus",
ProjectName = "{projectName}",
ResourceGroupName = "rg1",
Tags =
{
{ "CostCenter", "R&D" },
},
});
});
Content copied to clipboard
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewProject(ctx, "project", &devcenter.ProjectArgs{
Description: pulumi.String("This is my first project."),
DevCenterId: pulumi.String("/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/{devCenterName}"),
Location: pulumi.String("centralus"),
ProjectName: pulumi.String("{projectName}"),
ResourceGroupName: pulumi.String("rg1"),
Tags: pulumi.StringMap{
"CostCenter": pulumi.String("R&D"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.Project;
import com.pulumi.azurenative.devcenter.ProjectArgs;
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) {
var project = new Project("project", ProjectArgs.builder()
.description("This is my first project.")
.devCenterId("/subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/{devCenterName}")
.location("centralus")
.projectName("{projectName}")
.resourceGroupName("rg1")
.tags(Map.of("CostCenter", "R&D"))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devcenter:Project {projectName} /subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/projects/{projectName}
Content copied to clipboard
Properties
Link copied to clipboard
Description of the project.
Link copied to clipboard
Resource Id of an associated DevCenter
Link copied to clipboard
The provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.