WorkspaceArgs

data class WorkspaceArgs(val allowPublicAccessWhenBehindVnet: Output<Boolean>? = null, val applicationInsights: Output<String>? = null, val containerRegistry: Output<String>? = null, val description: Output<String>? = null, val discoveryUrl: Output<String>? = null, val encryption: Output<EncryptionPropertyArgs>? = null, val friendlyName: Output<String>? = null, val hbiWorkspace: Output<Boolean>? = null, val identity: Output<IdentityArgs>? = null, val imageBuildCompute: Output<String>? = null, val keyVault: Output<String>? = null, val location: Output<String>? = null, val primaryUserAssignedIdentity: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serviceManagedResourcesSettings: Output<ServiceManagedResourcesSettingsArgs>? = null, val sharedPrivateLinkResources: Output<List<SharedPrivateLinkResourceArgs>>? = null, val sku: Output<SkuArgs>? = null, val storageAccount: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<WorkspaceArgs>

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

Constructors

Link copied to clipboard
constructor(allowPublicAccessWhenBehindVnet: Output<Boolean>? = null, applicationInsights: Output<String>? = null, containerRegistry: Output<String>? = null, description: Output<String>? = null, discoveryUrl: Output<String>? = null, encryption: Output<EncryptionPropertyArgs>? = null, friendlyName: Output<String>? = null, hbiWorkspace: Output<Boolean>? = null, identity: Output<IdentityArgs>? = null, imageBuildCompute: Output<String>? = null, keyVault: Output<String>? = null, location: Output<String>? = null, primaryUserAssignedIdentity: Output<String>? = null, resourceGroupName: Output<String>? = null, serviceManagedResourcesSettings: Output<ServiceManagedResourcesSettingsArgs>? = null, sharedPrivateLinkResources: Output<List<SharedPrivateLinkResourceArgs>>? = null, sku: Output<SkuArgs>? = null, storageAccount: Output<String>? = null, tags: Output<Map<String, String>>? = null, workspaceName: Output<String>? = null)

Properties

Link copied to clipboard

The flag to indicate whether to allow public access when behind VNet.

Link copied to clipboard
val applicationInsights: Output<String>? = null

ARM id of the application insights associated with this workspace. This cannot be changed once the workspace has been created

Link copied to clipboard
val containerRegistry: Output<String>? = null

ARM id of the container registry associated with this workspace. This cannot be changed once the workspace has been created

Link copied to clipboard
val description: Output<String>? = null

The description of this workspace.

Link copied to clipboard
val discoveryUrl: Output<String>? = null

Url for the discovery service to identify regional endpoints for machine learning experimentation services

Link copied to clipboard
val encryption: Output<EncryptionPropertyArgs>? = null

The encryption settings of Azure ML workspace.

Link copied to clipboard
val friendlyName: Output<String>? = null

The friendly name for this workspace. This name in mutable

Link copied to clipboard
val hbiWorkspace: Output<Boolean>? = null

The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service

Link copied to clipboard
val identity: Output<IdentityArgs>? = null

The identity of the resource.

Link copied to clipboard
val imageBuildCompute: Output<String>? = null

The compute name for image build

Link copied to clipboard
val keyVault: Output<String>? = null

ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created

Link copied to clipboard
val location: Output<String>? = null

Specifies the location of the resource.

Link copied to clipboard
val primaryUserAssignedIdentity: Output<String>? = null

The user assigned identity resource id that represents the workspace identity.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the resource group in which workspace is located.

Link copied to clipboard

The service managed resource settings.

Link copied to clipboard

The list of shared private link resources in this workspace.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

The sku of the workspace.

Link copied to clipboard
val storageAccount: Output<String>? = null

ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been created

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

Contains resource tags defined as key/value pairs.

Link copied to clipboard
val workspaceName: Output<String>? = null

Name of Azure Machine Learning workspace.

Functions

Link copied to clipboard
open override fun toJava(): WorkspaceArgs