We recommend using Azure Native.
azure.devcenter.DevCenter
Explore with Pulumi AI
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/v6/go/azure/authorization"
"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 {
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 areSystemAssigned
,SystemAssigned, UserAssigned
andUserAssigned
.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.
Constructor 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={
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DevCenter resource accepts the following input properties:
- Resource
Group stringName - 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
Dev
Center Identity - 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.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Dev Center.
- Resource
Group stringName - 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
Dev
Center Identity Args - 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.
- map[string]string
- A mapping of tags which should be assigned to the Dev Center.
- resource
Group StringName - 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
Dev
Center Identity - 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.
- Map<String,String>
- A mapping of tags which should be assigned to the Dev Center.
- resource
Group stringName - 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
Dev
Center Identity - 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.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Dev Center.
- resource_
group_ strname - 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
Dev
Center Identity Args - 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.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Dev Center.
- resource
Group StringName - 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.
- 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:
- Dev
Center stringUri - The URI of the Dev Center.
- Id string
- The provider-assigned unique ID for this managed resource.
- Dev
Center stringUri - The URI of the Dev Center.
- Id string
- The provider-assigned unique ID for this managed resource.
- dev
Center StringUri - The URI of the Dev Center.
- id String
- The provider-assigned unique ID for this managed resource.
- dev
Center stringUri - The URI of the Dev Center.
- id string
- The provider-assigned unique ID for this managed resource.
- dev_
center_ struri - The URI of the Dev Center.
- id str
- The provider-assigned unique ID for this managed resource.
- dev
Center StringUri - 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)
resources: _: type: azure:devcenter:DevCenter get: id: ${id}
- 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.
- Dev
Center stringUri - The URI of the Dev Center.
- Identity
Dev
Center Identity - 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.
- Resource
Group stringName - Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Dev Center.
- Dev
Center stringUri - The URI of the Dev Center.
- Identity
Dev
Center Identity Args - 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.
- Resource
Group stringName - Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
- map[string]string
- A mapping of tags which should be assigned to the Dev Center.
- dev
Center StringUri - The URI of the Dev Center.
- identity
Dev
Center Identity - 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.
- resource
Group StringName - Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
- Map<String,String>
- A mapping of tags which should be assigned to the Dev Center.
- dev
Center stringUri - The URI of the Dev Center.
- identity
Dev
Center Identity - 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.
- resource
Group stringName - Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Dev Center.
- dev_
center_ struri - The URI of the Dev Center.
- identity
Dev
Center Identity Args - 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_ strname - Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Dev Center.
- dev
Center StringUri - 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.
- resource
Group StringName - Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created.
- Map<String>
- A mapping of tags which should be assigned to the Dev Center.
Supporting Types
DevCenterIdentity, DevCenterIdentityArgs
- Type string
- Identity
Ids List<string> - Principal
Id string - Tenant
Id string
- Type string
- Identity
Ids []string - Principal
Id string - Tenant
Id string
- type String
- identity
Ids List<String> - principal
Id String - tenant
Id String
- type string
- identity
Ids string[] - principal
Id string - tenant
Id string
- type str
- identity_
ids Sequence[str] - principal_
id str - tenant_
id str
- type String
- identity
Ids List<String> - principal
Id String - tenant
Id String
Import
An existing Dev Center can be imported into Pulumi 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 example12345678-1234-9876-4563-123456789012
.Where
{resourceGroupName}
is the name of Resource Group where this Dev Center exists. For exampleexample-resource-group
.Where
{devCenterName}
is the name of the Dev Center. For exampledevCenterValue
.
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.