Workspace Args
data class WorkspaceArgs(val keyVaultIdentifierId: Output<String>? = null, val location: Output<String>? = null, val ownerEmail: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null, val userStorageAccountId: Output<String>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<WorkspaceArgs>
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(keyVaultIdentifierId: Output<String>? = null, location: Output<String>? = null, ownerEmail: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null, userStorageAccountId: Output<String>? = null, workspaceName: Output<String>? = null)
Properties
Link copied to clipboard
The key vault identifier used for encrypted workspaces.
Link copied to clipboard
The email id of the owner for this workspace.
Link copied to clipboard
The name of the resource group to which the machine learning workspace belongs.
Link copied to clipboard
The fully qualified arm id of the storage account associated with this workspace.
Link copied to clipboard
The name of the machine learning workspace.