Project

class Project : KotlinCustomResource

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" },
},
});
});
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
})
}
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());
}
}

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}

Properties

Link copied to clipboard
val description: Output<String>?

Description of the project.

Link copied to clipboard
val devCenterId: Output<String>?

Resource Id of an associated DevCenter

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The provisioning state of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>