1. Packages
  2. Azure Native
  3. API Docs
  4. machinelearningservices
  5. LinkedWorkspace
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.75.0 published on Saturday, Nov 30, 2024 by Pulumi

azure-native.machinelearningservices.LinkedWorkspace

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.75.0 published on Saturday, Nov 30, 2024 by Pulumi

    Linked workspace. Azure REST API version: 2020-05-15-preview. Prior API version in Azure Native 1.x: 2020-03-01.

    Example Usage

    CreateLinkedWorkspace

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var linkedWorkspace = new AzureNative.MachineLearningServices.LinkedWorkspace("linkedWorkspace", new()
        {
            LinkName = "link-1",
            Name = "link-1",
            Properties = new AzureNative.MachineLearningServices.Inputs.LinkedWorkspacePropsArgs
            {
                LinkedWorkspaceResourceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1",
                UserAssignedIdentityResourceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1",
            },
            ResourceGroupName = "resourceGroup-1",
            WorkspaceName = "workspace-1",
        });
    
    });
    
    package main
    
    import (
    	machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := machinelearningservices.NewLinkedWorkspace(ctx, "linkedWorkspace", &machinelearningservices.LinkedWorkspaceArgs{
    			LinkName: pulumi.String("link-1"),
    			Name:     pulumi.String("link-1"),
    			Properties: &machinelearningservices.LinkedWorkspacePropsArgs{
    				LinkedWorkspaceResourceId:      pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1"),
    				UserAssignedIdentityResourceId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1"),
    			},
    			ResourceGroupName: pulumi.String("resourceGroup-1"),
    			WorkspaceName:     pulumi.String("workspace-1"),
    		})
    		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.LinkedWorkspace;
    import com.pulumi.azurenative.machinelearningservices.LinkedWorkspaceArgs;
    import com.pulumi.azurenative.machinelearningservices.inputs.LinkedWorkspacePropsArgs;
    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 linkedWorkspace = new LinkedWorkspace("linkedWorkspace", LinkedWorkspaceArgs.builder()
                .linkName("link-1")
                .name("link-1")
                .properties(LinkedWorkspacePropsArgs.builder()
                    .linkedWorkspaceResourceId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1")
                    .userAssignedIdentityResourceId("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1")
                    .build())
                .resourceGroupName("resourceGroup-1")
                .workspaceName("workspace-1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    linked_workspace = azure_native.machinelearningservices.LinkedWorkspace("linkedWorkspace",
        link_name="link-1",
        name="link-1",
        properties={
            "linked_workspace_resource_id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1",
            "user_assigned_identity_resource_id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1",
        },
        resource_group_name="resourceGroup-1",
        workspace_name="workspace-1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const linkedWorkspace = new azure_native.machinelearningservices.LinkedWorkspace("linkedWorkspace", {
        linkName: "link-1",
        name: "link-1",
        properties: {
            linkedWorkspaceResourceId: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1",
            userAssignedIdentityResourceId: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1",
        },
        resourceGroupName: "resourceGroup-1",
        workspaceName: "workspace-1",
    });
    
    resources:
      linkedWorkspace:
        type: azure-native:machinelearningservices:LinkedWorkspace
        properties:
          linkName: link-1
          name: link-1
          properties:
            linkedWorkspaceResourceId: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1
            userAssignedIdentityResourceId: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1
          resourceGroupName: resourceGroup-1
          workspaceName: workspace-1
    

    Create LinkedWorkspace Resource

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

    Constructor syntax

    new LinkedWorkspace(name: string, args: LinkedWorkspaceArgs, opts?: CustomResourceOptions);
    @overload
    def LinkedWorkspace(resource_name: str,
                        args: LinkedWorkspaceArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def LinkedWorkspace(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        resource_group_name: Optional[str] = None,
                        workspace_name: Optional[str] = None,
                        link_name: Optional[str] = None,
                        name: Optional[str] = None,
                        properties: Optional[LinkedWorkspacePropsArgs] = None)
    func NewLinkedWorkspace(ctx *Context, name string, args LinkedWorkspaceArgs, opts ...ResourceOption) (*LinkedWorkspace, error)
    public LinkedWorkspace(string name, LinkedWorkspaceArgs args, CustomResourceOptions? opts = null)
    public LinkedWorkspace(String name, LinkedWorkspaceArgs args)
    public LinkedWorkspace(String name, LinkedWorkspaceArgs args, CustomResourceOptions options)
    
    type: azure-native:machinelearningservices:LinkedWorkspace
    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 LinkedWorkspaceArgs
    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 LinkedWorkspaceArgs
    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 LinkedWorkspaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LinkedWorkspaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LinkedWorkspaceArgs
    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 linkedWorkspaceResource = new AzureNative.MachineLearningServices.LinkedWorkspace("linkedWorkspaceResource", new()
    {
        ResourceGroupName = "string",
        WorkspaceName = "string",
        LinkName = "string",
        Name = "string",
        Properties = new AzureNative.MachineLearningServices.Inputs.LinkedWorkspacePropsArgs
        {
            LinkedWorkspaceResourceId = "string",
            UserAssignedIdentityResourceId = "string",
        },
    });
    
    example, err := machinelearningservices.NewLinkedWorkspace(ctx, "linkedWorkspaceResource", &machinelearningservices.LinkedWorkspaceArgs{
    	ResourceGroupName: pulumi.String("string"),
    	WorkspaceName:     pulumi.String("string"),
    	LinkName:          pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Properties: &machinelearningservices.LinkedWorkspacePropsArgs{
    		LinkedWorkspaceResourceId:      pulumi.String("string"),
    		UserAssignedIdentityResourceId: pulumi.String("string"),
    	},
    })
    
    var linkedWorkspaceResource = new LinkedWorkspace("linkedWorkspaceResource", LinkedWorkspaceArgs.builder()
        .resourceGroupName("string")
        .workspaceName("string")
        .linkName("string")
        .name("string")
        .properties(LinkedWorkspacePropsArgs.builder()
            .linkedWorkspaceResourceId("string")
            .userAssignedIdentityResourceId("string")
            .build())
        .build());
    
    linked_workspace_resource = azure_native.machinelearningservices.LinkedWorkspace("linkedWorkspaceResource",
        resource_group_name="string",
        workspace_name="string",
        link_name="string",
        name="string",
        properties={
            "linked_workspace_resource_id": "string",
            "user_assigned_identity_resource_id": "string",
        })
    
    const linkedWorkspaceResource = new azure_native.machinelearningservices.LinkedWorkspace("linkedWorkspaceResource", {
        resourceGroupName: "string",
        workspaceName: "string",
        linkName: "string",
        name: "string",
        properties: {
            linkedWorkspaceResourceId: "string",
            userAssignedIdentityResourceId: "string",
        },
    });
    
    type: azure-native:machinelearningservices:LinkedWorkspace
    properties:
        linkName: string
        name: string
        properties:
            linkedWorkspaceResourceId: string
            userAssignedIdentityResourceId: string
        resourceGroupName: string
        workspaceName: string
    

    LinkedWorkspace 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 LinkedWorkspace resource accepts the following input properties:

    ResourceGroupName string
    Name of the resource group in which workspace is located.
    WorkspaceName string
    Name of Azure Machine Learning workspace.
    LinkName string
    Friendly name of the linked workspace
    Name string
    Friendly name of the linked workspace
    Properties Pulumi.AzureNative.MachineLearningServices.Inputs.LinkedWorkspaceProps
    LinkedWorkspace specific properties.
    ResourceGroupName string
    Name of the resource group in which workspace is located.
    WorkspaceName string
    Name of Azure Machine Learning workspace.
    LinkName string
    Friendly name of the linked workspace
    Name string
    Friendly name of the linked workspace
    Properties LinkedWorkspacePropsArgs
    LinkedWorkspace specific properties.
    resourceGroupName String
    Name of the resource group in which workspace is located.
    workspaceName String
    Name of Azure Machine Learning workspace.
    linkName String
    Friendly name of the linked workspace
    name String
    Friendly name of the linked workspace
    properties LinkedWorkspaceProps
    LinkedWorkspace specific properties.
    resourceGroupName string
    Name of the resource group in which workspace is located.
    workspaceName string
    Name of Azure Machine Learning workspace.
    linkName string
    Friendly name of the linked workspace
    name string
    Friendly name of the linked workspace
    properties LinkedWorkspaceProps
    LinkedWorkspace specific properties.
    resource_group_name str
    Name of the resource group in which workspace is located.
    workspace_name str
    Name of Azure Machine Learning workspace.
    link_name str
    Friendly name of the linked workspace
    name str
    Friendly name of the linked workspace
    properties LinkedWorkspacePropsArgs
    LinkedWorkspace specific properties.
    resourceGroupName String
    Name of the resource group in which workspace is located.
    workspaceName String
    Name of Azure Machine Learning workspace.
    linkName String
    Friendly name of the linked workspace
    name String
    Friendly name of the linked workspace
    properties Property Map
    LinkedWorkspace specific properties.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Resource type of linked workspace.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type string
    Resource type of linked workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Resource type of linked workspace.
    id string
    The provider-assigned unique ID for this managed resource.
    type string
    Resource type of linked workspace.
    id str
    The provider-assigned unique ID for this managed resource.
    type str
    Resource type of linked workspace.
    id String
    The provider-assigned unique ID for this managed resource.
    type String
    Resource type of linked workspace.

    Supporting Types

    LinkedWorkspaceProps, LinkedWorkspacePropsArgs

    LinkedWorkspaceResourceId string
    ResourceId of the link target of the linked workspace.
    UserAssignedIdentityResourceId string
    ResourceId of the user assigned identity for the linked workspace.
    LinkedWorkspaceResourceId string
    ResourceId of the link target of the linked workspace.
    UserAssignedIdentityResourceId string
    ResourceId of the user assigned identity for the linked workspace.
    linkedWorkspaceResourceId String
    ResourceId of the link target of the linked workspace.
    userAssignedIdentityResourceId String
    ResourceId of the user assigned identity for the linked workspace.
    linkedWorkspaceResourceId string
    ResourceId of the link target of the linked workspace.
    userAssignedIdentityResourceId string
    ResourceId of the user assigned identity for the linked workspace.
    linked_workspace_resource_id str
    ResourceId of the link target of the linked workspace.
    user_assigned_identity_resource_id str
    ResourceId of the user assigned identity for the linked workspace.
    linkedWorkspaceResourceId String
    ResourceId of the link target of the linked workspace.
    userAssignedIdentityResourceId String
    ResourceId of the user assigned identity for the linked workspace.

    LinkedWorkspacePropsResponse, LinkedWorkspacePropsResponseArgs

    LinkedWorkspaceResourceId string
    ResourceId of the link target of the linked workspace.
    UserAssignedIdentityResourceId string
    ResourceId of the user assigned identity for the linked workspace.
    LinkedWorkspaceResourceId string
    ResourceId of the link target of the linked workspace.
    UserAssignedIdentityResourceId string
    ResourceId of the user assigned identity for the linked workspace.
    linkedWorkspaceResourceId String
    ResourceId of the link target of the linked workspace.
    userAssignedIdentityResourceId String
    ResourceId of the user assigned identity for the linked workspace.
    linkedWorkspaceResourceId string
    ResourceId of the link target of the linked workspace.
    userAssignedIdentityResourceId string
    ResourceId of the user assigned identity for the linked workspace.
    linked_workspace_resource_id str
    ResourceId of the link target of the linked workspace.
    user_assigned_identity_resource_id str
    ResourceId of the user assigned identity for the linked workspace.
    linkedWorkspaceResourceId String
    ResourceId of the link target of the linked workspace.
    userAssignedIdentityResourceId String
    ResourceId of the user assigned identity for the linked workspace.

    Import

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

    $ pulumi import azure-native:machinelearningservices:LinkedWorkspace link-1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/linkedWorkspaces/{linkName} 
    

    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.75.0 published on Saturday, Nov 30, 2024 by Pulumi