Workspace
An object that represents a machine learning workspace. API Version: 2021-01-01.
Example Usage
Create Workspace
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var workspace = new AzureNative.MachineLearningServices.Workspace("workspace", new()
{
ApplicationInsights = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights",
ContainerRegistry = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry",
Description = "test description",
Encryption = new AzureNative.MachineLearningServices.Inputs.EncryptionPropertyArgs
{
Identity = new AzureNative.MachineLearningServices.Inputs.IdentityForCmkArgs
{
UserAssignedIdentity = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai",
},
KeyVaultProperties = new AzureNative.MachineLearningServices.Inputs.KeyVaultPropertiesArgs
{
IdentityClientId = "",
KeyIdentifier = "https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb",
KeyVaultArmId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
},
Status = "Enabled",
},
FriendlyName = "HelloName",
HbiWorkspace = false,
Identity = new AzureNative.MachineLearningServices.Inputs.IdentityArgs
{
Type = AzureNative.MachineLearningServices.ResourceIdentityType.SystemAssigned_UserAssigned,
UserAssignedIdentities =
{
{ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai", null },
},
},
KeyVault = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv",
Location = "eastus2euap",
ResourceGroupName = "workspace-1234",
SharedPrivateLinkResources = new[]
{
new AzureNative.MachineLearningServices.Inputs.SharedPrivateLinkResourceArgs
{
GroupId = "Sql",
Name = "testdbresource",
PrivateLinkResourceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql",
RequestMessage = "Please approve",
Status = "Approved",
},
},
Sku = new AzureNative.MachineLearningServices.Inputs.SkuArgs
{
Name = "Basic",
Tier = "Basic",
},
StorageAccount = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount",
WorkspaceName = "testworkspace",
});
});
package main
import (
machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := machinelearningservices.NewWorkspace(ctx, "workspace", &machinelearningservices.WorkspaceArgs{
ApplicationInsights: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights"),
ContainerRegistry: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry"),
Description: pulumi.String("test description"),
Encryption: machinelearningservices.EncryptionPropertyResponse{
Identity: &machinelearningservices.IdentityForCmkArgs{
UserAssignedIdentity: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai"),
},
KeyVaultProperties: &machinelearningservices.KeyVaultPropertiesArgs{
IdentityClientId: pulumi.String(""),
KeyIdentifier: pulumi.String("https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb"),
KeyVaultArmId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv"),
},
Status: pulumi.String("Enabled"),
},
FriendlyName: pulumi.String("HelloName"),
HbiWorkspace: pulumi.Bool(false),
Identity: &machinelearningservices.IdentityArgs{
Type: machinelearningservices.ResourceIdentityType_SystemAssigned_UserAssigned,
UserAssignedIdentities: pulumi.AnyMap{
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai": nil,
},
},
KeyVault: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv"),
Location: pulumi.String("eastus2euap"),
ResourceGroupName: pulumi.String("workspace-1234"),
SharedPrivateLinkResources: []machinelearningservices.SharedPrivateLinkResourceArgs{
{
GroupId: pulumi.String("Sql"),
Name: pulumi.String("testdbresource"),
PrivateLinkResourceId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql"),
RequestMessage: pulumi.String("Please approve"),
Status: pulumi.String("Approved"),
},
},
Sku: &machinelearningservices.SkuArgs{
Name: pulumi.String("Basic"),
Tier: pulumi.String("Basic"),
},
StorageAccount: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount"),
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.machinelearningservices.Workspace;
import com.pulumi.azurenative.machinelearningservices.WorkspaceArgs;
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()
.applicationInsights("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights")
.containerRegistry("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry")
.description("test description")
.encryption(Map.ofEntries(
Map.entry("identity", Map.of("userAssignedIdentity", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai")),
Map.entry("keyVaultProperties", Map.ofEntries(
Map.entry("identityClientId", ""),
Map.entry("keyIdentifier", "https://testkv.vault.azure.net/keys/testkey/aabbccddee112233445566778899aabb"),
Map.entry("keyVaultArmId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv")
)),
Map.entry("status", "Enabled")
))
.friendlyName("HelloName")
.hbiWorkspace(false)
.identity(Map.ofEntries(
Map.entry("type", "SystemAssigned,UserAssigned"),
Map.entry("userAssignedIdentities", Map.of("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai", ))
))
.keyVault("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv")
.location("eastus2euap")
.resourceGroupName("workspace-1234")
.sharedPrivateLinkResources(Map.ofEntries(
Map.entry("groupId", "Sql"),
Map.entry("name", "testdbresource"),
Map.entry("privateLinkResourceId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql"),
Map.entry("requestMessage", "Please approve"),
Map.entry("status", "Approved")
))
.sku(Map.ofEntries(
Map.entry("name", "Basic"),
Map.entry("tier", "Basic")
))
.storageAccount("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount")
.workspaceName("testworkspace")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:machinelearningservices:Workspace testworkspace /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace
Properties
The flag to indicate whether to allow public access when behind VNet.
ARM id of the application insights associated with this workspace. This cannot be changed once the workspace has been created
ARM id of the container registry associated with this workspace. This cannot be changed once the workspace has been created
The description of this workspace.
Url for the discovery service to identify regional endpoints for machine learning experimentation services
The encryption settings of Azure ML workspace.
The friendly name for this workspace. This name in mutable
The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
The identity of the resource.
The compute name for image build
The notebook info of Azure ML workspace.
The user assigned identity resource id that represents the workspace identity.
The list of private endpoint connections in the workspace.
Count of private connections in the workspace
The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning.
The service managed resource settings.
The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace
The list of shared private link resources in this workspace.
The sku of the workspace.
ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created
Read only system data
The immutable id associated with this workspace.