We recommend using Azure Native.
azure.devcenter.Project
Explore with Pulumi AI
Manages a Dev Center Project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const example = new azure.devcenter.DevCenter("example", {
name: "example",
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
identity: {
type: "example-value",
},
});
const exampleProject = new azure.devcenter.Project("example", {
devCenterId: example.id,
location: exampleResourceGroup.location,
name: "example",
resourceGroupName: exampleResourceGroup.name,
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example = azure.devcenter.DevCenter("example",
name="example",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
identity={
"type": "example-value",
})
example_project = azure.devcenter.Project("example",
dev_center_id=example.id,
location=example_resource_group.location,
name="example",
resource_group_name=example_resource_group.name)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"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 {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
example, err := devcenter.NewDevCenter(ctx, "example", &devcenter.DevCenterArgs{
Name: pulumi.String("example"),
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
Identity: &devcenter.DevCenterIdentityArgs{
Type: pulumi.String("example-value"),
},
})
if err != nil {
return err
}
_, err = devcenter.NewProject(ctx, "example", &devcenter.ProjectArgs{
DevCenterId: example.ID(),
Location: exampleResourceGroup.Location,
Name: pulumi.String("example"),
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var example = new Azure.DevCenter.DevCenter("example", new()
{
Name = "example",
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
Identity = new Azure.DevCenter.Inputs.DevCenterIdentityArgs
{
Type = "example-value",
},
});
var exampleProject = new Azure.DevCenter.Project("example", new()
{
DevCenterId = example.Id,
Location = exampleResourceGroup.Location,
Name = "example",
ResourceGroupName = exampleResourceGroup.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.devcenter.DevCenter;
import com.pulumi.azure.devcenter.DevCenterArgs;
import com.pulumi.azure.devcenter.inputs.DevCenterIdentityArgs;
import com.pulumi.azure.devcenter.Project;
import com.pulumi.azure.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var example = new DevCenter("example", DevCenterArgs.builder()
.name("example")
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.identity(DevCenterIdentityArgs.builder()
.type("example-value")
.build())
.build());
var exampleProject = new Project("exampleProject", ProjectArgs.builder()
.devCenterId(example.id())
.location(exampleResourceGroup.location())
.name("example")
.resourceGroupName(exampleResourceGroup.name())
.build());
}
}
resources:
example:
type: azure:devcenter:DevCenter
properties:
name: example
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
identity:
type: example-value
exampleResourceGroup:
type: azure:core:ResourceGroup
name: example
properties:
name: example-resources
location: West Europe
exampleProject:
type: azure:devcenter:Project
name: example
properties:
devCenterId: ${example.id}
location: ${exampleResourceGroup.location}
name: example
resourceGroupName: ${exampleResourceGroup.name}
Create Project Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Project(name: string, args: ProjectArgs, opts?: CustomResourceOptions);
@overload
def Project(resource_name: str,
args: ProjectArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Project(resource_name: str,
opts: Optional[ResourceOptions] = None,
dev_center_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
description: Optional[str] = None,
location: Optional[str] = None,
maximum_dev_boxes_per_user: Optional[int] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewProject(ctx *Context, name string, args ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs args, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: azure:devcenter:Project
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProjectArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azureProjectResource = new Azure.DevCenter.Project("azureProjectResource", new()
{
DevCenterId = "string",
ResourceGroupName = "string",
Description = "string",
Location = "string",
MaximumDevBoxesPerUser = 0,
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := devcenter.NewProject(ctx, "azureProjectResource", &devcenter.ProjectArgs{
DevCenterId: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Description: pulumi.String("string"),
Location: pulumi.String("string"),
MaximumDevBoxesPerUser: pulumi.Int(0),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var azureProjectResource = new Project("azureProjectResource", ProjectArgs.builder()
.devCenterId("string")
.resourceGroupName("string")
.description("string")
.location("string")
.maximumDevBoxesPerUser(0)
.name("string")
.tags(Map.of("string", "string"))
.build());
azure_project_resource = azure.devcenter.Project("azureProjectResource",
dev_center_id="string",
resource_group_name="string",
description="string",
location="string",
maximum_dev_boxes_per_user=0,
name="string",
tags={
"string": "string",
})
const azureProjectResource = new azure.devcenter.Project("azureProjectResource", {
devCenterId: "string",
resourceGroupName: "string",
description: "string",
location: "string",
maximumDevBoxesPerUser: 0,
name: "string",
tags: {
string: "string",
},
});
type: azure:devcenter:Project
properties:
description: string
devCenterId: string
location: string
maximumDevBoxesPerUser: 0
name: string
resourceGroupName: string
tags:
string: string
Project Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Project resource accepts the following input properties:
- Dev
Center stringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- Resource
Group stringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Description string
- Description of the project. Changing this forces a new Dev Center Project to be created.
- Location string
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Maximum
Dev intBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- Name string
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Dev Center Project.
- Dev
Center stringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- Resource
Group stringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Description string
- Description of the project. Changing this forces a new Dev Center Project to be created.
- Location string
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Maximum
Dev intBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- Name string
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- map[string]string
- A mapping of tags which should be assigned to the Dev Center Project.
- dev
Center StringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- resource
Group StringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- description String
- Description of the project. Changing this forces a new Dev Center Project to be created.
- location String
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- maximum
Dev IntegerBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- name String
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- Map<String,String>
- A mapping of tags which should be assigned to the Dev Center Project.
- dev
Center stringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- resource
Group stringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- description string
- Description of the project. Changing this forces a new Dev Center Project to be created.
- location string
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- maximum
Dev numberBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- name string
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Dev Center Project.
- dev_
center_ strid - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- resource_
group_ strname - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- description str
- Description of the project. Changing this forces a new Dev Center Project to be created.
- location str
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- maximum_
dev_ intboxes_ per_ user - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- name str
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Dev Center Project.
- dev
Center StringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- resource
Group StringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- description String
- Description of the project. Changing this forces a new Dev Center Project to be created.
- location String
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- maximum
Dev NumberBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- name String
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- Map<String>
- A mapping of tags which should be assigned to the Dev Center Project.
Outputs
All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:
- Dev
Center stringUri - The URI of the Dev Center resource this project is associated with.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dev
Center stringUri - The URI of the Dev Center resource this project is associated with.
- Id string
- The provider-assigned unique ID for this managed resource.
- dev
Center StringUri - The URI of the Dev Center resource this project is associated with.
- id String
- The provider-assigned unique ID for this managed resource.
- dev
Center stringUri - The URI of the Dev Center resource this project is associated with.
- id string
- The provider-assigned unique ID for this managed resource.
- dev_
center_ struri - The URI of the Dev Center resource this project is associated with.
- id str
- The provider-assigned unique ID for this managed resource.
- dev
Center StringUri - The URI of the Dev Center resource this project is associated with.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Project Resource
Get an existing Project resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dev_center_id: Optional[str] = None,
dev_center_uri: Optional[str] = None,
location: Optional[str] = None,
maximum_dev_boxes_per_user: Optional[int] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- Description of the project. Changing this forces a new Dev Center Project to be created.
- Dev
Center stringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- Dev
Center stringUri - The URI of the Dev Center resource this project is associated with.
- Location string
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Maximum
Dev intBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- Name string
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- Resource
Group stringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Dev Center Project.
- Description string
- Description of the project. Changing this forces a new Dev Center Project to be created.
- Dev
Center stringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- Dev
Center stringUri - The URI of the Dev Center resource this project is associated with.
- Location string
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Maximum
Dev intBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- Name string
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- Resource
Group stringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- map[string]string
- A mapping of tags which should be assigned to the Dev Center Project.
- description String
- Description of the project. Changing this forces a new Dev Center Project to be created.
- dev
Center StringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- dev
Center StringUri - The URI of the Dev Center resource this project is associated with.
- location String
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- maximum
Dev IntegerBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- name String
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- resource
Group StringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Map<String,String>
- A mapping of tags which should be assigned to the Dev Center Project.
- description string
- Description of the project. Changing this forces a new Dev Center Project to be created.
- dev
Center stringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- dev
Center stringUri - The URI of the Dev Center resource this project is associated with.
- location string
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- maximum
Dev numberBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- name string
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- resource
Group stringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Dev Center Project.
- description str
- Description of the project. Changing this forces a new Dev Center Project to be created.
- dev_
center_ strid - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- dev_
center_ struri - The URI of the Dev Center resource this project is associated with.
- location str
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- maximum_
dev_ intboxes_ per_ user - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- name str
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- resource_
group_ strname - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Dev Center Project.
- description String
- Description of the project. Changing this forces a new Dev Center Project to be created.
- dev
Center StringId - Resource Id of an associated DevCenter. Changing this forces a new Dev Center Project to be created.
- dev
Center StringUri - The URI of the Dev Center resource this project is associated with.
- location String
- The Azure Region where the Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- maximum
Dev NumberBoxes Per User - When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project.
- name String
- Specifies the name of this Dev Center Project. Changing this forces a new Dev Center Project to be created.
- resource
Group StringName - Specifies the name of the Resource Group within which this Dev Center Project should exist. Changing this forces a new Dev Center Project to be created.
- Map<String>
- A mapping of tags which should be assigned to the Dev Center Project.
Import
An existing Dev Center Project can be imported into Pulumi using the resource id
, e.g.
$ pulumi import azure:devcenter/project:Project example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}
Where
{subscriptionId}
is the ID of the Azure Subscription where the Dev Center Project exists. For example12345678-1234-9876-4563-123456789012
.Where
{resourceGroupName}
is the name of Resource Group where this Dev Center Project exists. For exampleexample-resource-group
.Where
{projectName}
is the name of the Project. For exampleprojectValue
.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.