1. Packages
  2. Azure Native
  3. API Docs
  4. machinelearning
  5. Workspace
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.machinelearning.Workspace

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    An object that represents a machine learning workspace. Azure REST API version: 2019-10-01. Prior API version in Azure Native 1.x: 2016-04-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 pulumi
    import pulumi_azure_native as azure_native
    
    workspace = azure_native.machinelearning.Workspace("workspace",
        location="West Europe",
        owner_email="abc@microsoft.com",
        resource_group_name="myResourceGroup",
        sku={
            "name": "Enterprise",
            "tier": "Enterprise",
        },
        tags={
            "tagKey1": "TagValue1",
        },
        user_storage_account_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/teststorage",
        workspace_name="testworkspace")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const workspace = new azure_native.machinelearning.Workspace("workspace", {
        location: "West Europe",
        ownerEmail: "abc@microsoft.com",
        resourceGroupName: "myResourceGroup",
        sku: {
            name: "Enterprise",
            tier: "Enterprise",
        },
        tags: {
            tagKey1: "TagValue1",
        },
        userStorageAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/teststorage",
        workspaceName: "testworkspace",
    });
    
    resources:
      workspace:
        type: azure-native:machinelearning:Workspace
        properties:
          location: West Europe
          ownerEmail: abc@microsoft.com
          resourceGroupName: myResourceGroup
          sku:
            name: Enterprise
            tier: Enterprise
          tags:
            tagKey1: TagValue1
          userStorageAccountId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/teststorage
          workspaceName: testworkspace
    

    Create Workspace Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Workspace(name: string, args: WorkspaceArgs, opts?: CustomResourceOptions);
    @overload
    def Workspace(resource_name: str,
                  args: WorkspaceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Workspace(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  owner_email: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  user_storage_account_id: Optional[str] = None,
                  key_vault_identifier_id: Optional[str] = None,
                  location: Optional[str] = None,
                  sku: Optional[SkuArgs] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  workspace_name: Optional[str] = None)
    func NewWorkspace(ctx *Context, name string, args WorkspaceArgs, opts ...ResourceOption) (*Workspace, error)
    public Workspace(string name, WorkspaceArgs args, CustomResourceOptions? opts = null)
    public Workspace(String name, WorkspaceArgs args)
    public Workspace(String name, WorkspaceArgs args, CustomResourceOptions options)
    
    type: azure-native:machinelearning:Workspace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args WorkspaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args WorkspaceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args WorkspaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkspaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkspaceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleworkspaceResourceResourceFromMachinelearning = new AzureNative.MachineLearning.Workspace("exampleworkspaceResourceResourceFromMachinelearning", new()
    {
        OwnerEmail = "string",
        ResourceGroupName = "string",
        UserStorageAccountId = "string",
        KeyVaultIdentifierId = "string",
        Location = "string",
        Sku = new AzureNative.MachineLearning.Inputs.SkuArgs
        {
            Name = "string",
            Tier = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
        WorkspaceName = "string",
    });
    
    example, err := machinelearning.NewWorkspace(ctx, "exampleworkspaceResourceResourceFromMachinelearning", &machinelearning.WorkspaceArgs{
    	OwnerEmail:           pulumi.String("string"),
    	ResourceGroupName:    pulumi.String("string"),
    	UserStorageAccountId: pulumi.String("string"),
    	KeyVaultIdentifierId: pulumi.String("string"),
    	Location:             pulumi.String("string"),
    	Sku: &machinelearning.SkuArgs{
    		Name: pulumi.String("string"),
    		Tier: pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	WorkspaceName: pulumi.String("string"),
    })
    
    var exampleworkspaceResourceResourceFromMachinelearning = new Workspace("exampleworkspaceResourceResourceFromMachinelearning", WorkspaceArgs.builder()
        .ownerEmail("string")
        .resourceGroupName("string")
        .userStorageAccountId("string")
        .keyVaultIdentifierId("string")
        .location("string")
        .sku(SkuArgs.builder()
            .name("string")
            .tier("string")
            .build())
        .tags(Map.of("string", "string"))
        .workspaceName("string")
        .build());
    
    exampleworkspace_resource_resource_from_machinelearning = azure_native.machinelearning.Workspace("exampleworkspaceResourceResourceFromMachinelearning",
        owner_email="string",
        resource_group_name="string",
        user_storage_account_id="string",
        key_vault_identifier_id="string",
        location="string",
        sku={
            "name": "string",
            "tier": "string",
        },
        tags={
            "string": "string",
        },
        workspace_name="string")
    
    const exampleworkspaceResourceResourceFromMachinelearning = new azure_native.machinelearning.Workspace("exampleworkspaceResourceResourceFromMachinelearning", {
        ownerEmail: "string",
        resourceGroupName: "string",
        userStorageAccountId: "string",
        keyVaultIdentifierId: "string",
        location: "string",
        sku: {
            name: "string",
            tier: "string",
        },
        tags: {
            string: "string",
        },
        workspaceName: "string",
    });
    
    type: azure-native:machinelearning:Workspace
    properties:
        keyVaultIdentifierId: string
        location: string
        ownerEmail: string
        resourceGroupName: string
        sku:
            name: string
            tier: string
        tags:
            string: string
        userStorageAccountId: string
        workspaceName: string
    

    Workspace Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Workspace resource accepts the following input properties:

    OwnerEmail string
    The email id of the owner for this workspace.
    ResourceGroupName string
    The name of the resource group to which the machine learning workspace belongs.
    UserStorageAccountId string
    The fully qualified arm id of the storage account associated with this workspace.
    KeyVaultIdentifierId string
    The key vault identifier used for encrypted workspaces.
    Location string
    The location of the resource. This cannot be changed after the resource is created.
    Sku Pulumi.AzureNative.MachineLearning.Inputs.Sku
    The sku of the workspace.
    Tags Dictionary<string, string>
    The tags of the resource.
    WorkspaceName string
    The name of the machine learning workspace.
    OwnerEmail string
    The email id of the owner for this workspace.
    ResourceGroupName string
    The name of the resource group to which the machine learning workspace belongs.
    UserStorageAccountId string
    The fully qualified arm id of the storage account associated with this workspace.
    KeyVaultIdentifierId string
    The key vault identifier used for encrypted workspaces.
    Location string
    The location of the resource. This cannot be changed after the resource is created.
    Sku SkuArgs
    The sku of the workspace.
    Tags map[string]string
    The tags of the resource.
    WorkspaceName string
    The name of the machine learning workspace.
    ownerEmail String
    The email id of the owner for this workspace.
    resourceGroupName String
    The name of the resource group to which the machine learning workspace belongs.
    userStorageAccountId String
    The fully qualified arm id of the storage account associated with this workspace.
    keyVaultIdentifierId String
    The key vault identifier used for encrypted workspaces.
    location String
    The location of the resource. This cannot be changed after the resource is created.
    sku Sku
    The sku of the workspace.
    tags Map<String,String>
    The tags of the resource.
    workspaceName String
    The name of the machine learning workspace.
    ownerEmail string
    The email id of the owner for this workspace.
    resourceGroupName string
    The name of the resource group to which the machine learning workspace belongs.
    userStorageAccountId string
    The fully qualified arm id of the storage account associated with this workspace.
    keyVaultIdentifierId string
    The key vault identifier used for encrypted workspaces.
    location string
    The location of the resource. This cannot be changed after the resource is created.
    sku Sku
    The sku of the workspace.
    tags {[key: string]: string}
    The tags of the resource.
    workspaceName string
    The name of the machine learning workspace.
    owner_email str
    The email id of the owner for this workspace.
    resource_group_name str
    The name of the resource group to which the machine learning workspace belongs.
    user_storage_account_id str
    The fully qualified arm id of the storage account associated with this workspace.
    key_vault_identifier_id str
    The key vault identifier used for encrypted workspaces.
    location str
    The location of the resource. This cannot be changed after the resource is created.
    sku SkuArgs
    The sku of the workspace.
    tags Mapping[str, str]
    The tags of the resource.
    workspace_name str
    The name of the machine learning workspace.
    ownerEmail String
    The email id of the owner for this workspace.
    resourceGroupName String
    The name of the resource group to which the machine learning workspace belongs.
    userStorageAccountId String
    The fully qualified arm id of the storage account associated with this workspace.
    keyVaultIdentifierId String
    The key vault identifier used for encrypted workspaces.
    location String
    The location of the resource. This cannot be changed after the resource is created.
    sku Property Map
    The sku of the workspace.
    tags Map<String>
    The tags of the resource.
    workspaceName String
    The name of the machine learning workspace.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Workspace resource produces the following output properties:

    CreationTime string
    The creation time for this workspace resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    StudioEndpoint string
    The regional endpoint for the machine learning studio service which hosts this workspace.
    Type string
    The type of the resource.
    WorkspaceId string
    The immutable id associated with this workspace.
    WorkspaceState string
    The current state of workspace resource.
    WorkspaceType string
    The type of this workspace.
    CreationTime string
    The creation time for this workspace resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    StudioEndpoint string
    The regional endpoint for the machine learning studio service which hosts this workspace.
    Type string
    The type of the resource.
    WorkspaceId string
    The immutable id associated with this workspace.
    WorkspaceState string
    The current state of workspace resource.
    WorkspaceType string
    The type of this workspace.
    creationTime String
    The creation time for this workspace resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.
    studioEndpoint String
    The regional endpoint for the machine learning studio service which hosts this workspace.
    type String
    The type of the resource.
    workspaceId String
    The immutable id associated with this workspace.
    workspaceState String
    The current state of workspace resource.
    workspaceType String
    The type of this workspace.
    creationTime string
    The creation time for this workspace resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource.
    studioEndpoint string
    The regional endpoint for the machine learning studio service which hosts this workspace.
    type string
    The type of the resource.
    workspaceId string
    The immutable id associated with this workspace.
    workspaceState string
    The current state of workspace resource.
    workspaceType string
    The type of this workspace.
    creation_time str
    The creation time for this workspace resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource.
    studio_endpoint str
    The regional endpoint for the machine learning studio service which hosts this workspace.
    type str
    The type of the resource.
    workspace_id str
    The immutable id associated with this workspace.
    workspace_state str
    The current state of workspace resource.
    workspace_type str
    The type of this workspace.
    creationTime String
    The creation time for this workspace resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.
    studioEndpoint String
    The regional endpoint for the machine learning studio service which hosts this workspace.
    type String
    The type of the resource.
    workspaceId String
    The immutable id associated with this workspace.
    workspaceState String
    The current state of workspace resource.
    workspaceType String
    The type of this workspace.

    Supporting Types

    Sku, SkuArgs

    Name string
    Name of the sku
    Tier string
    Tier of the sku like Basic or Enterprise
    Name string
    Name of the sku
    Tier string
    Tier of the sku like Basic or Enterprise
    name String
    Name of the sku
    tier String
    Tier of the sku like Basic or Enterprise
    name string
    Name of the sku
    tier string
    Tier of the sku like Basic or Enterprise
    name str
    Name of the sku
    tier str
    Tier of the sku like Basic or Enterprise
    name String
    Name of the sku
    tier String
    Tier of the sku like Basic or Enterprise

    SkuResponse, SkuResponseArgs

    Name string
    Name of the sku
    Tier string
    Tier of the sku like Basic or Enterprise
    Name string
    Name of the sku
    Tier string
    Tier of the sku like Basic or Enterprise
    name String
    Name of the sku
    tier String
    Tier of the sku like Basic or Enterprise
    name string
    Name of the sku
    tier string
    Tier of the sku like Basic or Enterprise
    name str
    Name of the sku
    tier str
    Tier of the sku like Basic or Enterprise
    name String
    Name of the sku
    tier String
    Tier of the sku like Basic or Enterprise

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi