1. Packages
  2. Azure Classic
  3. API Docs
  4. devcenter
  5. ProjectEnvironmentType

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.devcenter.ProjectEnvironmentType

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages a Dev Center Project Environment Type.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const current = azure.core.getClientConfig({});
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleDevCenter = new azure.devcenter.DevCenter("example", {
        name: "example-dc",
        resourceGroupName: example.name,
        location: example.location,
        identity: {
            type: "SystemAssigned",
        },
    });
    const exampleEnvironmentType = new azure.devcenter.EnvironmentType("example", {
        name: "example-et",
        devCenterId: exampleDevCenter.id,
    });
    const exampleProject = new azure.devcenter.Project("example", {
        name: "example-dcp",
        resourceGroupName: example.name,
        location: example.location,
        devCenterId: exampleDevCenter.id,
    }, {
        dependsOn: [exampleEnvironmentType],
    });
    const exampleProjectEnvironmentType = new azure.devcenter.ProjectEnvironmentType("example", {
        name: "example-et",
        location: example.location,
        devCenterProjectId: exampleProject.id,
        deploymentTargetId: current.then(current => `/subscriptions/${current.subscriptionId}`),
        identity: {
            type: "SystemAssigned",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    current = azure.core.get_client_config()
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_dev_center = azure.devcenter.DevCenter("example",
        name="example-dc",
        resource_group_name=example.name,
        location=example.location,
        identity={
            "type": "SystemAssigned",
        })
    example_environment_type = azure.devcenter.EnvironmentType("example",
        name="example-et",
        dev_center_id=example_dev_center.id)
    example_project = azure.devcenter.Project("example",
        name="example-dcp",
        resource_group_name=example.name,
        location=example.location,
        dev_center_id=example_dev_center.id,
        opts = pulumi.ResourceOptions(depends_on=[example_environment_type]))
    example_project_environment_type = azure.devcenter.ProjectEnvironmentType("example",
        name="example-et",
        location=example.location,
        dev_center_project_id=example_project.id,
        deployment_target_id=f"/subscriptions/{current.subscription_id}",
        identity={
            "type": "SystemAssigned",
        })
    
    package main
    
    import (
    	"fmt"
    
    	"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 {
    		current, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleDevCenter, err := devcenter.NewDevCenter(ctx, "example", &devcenter.DevCenterArgs{
    			Name:              pulumi.String("example-dc"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			Identity: &devcenter.DevCenterIdentityArgs{
    				Type: pulumi.String("SystemAssigned"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleEnvironmentType, err := devcenter.NewEnvironmentType(ctx, "example", &devcenter.EnvironmentTypeArgs{
    			Name:        pulumi.String("example-et"),
    			DevCenterId: exampleDevCenter.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleProject, err := devcenter.NewProject(ctx, "example", &devcenter.ProjectArgs{
    			Name:              pulumi.String("example-dcp"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			DevCenterId:       exampleDevCenter.ID(),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleEnvironmentType,
    		}))
    		if err != nil {
    			return err
    		}
    		_, err = devcenter.NewProjectEnvironmentType(ctx, "example", &devcenter.ProjectEnvironmentTypeArgs{
    			Name:               pulumi.String("example-et"),
    			Location:           example.Location,
    			DevCenterProjectId: exampleProject.ID(),
    			DeploymentTargetId: pulumi.Sprintf("/subscriptions/%v", current.SubscriptionId),
    			Identity: &devcenter.ProjectEnvironmentTypeIdentityArgs{
    				Type: pulumi.String("SystemAssigned"),
    			},
    		})
    		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 current = Azure.Core.GetClientConfig.Invoke();
    
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleDevCenter = new Azure.DevCenter.DevCenter("example", new()
        {
            Name = "example-dc",
            ResourceGroupName = example.Name,
            Location = example.Location,
            Identity = new Azure.DevCenter.Inputs.DevCenterIdentityArgs
            {
                Type = "SystemAssigned",
            },
        });
    
        var exampleEnvironmentType = new Azure.DevCenter.EnvironmentType("example", new()
        {
            Name = "example-et",
            DevCenterId = exampleDevCenter.Id,
        });
    
        var exampleProject = new Azure.DevCenter.Project("example", new()
        {
            Name = "example-dcp",
            ResourceGroupName = example.Name,
            Location = example.Location,
            DevCenterId = exampleDevCenter.Id,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleEnvironmentType,
            },
        });
    
        var exampleProjectEnvironmentType = new Azure.DevCenter.ProjectEnvironmentType("example", new()
        {
            Name = "example-et",
            Location = example.Location,
            DevCenterProjectId = exampleProject.Id,
            DeploymentTargetId = $"/subscriptions/{current.Apply(getClientConfigResult => getClientConfigResult.SubscriptionId)}",
            Identity = new Azure.DevCenter.Inputs.ProjectEnvironmentTypeIdentityArgs
            {
                Type = "SystemAssigned",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.CoreFunctions;
    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.EnvironmentType;
    import com.pulumi.azure.devcenter.EnvironmentTypeArgs;
    import com.pulumi.azure.devcenter.Project;
    import com.pulumi.azure.devcenter.ProjectArgs;
    import com.pulumi.azure.devcenter.ProjectEnvironmentType;
    import com.pulumi.azure.devcenter.ProjectEnvironmentTypeArgs;
    import com.pulumi.azure.devcenter.inputs.ProjectEnvironmentTypeIdentityArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 current = CoreFunctions.getClientConfig();
    
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleDevCenter = new DevCenter("exampleDevCenter", DevCenterArgs.builder()
                .name("example-dc")
                .resourceGroupName(example.name())
                .location(example.location())
                .identity(DevCenterIdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .build());
    
            var exampleEnvironmentType = new EnvironmentType("exampleEnvironmentType", EnvironmentTypeArgs.builder()
                .name("example-et")
                .devCenterId(exampleDevCenter.id())
                .build());
    
            var exampleProject = new Project("exampleProject", ProjectArgs.builder()
                .name("example-dcp")
                .resourceGroupName(example.name())
                .location(example.location())
                .devCenterId(exampleDevCenter.id())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleEnvironmentType)
                    .build());
    
            var exampleProjectEnvironmentType = new ProjectEnvironmentType("exampleProjectEnvironmentType", ProjectEnvironmentTypeArgs.builder()
                .name("example-et")
                .location(example.location())
                .devCenterProjectId(exampleProject.id())
                .deploymentTargetId(String.format("/subscriptions/%s", current.applyValue(getClientConfigResult -> getClientConfigResult.subscriptionId())))
                .identity(ProjectEnvironmentTypeIdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleDevCenter:
        type: azure:devcenter:DevCenter
        name: example
        properties:
          name: example-dc
          resourceGroupName: ${example.name}
          location: ${example.location}
          identity:
            type: SystemAssigned
      exampleEnvironmentType:
        type: azure:devcenter:EnvironmentType
        name: example
        properties:
          name: example-et
          devCenterId: ${exampleDevCenter.id}
      exampleProject:
        type: azure:devcenter:Project
        name: example
        properties:
          name: example-dcp
          resourceGroupName: ${example.name}
          location: ${example.location}
          devCenterId: ${exampleDevCenter.id}
        options:
          dependson:
            - ${exampleEnvironmentType}
      exampleProjectEnvironmentType:
        type: azure:devcenter:ProjectEnvironmentType
        name: example
        properties:
          name: example-et
          location: ${example.location}
          devCenterProjectId: ${exampleProject.id}
          deploymentTargetId: /subscriptions/${current.subscriptionId}
          identity:
            type: SystemAssigned
    variables:
      current:
        fn::invoke:
          Function: azure:core:getClientConfig
          Arguments: {}
    

    Create ProjectEnvironmentType Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProjectEnvironmentType(name: string, args: ProjectEnvironmentTypeArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectEnvironmentType(resource_name: str,
                               args: ProjectEnvironmentTypeArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectEnvironmentType(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               deployment_target_id: Optional[str] = None,
                               dev_center_project_id: Optional[str] = None,
                               identity: Optional[ProjectEnvironmentTypeIdentityArgs] = None,
                               creator_role_assignment_roles: Optional[Sequence[str]] = None,
                               location: Optional[str] = None,
                               name: Optional[str] = None,
                               tags: Optional[Mapping[str, str]] = None,
                               user_role_assignments: Optional[Sequence[ProjectEnvironmentTypeUserRoleAssignmentArgs]] = None)
    func NewProjectEnvironmentType(ctx *Context, name string, args ProjectEnvironmentTypeArgs, opts ...ResourceOption) (*ProjectEnvironmentType, error)
    public ProjectEnvironmentType(string name, ProjectEnvironmentTypeArgs args, CustomResourceOptions? opts = null)
    public ProjectEnvironmentType(String name, ProjectEnvironmentTypeArgs args)
    public ProjectEnvironmentType(String name, ProjectEnvironmentTypeArgs args, CustomResourceOptions options)
    
    type: azure:devcenter:ProjectEnvironmentType
    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 ProjectEnvironmentTypeArgs
    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 ProjectEnvironmentTypeArgs
    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 ProjectEnvironmentTypeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectEnvironmentTypeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectEnvironmentTypeArgs
    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 projectEnvironmentTypeResource = new Azure.DevCenter.ProjectEnvironmentType("projectEnvironmentTypeResource", new()
    {
        DeploymentTargetId = "string",
        DevCenterProjectId = "string",
        Identity = new Azure.DevCenter.Inputs.ProjectEnvironmentTypeIdentityArgs
        {
            Type = "string",
            IdentityIds = new[]
            {
                "string",
            },
            PrincipalId = "string",
            TenantId = "string",
        },
        CreatorRoleAssignmentRoles = new[]
        {
            "string",
        },
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
        UserRoleAssignments = new[]
        {
            new Azure.DevCenter.Inputs.ProjectEnvironmentTypeUserRoleAssignmentArgs
            {
                Roles = new[]
                {
                    "string",
                },
                UserId = "string",
            },
        },
    });
    
    example, err := devcenter.NewProjectEnvironmentType(ctx, "projectEnvironmentTypeResource", &devcenter.ProjectEnvironmentTypeArgs{
    	DeploymentTargetId: pulumi.String("string"),
    	DevCenterProjectId: pulumi.String("string"),
    	Identity: &devcenter.ProjectEnvironmentTypeIdentityArgs{
    		Type: pulumi.String("string"),
    		IdentityIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PrincipalId: pulumi.String("string"),
    		TenantId:    pulumi.String("string"),
    	},
    	CreatorRoleAssignmentRoles: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	UserRoleAssignments: devcenter.ProjectEnvironmentTypeUserRoleAssignmentArray{
    		&devcenter.ProjectEnvironmentTypeUserRoleAssignmentArgs{
    			Roles: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			UserId: pulumi.String("string"),
    		},
    	},
    })
    
    var projectEnvironmentTypeResource = new ProjectEnvironmentType("projectEnvironmentTypeResource", ProjectEnvironmentTypeArgs.builder()
        .deploymentTargetId("string")
        .devCenterProjectId("string")
        .identity(ProjectEnvironmentTypeIdentityArgs.builder()
            .type("string")
            .identityIds("string")
            .principalId("string")
            .tenantId("string")
            .build())
        .creatorRoleAssignmentRoles("string")
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .userRoleAssignments(ProjectEnvironmentTypeUserRoleAssignmentArgs.builder()
            .roles("string")
            .userId("string")
            .build())
        .build());
    
    project_environment_type_resource = azure.devcenter.ProjectEnvironmentType("projectEnvironmentTypeResource",
        deployment_target_id="string",
        dev_center_project_id="string",
        identity={
            "type": "string",
            "identity_ids": ["string"],
            "principal_id": "string",
            "tenant_id": "string",
        },
        creator_role_assignment_roles=["string"],
        location="string",
        name="string",
        tags={
            "string": "string",
        },
        user_role_assignments=[{
            "roles": ["string"],
            "user_id": "string",
        }])
    
    const projectEnvironmentTypeResource = new azure.devcenter.ProjectEnvironmentType("projectEnvironmentTypeResource", {
        deploymentTargetId: "string",
        devCenterProjectId: "string",
        identity: {
            type: "string",
            identityIds: ["string"],
            principalId: "string",
            tenantId: "string",
        },
        creatorRoleAssignmentRoles: ["string"],
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
        userRoleAssignments: [{
            roles: ["string"],
            userId: "string",
        }],
    });
    
    type: azure:devcenter:ProjectEnvironmentType
    properties:
        creatorRoleAssignmentRoles:
            - string
        deploymentTargetId: string
        devCenterProjectId: string
        identity:
            identityIds:
                - string
            principalId: string
            tenantId: string
            type: string
        location: string
        name: string
        tags:
            string: string
        userRoleAssignments:
            - roles:
                - string
              userId: string
    

    ProjectEnvironmentType 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 ProjectEnvironmentType resource accepts the following input properties:

    DeploymentTargetId string
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    DevCenterProjectId string
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    Identity ProjectEnvironmentTypeIdentity
    An identity block as defined below.
    CreatorRoleAssignmentRoles List<string>
    A list of roles to assign to the environment creator.
    Location string
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    Name string
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    UserRoleAssignments List<ProjectEnvironmentTypeUserRoleAssignment>
    A user_role_assignment block as defined below.
    DeploymentTargetId string
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    DevCenterProjectId string
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    Identity ProjectEnvironmentTypeIdentityArgs
    An identity block as defined below.
    CreatorRoleAssignmentRoles []string
    A list of roles to assign to the environment creator.
    Location string
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    Name string
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    UserRoleAssignments []ProjectEnvironmentTypeUserRoleAssignmentArgs
    A user_role_assignment block as defined below.
    deploymentTargetId String
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    devCenterProjectId String
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    identity ProjectEnvironmentTypeIdentity
    An identity block as defined below.
    creatorRoleAssignmentRoles List<String>
    A list of roles to assign to the environment creator.
    location String
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    name String
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    userRoleAssignments List<ProjectEnvironmentTypeUserRoleAssignment>
    A user_role_assignment block as defined below.
    deploymentTargetId string
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    devCenterProjectId string
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    identity ProjectEnvironmentTypeIdentity
    An identity block as defined below.
    creatorRoleAssignmentRoles string[]
    A list of roles to assign to the environment creator.
    location string
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    name string
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    userRoleAssignments ProjectEnvironmentTypeUserRoleAssignment[]
    A user_role_assignment block as defined below.
    deployment_target_id str
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    dev_center_project_id str
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    identity ProjectEnvironmentTypeIdentityArgs
    An identity block as defined below.
    creator_role_assignment_roles Sequence[str]
    A list of roles to assign to the environment creator.
    location str
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    name str
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    user_role_assignments Sequence[ProjectEnvironmentTypeUserRoleAssignmentArgs]
    A user_role_assignment block as defined below.
    deploymentTargetId String
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    devCenterProjectId String
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    identity Property Map
    An identity block as defined below.
    creatorRoleAssignmentRoles List<String>
    A list of roles to assign to the environment creator.
    location String
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    name String
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    userRoleAssignments List<Property Map>
    A user_role_assignment block as defined below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProjectEnvironmentType resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ProjectEnvironmentType Resource

    Get an existing ProjectEnvironmentType 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?: ProjectEnvironmentTypeState, opts?: CustomResourceOptions): ProjectEnvironmentType
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            creator_role_assignment_roles: Optional[Sequence[str]] = None,
            deployment_target_id: Optional[str] = None,
            dev_center_project_id: Optional[str] = None,
            identity: Optional[ProjectEnvironmentTypeIdentityArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            user_role_assignments: Optional[Sequence[ProjectEnvironmentTypeUserRoleAssignmentArgs]] = None) -> ProjectEnvironmentType
    func GetProjectEnvironmentType(ctx *Context, name string, id IDInput, state *ProjectEnvironmentTypeState, opts ...ResourceOption) (*ProjectEnvironmentType, error)
    public static ProjectEnvironmentType Get(string name, Input<string> id, ProjectEnvironmentTypeState? state, CustomResourceOptions? opts = null)
    public static ProjectEnvironmentType get(String name, Output<String> id, ProjectEnvironmentTypeState 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.
    The following state arguments are supported:
    CreatorRoleAssignmentRoles List<string>
    A list of roles to assign to the environment creator.
    DeploymentTargetId string
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    DevCenterProjectId string
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    Identity ProjectEnvironmentTypeIdentity
    An identity block as defined below.
    Location string
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    Name string
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    UserRoleAssignments List<ProjectEnvironmentTypeUserRoleAssignment>
    A user_role_assignment block as defined below.
    CreatorRoleAssignmentRoles []string
    A list of roles to assign to the environment creator.
    DeploymentTargetId string
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    DevCenterProjectId string
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    Identity ProjectEnvironmentTypeIdentityArgs
    An identity block as defined below.
    Location string
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    Name string
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    UserRoleAssignments []ProjectEnvironmentTypeUserRoleAssignmentArgs
    A user_role_assignment block as defined below.
    creatorRoleAssignmentRoles List<String>
    A list of roles to assign to the environment creator.
    deploymentTargetId String
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    devCenterProjectId String
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    identity ProjectEnvironmentTypeIdentity
    An identity block as defined below.
    location String
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    name String
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    userRoleAssignments List<ProjectEnvironmentTypeUserRoleAssignment>
    A user_role_assignment block as defined below.
    creatorRoleAssignmentRoles string[]
    A list of roles to assign to the environment creator.
    deploymentTargetId string
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    devCenterProjectId string
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    identity ProjectEnvironmentTypeIdentity
    An identity block as defined below.
    location string
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    name string
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    userRoleAssignments ProjectEnvironmentTypeUserRoleAssignment[]
    A user_role_assignment block as defined below.
    creator_role_assignment_roles Sequence[str]
    A list of roles to assign to the environment creator.
    deployment_target_id str
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    dev_center_project_id str
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    identity ProjectEnvironmentTypeIdentityArgs
    An identity block as defined below.
    location str
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    name str
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    user_role_assignments Sequence[ProjectEnvironmentTypeUserRoleAssignmentArgs]
    A user_role_assignment block as defined below.
    creatorRoleAssignmentRoles List<String>
    A list of roles to assign to the environment creator.
    deploymentTargetId String
    The ID of the subscription that the Environment Type will be mapped to. The environment's resources will be deployed into this subscription.
    devCenterProjectId String
    The ID of the associated Dev Center Project. Changing this forces a new resource to be created.
    identity Property Map
    An identity block as defined below.
    location String
    The Azure Region where the Dev Center Project Environment Type should exist. Changing this forces a new resource to be created.
    name String
    Specifies the name of this Dev Center Project Environment Type. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Dev Center Project Environment Type.
    userRoleAssignments List<Property Map>
    A user_role_assignment block as defined below.

    Supporting Types

    ProjectEnvironmentTypeIdentity, ProjectEnvironmentTypeIdentityArgs

    Type string
    The type of identity used for this Dev Center Project Environment Type. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    IdentityIds List<string>

    The ID of the User Assigned Identity which should be assigned to this Dev Center Project Environment Type.

    Note: identity_ids is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    PrincipalId string
    TenantId string
    Type string
    The type of identity used for this Dev Center Project Environment Type. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    IdentityIds []string

    The ID of the User Assigned Identity which should be assigned to this Dev Center Project Environment Type.

    Note: identity_ids is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    PrincipalId string
    TenantId string
    type String
    The type of identity used for this Dev Center Project Environment Type. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    identityIds List<String>

    The ID of the User Assigned Identity which should be assigned to this Dev Center Project Environment Type.

    Note: identity_ids is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    principalId String
    tenantId String
    type string
    The type of identity used for this Dev Center Project Environment Type. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    identityIds string[]

    The ID of the User Assigned Identity which should be assigned to this Dev Center Project Environment Type.

    Note: identity_ids is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    principalId string
    tenantId string
    type str
    The type of identity used for this Dev Center Project Environment Type. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    identity_ids Sequence[str]

    The ID of the User Assigned Identity which should be assigned to this Dev Center Project Environment Type.

    Note: identity_ids is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    principal_id str
    tenant_id str
    type String
    The type of identity used for this Dev Center Project Environment Type. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    identityIds List<String>

    The ID of the User Assigned Identity which should be assigned to this Dev Center Project Environment Type.

    Note: identity_ids is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    principalId String
    tenantId String

    ProjectEnvironmentTypeUserRoleAssignment, ProjectEnvironmentTypeUserRoleAssignmentArgs

    Roles List<string>
    A list of roles to assign to the user_id.
    UserId string
    The user object ID that is assigned roles.
    Roles []string
    A list of roles to assign to the user_id.
    UserId string
    The user object ID that is assigned roles.
    roles List<String>
    A list of roles to assign to the user_id.
    userId String
    The user object ID that is assigned roles.
    roles string[]
    A list of roles to assign to the user_id.
    userId string
    The user object ID that is assigned roles.
    roles Sequence[str]
    A list of roles to assign to the user_id.
    user_id str
    The user object ID that is assigned roles.
    roles List<String>
    A list of roles to assign to the user_id.
    userId String
    The user object ID that is assigned roles.

    Import

    An existing Dev Center Project Environment Type can be imported into Pulumi using the resource id, e.g.

    $ pulumi import azure:devcenter/projectEnvironmentType:ProjectEnvironmentType example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DevCenter/projects/project1/environmentTypes/et1
    

    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.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi