Workspace

class Workspace : KotlinCustomResource

An object that represents a machine learning workspace. Uses Azure REST API version 2019-10-01. In version 2.x of the Azure Native provider, it used API version 2019-10-01.

Example Usage

WorkspaceCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspace = new AzureNative.MachineLearning.Workspace("workspace", new()
{
Location = "West Europe",
OwnerEmail = "abc@microsoft.com",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.MachineLearning.Inputs.SkuArgs
{
Name = "Enterprise",
Tier = "Enterprise",
},
Tags =
{
{ "tagKey1", "TagValue1" },
},
UserStorageAccountId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/teststorage",
WorkspaceName = "testworkspace",
});
});
package main
import (
machinelearning "github.com/pulumi/pulumi-azure-native-sdk/machinelearning/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := machinelearning.NewWorkspace(ctx, "workspace", &machinelearning.WorkspaceArgs{
Location: pulumi.String("West Europe"),
OwnerEmail: pulumi.String("abc@microsoft.com"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &machinelearning.SkuArgs{
Name: pulumi.String("Enterprise"),
Tier: pulumi.String("Enterprise"),
},
Tags: pulumi.StringMap{
"tagKey1": pulumi.String("TagValue1"),
},
UserStorageAccountId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/teststorage"),
WorkspaceName: pulumi.String("testworkspace"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.machinelearning.Workspace;
import com.pulumi.azurenative.machinelearning.WorkspaceArgs;
import com.pulumi.azurenative.machinelearning.inputs.SkuArgs;
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 workspace = new Workspace("workspace", WorkspaceArgs.builder()
.location("West Europe")
.ownerEmail("abc@microsoft.com")
.resourceGroupName("myResourceGroup")
.sku(SkuArgs.builder()
.name("Enterprise")
.tier("Enterprise")
.build())
.tags(Map.of("tagKey1", "TagValue1"))
.userStorageAccountId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/teststorage")
.workspaceName("testworkspace")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:machinelearning:Workspace testworkspace /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearning/workspaces/{workspaceName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val creationTime: Output<String>

The creation time for this workspace resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The key vault identifier used for encrypted workspaces.

Link copied to clipboard
val location: Output<String>

The location of the resource. This cannot be changed after the resource is created.

Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard
val ownerEmail: Output<String>

The email id of the owner for this workspace.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sku: Output<SkuResponse>?

The sku of the workspace.

Link copied to clipboard
val studioEndpoint: Output<String>

The regional endpoint for the machine learning studio service which hosts this workspace.

Link copied to clipboard
val tags: Output<Map<String, String>>?

The tags of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The fully qualified arm id of the storage account associated with this workspace.

Link copied to clipboard
val workspaceId: Output<String>

The immutable id associated with this workspace.

Link copied to clipboard
val workspaceState: Output<String>

The current state of workspace resource.

Link copied to clipboard
val workspaceType: Output<String>

The type of this workspace.