Project Args
data class ProjectArgs(val description: Output<String>? = null, val devCenterId: Output<String>? = null, val location: Output<String>? = null, val maxDevBoxesPerUser: Output<Int>? = null, val projectName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ProjectArgs>
Represents a project resource. Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2022-09-01-preview. Other available API versions: 2023-08-01-preview, 2023-10-01-preview, 2024-02-01, 2024-05-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/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso",
Location = "centralus",
ProjectName = "DevProject",
ResourceGroupName = "rg1",
Tags =
{
{ "CostCenter", "R&D" },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
"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/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso"),
Location: pulumi.String("centralus"),
ProjectName: pulumi.String("DevProject"),
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/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso")
.location("centralus")
.projectName("DevProject")
.resourceGroupName("rg1")
.tags(Map.of("CostCenter", "R&D"))
.build());
}
}
Content copied to clipboard
Projects_CreateOrUpdateWithLimitsPerDev
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/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso",
Location = "centralus",
MaxDevBoxesPerUser = 3,
ProjectName = "DevProject",
ResourceGroupName = "rg1",
Tags =
{
{ "CostCenter", "R&D" },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
"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/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso"),
Location: pulumi.String("centralus"),
MaxDevBoxesPerUser: pulumi.Int(3),
ProjectName: pulumi.String("DevProject"),
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/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso")
.location("centralus")
.maxDevBoxesPerUser(3)
.projectName("DevProject")
.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 DevProject /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/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
When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. This will have no effect on existing Dev Boxes when reduced.
Link copied to clipboard
The name of the project.
Link copied to clipboard
The name of the resource group. The name is case insensitive.