azure-native.machinelearningservices.LinkedWorkspace
Explore with Pulumi AI
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:
- Resource
Group stringName - Name of the resource group in which workspace is located.
- Workspace
Name string - Name of Azure Machine Learning workspace.
- Link
Name string - Friendly name of the linked workspace
- Name string
- Friendly name of the linked workspace
- Properties
Pulumi.
Azure Native. Machine Learning Services. Inputs. Linked Workspace Props - LinkedWorkspace specific properties.
- Resource
Group stringName - Name of the resource group in which workspace is located.
- Workspace
Name string - Name of Azure Machine Learning workspace.
- Link
Name string - Friendly name of the linked workspace
- Name string
- Friendly name of the linked workspace
- Properties
Linked
Workspace Props Args - LinkedWorkspace specific properties.
- resource
Group StringName - Name of the resource group in which workspace is located.
- workspace
Name String - Name of Azure Machine Learning workspace.
- link
Name String - Friendly name of the linked workspace
- name String
- Friendly name of the linked workspace
- properties
Linked
Workspace Props - LinkedWorkspace specific properties.
- resource
Group stringName - Name of the resource group in which workspace is located.
- workspace
Name string - Name of Azure Machine Learning workspace.
- link
Name string - Friendly name of the linked workspace
- name string
- Friendly name of the linked workspace
- properties
Linked
Workspace Props - LinkedWorkspace specific properties.
- resource_
group_ strname - 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
Linked
Workspace Props Args - LinkedWorkspace specific properties.
- resource
Group StringName - Name of the resource group in which workspace is located.
- workspace
Name String - Name of Azure Machine Learning workspace.
- link
Name 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:
Supporting Types
LinkedWorkspaceProps, LinkedWorkspacePropsArgs
- Linked
Workspace stringResource Id - ResourceId of the link target of the linked workspace.
- User
Assigned stringIdentity Resource Id - ResourceId of the user assigned identity for the linked workspace.
- Linked
Workspace stringResource Id - ResourceId of the link target of the linked workspace.
- User
Assigned stringIdentity Resource Id - ResourceId of the user assigned identity for the linked workspace.
- linked
Workspace StringResource Id - ResourceId of the link target of the linked workspace.
- user
Assigned StringIdentity Resource Id - ResourceId of the user assigned identity for the linked workspace.
- linked
Workspace stringResource Id - ResourceId of the link target of the linked workspace.
- user
Assigned stringIdentity Resource Id - ResourceId of the user assigned identity for the linked workspace.
- linked_
workspace_ strresource_ id - ResourceId of the link target of the linked workspace.
- user_
assigned_ stridentity_ resource_ id - ResourceId of the user assigned identity for the linked workspace.
- linked
Workspace StringResource Id - ResourceId of the link target of the linked workspace.
- user
Assigned StringIdentity Resource Id - ResourceId of the user assigned identity for the linked workspace.
LinkedWorkspacePropsResponse, LinkedWorkspacePropsResponseArgs
- Linked
Workspace stringResource Id - ResourceId of the link target of the linked workspace.
- User
Assigned stringIdentity Resource Id - ResourceId of the user assigned identity for the linked workspace.
- Linked
Workspace stringResource Id - ResourceId of the link target of the linked workspace.
- User
Assigned stringIdentity Resource Id - ResourceId of the user assigned identity for the linked workspace.
- linked
Workspace StringResource Id - ResourceId of the link target of the linked workspace.
- user
Assigned StringIdentity Resource Id - ResourceId of the user assigned identity for the linked workspace.
- linked
Workspace stringResource Id - ResourceId of the link target of the linked workspace.
- user
Assigned stringIdentity Resource Id - ResourceId of the user assigned identity for the linked workspace.
- linked_
workspace_ strresource_ id - ResourceId of the link target of the linked workspace.
- user_
assigned_ stridentity_ resource_ id - ResourceId of the user assigned identity for the linked workspace.
- linked
Workspace StringResource Id - ResourceId of the link target of the linked workspace.
- user
Assigned StringIdentity Resource Id - 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