1. Packages
  2. Azure Native v1
  3. API Docs
  4. machinelearningservices
  5. LinkedWorkspace
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.machinelearningservices.LinkedWorkspace

Explore with Pulumi AI

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

Linked workspace. API Version: 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",
    });

});
Copy
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.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
	})
}
Copy
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 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(Map.ofEntries(
                Map.entry("linkedWorkspaceResourceId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/linkedWorkspace-1"),
                Map.entry("userAssignedIdentityResourceId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uai1")
            ))
            .resourceGroupName("resourceGroup-1")
            .workspaceName("workspace-1")
            .build());

    }
}
Copy
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",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

linked_workspace = azure_native.machinelearningservices.LinkedWorkspace("linkedWorkspace",
    link_name="link-1",
    name="link-1",
    properties=azure_native.machinelearningservices.LinkedWorkspacePropsArgs(
        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")
Copy
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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. LinkedWorkspaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. LinkedWorkspaceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LinkedWorkspaceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 = 
    {
        { "linkedWorkspaceResourceId", "string" },
        { "userAssignedIdentityResourceId", "string" },
    },
});
Copy
example, err := machinelearningservices.NewLinkedWorkspace(ctx, "linkedWorkspaceResource", &machinelearningservices.LinkedWorkspaceArgs{
	ResourceGroupName: "string",
	WorkspaceName:     "string",
	LinkName:          "string",
	Name:              "string",
	Properties: map[string]interface{}{
		"linkedWorkspaceResourceId":      "string",
		"userAssignedIdentityResourceId": "string",
	},
})
Copy
var linkedWorkspaceResource = new LinkedWorkspace("linkedWorkspaceResource", LinkedWorkspaceArgs.builder()
    .resourceGroupName("string")
    .workspaceName("string")
    .linkName("string")
    .name("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
linked_workspace_resource = azure_native.machinelearningservices.LinkedWorkspace("linkedWorkspaceResource",
    resource_group_name=string,
    workspace_name=string,
    link_name=string,
    name=string,
    properties={
        linkedWorkspaceResourceId: string,
        userAssignedIdentityResourceId: string,
    })
Copy
const linkedWorkspaceResource = new azure_native.machinelearningservices.LinkedWorkspace("linkedWorkspaceResource", {
    resourceGroupName: "string",
    workspaceName: "string",
    linkName: "string",
    name: "string",
    properties: {
        linkedWorkspaceResourceId: "string",
        userAssignedIdentityResourceId: "string",
    },
});
Copy
type: azure-native:machinelearningservices:LinkedWorkspace
properties:
    linkName: string
    name: string
    properties:
        linkedWorkspaceResourceId: string
        userAssignedIdentityResourceId: string
    resourceGroupName: string
    workspaceName: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group in which workspace is located.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
Name of Azure Machine Learning workspace.
LinkName Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group in which workspace is located.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
Name of Azure Machine Learning workspace.
LinkName Changes to this property will trigger replacement. string
Friendly name of the linked workspace
Name string
Friendly name of the linked workspace
Properties LinkedWorkspacePropsArgs
LinkedWorkspace specific properties.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group in which workspace is located.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
Name of Azure Machine Learning workspace.
linkName Changes to this property will trigger replacement. String
Friendly name of the linked workspace
name String
Friendly name of the linked workspace
properties LinkedWorkspaceProps
LinkedWorkspace specific properties.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group in which workspace is located.
workspaceName
This property is required.
Changes to this property will trigger replacement.
string
Name of Azure Machine Learning workspace.
linkName Changes to this property will trigger replacement. string
Friendly name of the linked workspace
name string
Friendly name of the linked workspace
properties LinkedWorkspaceProps
LinkedWorkspace specific properties.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the resource group in which workspace is located.
workspace_name
This property is required.
Changes to this property will trigger replacement.
str
Name of Azure Machine Learning workspace.
link_name Changes to this property will trigger replacement. str
Friendly name of the linked workspace
name str
Friendly name of the linked workspace
properties LinkedWorkspacePropsArgs
LinkedWorkspace specific properties.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group in which workspace is located.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
Name of Azure Machine Learning workspace.
linkName Changes to this property will trigger replacement. 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/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/linkedWorkspaces/link-1 
Copy

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