Workspace
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/v2"
"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
The Azure API version of the resource.
The creation time for this workspace resource.
The key vault identifier used for encrypted workspaces.
The email id of the owner for this workspace.
The sku of the workspace.
The regional endpoint for the machine learning studio service which hosts this workspace.
The fully qualified arm id of the storage account associated with this workspace.
The immutable id associated with this workspace.
The current state of workspace resource.
The type of this workspace.