1. Packages
  2. Azure Native v1
  3. API Docs
  4. machinelearning
  5. Workspace
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.machinelearning.Workspace

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    An object that represents a machine learning workspace. API Version: 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",
            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"
    	"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"),
    			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 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")
                .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",
        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",
        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
          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,
                  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",
        Tags = 
        {
            { "string", "string" },
        },
        WorkspaceName = "string",
    });
    
    example, err := machinelearning.NewWorkspace(ctx, "exampleworkspaceResourceResourceFromMachinelearning", &machinelearning.WorkspaceArgs{
    	OwnerEmail:           "string",
    	ResourceGroupName:    "string",
    	UserStorageAccountId: "string",
    	KeyVaultIdentifierId: "string",
    	Location:             "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    	WorkspaceName: "string",
    })
    
    var exampleworkspaceResourceResourceFromMachinelearning = new Workspace("exampleworkspaceResourceResourceFromMachinelearning", WorkspaceArgs.builder()
        .ownerEmail("string")
        .resourceGroupName("string")
        .userStorageAccountId("string")
        .keyVaultIdentifierId("string")
        .location("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .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,
        tags={
            string: string,
        },
        workspace_name=string)
    
    const exampleworkspaceResourceResourceFromMachinelearning = new azure_native.machinelearning.Workspace("exampleworkspaceResourceResourceFromMachinelearning", {
        ownerEmail: "string",
        resourceGroupName: "string",
        userStorageAccountId: "string",
        keyVaultIdentifierId: "string",
        location: "string",
        tags: {
            string: "string",
        },
        workspaceName: "string",
    });
    
    type: azure-native:machinelearning:Workspace
    properties:
        keyVaultIdentifierId: string
        location: string
        ownerEmail: string
        resourceGroupName: 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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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.
    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.
    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.
    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.
    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.
    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.
    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.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:machinelearning:Workspace testworkspace /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.MachineLearning/workspaces/testworkspace 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi