Dev Box Definition
Represents a definition for a Developer Machine. API Version: 2022-09-01-preview.
Example Usage
DevBoxDefinitions_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var devBoxDefinition = new AzureNative.DevCenter.DevBoxDefinition("devBoxDefinition", new()
{
DevBoxDefinitionName = "WebDevBox",
DevCenterName = "Contoso",
ImageReference = new AzureNative.DevCenter.Inputs.ImageReferenceArgs
{
Id = "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/1.0.0",
},
Location = "centralus",
OsStorageType = "SSD_1024",
ResourceGroupName = "rg1",
Sku = new AzureNative.DevCenter.Inputs.SkuArgs
{
Name = "Preview",
},
});
});
Content copied to clipboard
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewDevBoxDefinition(ctx, "devBoxDefinition", &devcenter.DevBoxDefinitionArgs{
DevBoxDefinitionName: pulumi.String("WebDevBox"),
DevCenterName: pulumi.String("Contoso"),
ImageReference: &devcenter.ImageReferenceArgs{
Id: pulumi.String("/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/1.0.0"),
},
Location: pulumi.String("centralus"),
OsStorageType: pulumi.String("SSD_1024"),
ResourceGroupName: pulumi.String("rg1"),
Sku: &devcenter.SkuArgs{
Name: pulumi.String("Preview"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.DevBoxDefinition;
import com.pulumi.azurenative.devcenter.DevBoxDefinitionArgs;
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 devBoxDefinition = new DevBoxDefinition("devBoxDefinition", DevBoxDefinitionArgs.builder()
.devBoxDefinitionName("WebDevBox")
.devCenterName("Contoso")
.imageReference(Map.of("id", "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/Example/providers/Microsoft.DevCenter/devcenters/Contoso/galleries/contosogallery/images/exampleImage/version/1.0.0"))
.location("centralus")
.osStorageType("SSD_1024")
.resourceGroupName("rg1")
.sku(Map.of("name", "Preview"))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devcenter:DevBoxDefinition WebDevBox /subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/devboxdefinitions/devBoxDefinitionName
Content copied to clipboard
Properties
Link copied to clipboard
Image reference information for the currently active image (only populated during updates).
Link copied to clipboard
Image reference information.
Link copied to clipboard
Details for image validator error. Populated when the image validation is not successful.
Link copied to clipboard
Validation status of the configured image.
Link copied to clipboard
The storage type used for the Operating System disk of Dev Boxes created using this definition.
Link copied to clipboard
The provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The SKU for Dev Boxes created using this definition.
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.