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

We recommend using Azure Native.

Azure Classic v5.77.1 published on Monday, May 13, 2024 by Pulumi

azure.devcenter.DevCenter

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.77.1 published on Monday, May 13, 2024 by Pulumi

    Manages a Dev Center.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleUserAssignedIdentity = new azure.authorization.UserAssignedIdentity("example", {
        name: "example",
        resourceGroupName: example.name,
        location: example.location,
    });
    const exampleDevCenter = new azure.devcenter.DevCenter("example", {
        location: example.location,
        name: "example",
        resourceGroupName: example.name,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_user_assigned_identity = azure.authorization.UserAssignedIdentity("example",
        name="example",
        resource_group_name=example.name,
        location=example.location)
    example_dev_center = azure.devcenter.DevCenter("example",
        location=example.location,
        name="example",
        resource_group_name=example.name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/devcenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{
    			Name:              pulumi.String("example"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = devcenter.NewDevCenter(ctx, "example", &devcenter.DevCenterArgs{
    			Location:          example.Location,
    			Name:              pulumi.String("example"),
    			ResourceGroupName: example.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 example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleUserAssignedIdentity = new Azure.Authorization.UserAssignedIdentity("example", new()
        {
            Name = "example",
            ResourceGroupName = example.Name,
            Location = example.Location,
        });
    
        var exampleDevCenter = new Azure.DevCenter.DevCenter("example", new()
        {
            Location = example.Location,
            Name = "example",
            ResourceGroupName = example.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.authorization.UserAssignedIdentity;
    import com.pulumi.azure.authorization.UserAssignedIdentityArgs;
    import com.pulumi.azure.devcenter.DevCenter;
    import com.pulumi.azure.devcenter.DevCenterArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()        
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleUserAssignedIdentity = new UserAssignedIdentity("exampleUserAssignedIdentity", UserAssignedIdentityArgs.builder()        
                .name("example")
                .resourceGroupName(example.name())
                .location(example.location())
                .build());
    
            var exampleDevCenter = new DevCenter("exampleDevCenter", DevCenterArgs.builder()        
                .location(example.location())
                .name("example")
                .resourceGroupName(example.name())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleUserAssignedIdentity:
        type: azure:authorization:UserAssignedIdentity
        name: example
        properties:
          name: example
          resourceGroupName: ${example.name}
          location: ${example.location}
      exampleDevCenter:
        type: azure:devcenter:DevCenter
        name: example
        properties:
          location: ${example.location}
          name: example
          resourceGroupName: ${example.name}
    

    Blocks Reference

    identity Block

    The identity block supports the following arguments:

    • type - (Required) Specifies the type of Managed Identity that should be assigned to this Dev Center. Possible values are SystemAssigned, SystemAssigned, UserAssigned and UserAssigned.
    • identity_ids - (Optional) A list of the User Assigned Identity IDs that should be assigned to this Dev Center.

    In addition to the arguments defined above, the identity block exports the following attributes:

    • principal_id - The Principal ID for the System-Assigned Managed Identity assigned to this Dev Center.
    • tenant_id - The Tenant ID for the System-Assigned Managed Identity assigned to this Dev Center.

    Create DevCenter Resource

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

    Constructor syntax

    new DevCenter(name: string, args: DevCenterArgs, opts?: CustomResourceOptions);
    @overload
    def DevCenter(resource_name: str,
                  args: DevCenterArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def DevCenter(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  resource_group_name: Optional[str] = None,
                  identity: Optional[DevCenterIdentityArgs] = None,
                  location: Optional[str] = None,
                  name: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None)
    func NewDevCenter(ctx *Context, name string, args DevCenterArgs, opts ...ResourceOption) (*DevCenter, error)
    public DevCenter(string name, DevCenterArgs args, CustomResourceOptions? opts = null)
    public DevCenter(String name, DevCenterArgs args)
    public DevCenter(String name, DevCenterArgs args, CustomResourceOptions options)
    
    type: azure:devcenter:DevCenter
    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 DevCenterArgs
    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 DevCenterArgs
    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 DevCenterArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DevCenterArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DevCenterArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var devCenterResource = new Azure.DevCenter.DevCenter("devCenterResource", new()
    {
        ResourceGroupName = "string",
        Identity = new Azure.DevCenter.Inputs.DevCenterIdentityArgs
        {
            Type = "string",
            IdentityIds = new[]
            {
                "string",
            },
            PrincipalId = "string",
            TenantId = "string",
        },
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := devcenter.NewDevCenter(ctx, "devCenterResource", &devcenter.DevCenterArgs{
    	ResourceGroupName: pulumi.String("string"),
    	Identity: &devcenter.DevCenterIdentityArgs{
    		Type: pulumi.String("string"),
    		IdentityIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PrincipalId: pulumi.String("string"),
    		TenantId:    pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var devCenterResource = new DevCenter("devCenterResource", DevCenterArgs.builder()        
        .resourceGroupName("string")
        .identity(DevCenterIdentityArgs.builder()
            .type("string")
            .identityIds("string")
            .principalId("string")
            .tenantId("string")
            .build())
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    dev_center_resource = azure.devcenter.DevCenter("devCenterResource",
        resource_group_name="string",
        identity=azure.devcenter.DevCenterIdentityArgs(
            type="string",
            identity_ids=["string"],
            principal_id="string",
            tenant_id="string",
        ),
        location="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const devCenterResource = new azure.devcenter.DevCenter("devCenterResource", {
        resourceGroupName: "string",
        identity: {
            type: "string",
            identityIds: ["string"],
            principalId: "string",
            tenantId: "string",
        },
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:devcenter:DevCenter
    properties:
        identity:
            identityIds:
                - string
            principalId: string
            tenantId: string
            type: string
        location: string
        name: string
        resourceGroupName: string
        tags:
            string: string
    

    DevCenter Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DevCenter resource accepts the following input properties:

    ResourceGroupName string
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    Identity DevCenterIdentity
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    Location string
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    Name string
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Dev Center.
    ResourceGroupName string
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    Identity DevCenterIdentityArgs
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    Location string
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    Name string
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Dev Center.
    resourceGroupName String
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    identity DevCenterIdentity
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    location String
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    name String
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Dev Center.
    resourceGroupName string
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    identity DevCenterIdentity
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    location string
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    name string
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Dev Center.
    resource_group_name str
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    identity DevCenterIdentityArgs
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    location str
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    name str
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Dev Center.
    resourceGroupName String
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    identity Property Map
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    location String
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    name String
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Dev Center.

    Outputs

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

    DevCenterUri string
    The URI of the Dev Center.
    Id string
    The provider-assigned unique ID for this managed resource.
    DevCenterUri string
    The URI of the Dev Center.
    Id string
    The provider-assigned unique ID for this managed resource.
    devCenterUri String
    The URI of the Dev Center.
    id String
    The provider-assigned unique ID for this managed resource.
    devCenterUri string
    The URI of the Dev Center.
    id string
    The provider-assigned unique ID for this managed resource.
    dev_center_uri str
    The URI of the Dev Center.
    id str
    The provider-assigned unique ID for this managed resource.
    devCenterUri String
    The URI of the Dev Center.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DevCenter Resource

    Get an existing DevCenter 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?: DevCenterState, opts?: CustomResourceOptions): DevCenter
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dev_center_uri: Optional[str] = None,
            identity: Optional[DevCenterIdentityArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> DevCenter
    func GetDevCenter(ctx *Context, name string, id IDInput, state *DevCenterState, opts ...ResourceOption) (*DevCenter, error)
    public static DevCenter Get(string name, Input<string> id, DevCenterState? state, CustomResourceOptions? opts = null)
    public static DevCenter get(String name, Output<String> id, DevCenterState 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:
    DevCenterUri string
    The URI of the Dev Center.
    Identity DevCenterIdentity
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    Location string
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    Name string
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    ResourceGroupName string
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Dev Center.
    DevCenterUri string
    The URI of the Dev Center.
    Identity DevCenterIdentityArgs
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    Location string
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    Name string
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    ResourceGroupName string
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Dev Center.
    devCenterUri String
    The URI of the Dev Center.
    identity DevCenterIdentity
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    location String
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    name String
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    resourceGroupName String
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Dev Center.
    devCenterUri string
    The URI of the Dev Center.
    identity DevCenterIdentity
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    location string
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    name string
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    resourceGroupName string
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Dev Center.
    dev_center_uri str
    The URI of the Dev Center.
    identity DevCenterIdentityArgs
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    location str
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    name str
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    resource_group_name str
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Dev Center.
    devCenterUri String
    The URI of the Dev Center.
    identity Property Map
    An identity block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center.
    location String
    The Azure Region where the Dev Center should exist. Changing this forces a new Dev Center to be created.
    name String
    Specifies the name of this Dev Center. Changing this forces a new Dev Center to be created.
    resourceGroupName String
    Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Dev Center.

    Supporting Types

    DevCenterIdentity, DevCenterIdentityArgs

    Type string
    IdentityIds List<string>
    PrincipalId string
    TenantId string
    Type string
    IdentityIds []string
    PrincipalId string
    TenantId string
    type String
    identityIds List<String>
    principalId String
    tenantId String
    type string
    identityIds string[]
    principalId string
    tenantId string
    type str
    identity_ids Sequence[str]
    principal_id str
    tenant_id str
    type String
    identityIds List<String>
    principalId String
    tenantId String

    Import

    An existing Dev Center can be imported into Terraform using the resource id, e.g.

    $ pulumi import azure:devcenter/devCenter:DevCenter example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devCenters/{devCenterName}
    
    • Where {subscriptionId} is the ID of the Azure Subscription where the Dev Center exists. For example 12345678-1234-9876-4563-123456789012.

    • Where {resourceGroupName} is the name of Resource Group where this Dev Center exists. For example example-resource-group.

    • Where {devCenterName} is the name of the Dev Center. For example devCenterValue.

    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 Classic v5.77.1 published on Monday, May 13, 2024 by Pulumi