azure-native.machinelearningservices.LinkedService
Explore with Pulumi AI
Linked service. API Version: 2020-09-01-preview.
Example Usage
CreateLinkedService
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var linkedService = new AzureNative.MachineLearningServices.LinkedService("linkedService", new()
{
Identity = new AzureNative.MachineLearningServices.Inputs.IdentityArgs
{
Type = AzureNative.MachineLearningServices.ResourceIdentityType.SystemAssigned,
},
LinkName = "link-1",
Location = "westus",
Name = "link-1",
Properties = new AzureNative.MachineLearningServices.Inputs.LinkedServicePropsArgs
{
LinkedServiceResourceId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/Syn-1",
},
ResourceGroupName = "resourceGroup-1",
WorkspaceName = "workspace-1",
});
});
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.NewLinkedService(ctx, "linkedService", &machinelearningservices.LinkedServiceArgs{
Identity: &machinelearningservices.IdentityArgs{
Type: machinelearningservices.ResourceIdentityTypeSystemAssigned,
},
LinkName: pulumi.String("link-1"),
Location: pulumi.String("westus"),
Name: pulumi.String("link-1"),
Properties: &machinelearningservices.LinkedServicePropsArgs{
LinkedServiceResourceId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/Syn-1"),
},
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.LinkedService;
import com.pulumi.azurenative.machinelearningservices.LinkedServiceArgs;
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 linkedService = new LinkedService("linkedService", LinkedServiceArgs.builder()
.identity(Map.of("type", "SystemAssigned"))
.linkName("link-1")
.location("westus")
.name("link-1")
.properties(Map.of("linkedServiceResourceId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/Syn-1"))
.resourceGroupName("resourceGroup-1")
.workspaceName("workspace-1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
linked_service = azure_native.machinelearningservices.LinkedService("linkedService",
identity=azure_native.machinelearningservices.IdentityArgs(
type=azure_native.machinelearningservices.ResourceIdentityType.SYSTEM_ASSIGNED,
),
link_name="link-1",
location="westus",
name="link-1",
properties=azure_native.machinelearningservices.LinkedServicePropsArgs(
linked_service_resource_id="/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/Syn-1",
),
resource_group_name="resourceGroup-1",
workspace_name="workspace-1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const linkedService = new azure_native.machinelearningservices.LinkedService("linkedService", {
identity: {
type: azure_native.machinelearningservices.ResourceIdentityType.SystemAssigned,
},
linkName: "link-1",
location: "westus",
name: "link-1",
properties: {
linkedServiceResourceId: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/Syn-1",
},
resourceGroupName: "resourceGroup-1",
workspaceName: "workspace-1",
});
resources:
linkedService:
type: azure-native:machinelearningservices:LinkedService
properties:
identity:
type: SystemAssigned
linkName: link-1
location: westus
name: link-1
properties:
linkedServiceResourceId: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.Synapse/workspaces/Syn-1
resourceGroupName: resourceGroup-1
workspaceName: workspace-1
Create LinkedService Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LinkedService(name: string, args: LinkedServiceArgs, opts?: CustomResourceOptions);
@overload
def LinkedService(resource_name: str,
args: LinkedServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LinkedService(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
workspace_name: Optional[str] = None,
identity: Optional[IdentityArgs] = None,
link_name: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
properties: Optional[LinkedServicePropsArgs] = None)
func NewLinkedService(ctx *Context, name string, args LinkedServiceArgs, opts ...ResourceOption) (*LinkedService, error)
public LinkedService(string name, LinkedServiceArgs args, CustomResourceOptions? opts = null)
public LinkedService(String name, LinkedServiceArgs args)
public LinkedService(String name, LinkedServiceArgs args, CustomResourceOptions options)
type: azure-native:machinelearningservices:LinkedService
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 LinkedServiceArgs
- 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 LinkedServiceArgs
- 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 LinkedServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LinkedServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LinkedServiceArgs
- 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 azure_nativeLinkedServiceResource = new AzureNative.Machinelearningservices.LinkedService("azure-nativeLinkedServiceResource", new()
{
ResourceGroupName = "string",
WorkspaceName = "string",
Identity =
{
{ "type", "SystemAssigned" },
{ "userAssignedIdentities",
{
{ "string", "any" },
} },
},
LinkName = "string",
Location = "string",
Name = "string",
Properties =
{
{ "linkedServiceResourceId", "string" },
{ "createdTime", "string" },
{ "linkType", "Synapse" },
{ "modifiedTime", "string" },
},
});
example, err := machinelearningservices.NewLinkedService(ctx, "azure-nativeLinkedServiceResource", &machinelearningservices.LinkedServiceArgs{
ResourceGroupName: "string",
WorkspaceName: "string",
Identity: map[string]interface{}{
"type": "SystemAssigned",
"userAssignedIdentities": map[string]interface{}{
"string": "any",
},
},
LinkName: "string",
Location: "string",
Name: "string",
Properties: map[string]interface{}{
"linkedServiceResourceId": "string",
"createdTime": "string",
"linkType": "Synapse",
"modifiedTime": "string",
},
})
var azure_nativeLinkedServiceResource = new LinkedService("azure-nativeLinkedServiceResource", LinkedServiceArgs.builder()
.resourceGroupName("string")
.workspaceName("string")
.identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.linkName("string")
.location("string")
.name("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
azure_native_linked_service_resource = azure_native.machinelearningservices.LinkedService("azure-nativeLinkedServiceResource",
resource_group_name=string,
workspace_name=string,
identity={
type: SystemAssigned,
userAssignedIdentities: {
string: any,
},
},
link_name=string,
location=string,
name=string,
properties={
linkedServiceResourceId: string,
createdTime: string,
linkType: Synapse,
modifiedTime: string,
})
const azure_nativeLinkedServiceResource = new azure_native.machinelearningservices.LinkedService("azure-nativeLinkedServiceResource", {
resourceGroupName: "string",
workspaceName: "string",
identity: {
type: "SystemAssigned",
userAssignedIdentities: {
string: "any",
},
},
linkName: "string",
location: "string",
name: "string",
properties: {
linkedServiceResourceId: "string",
createdTime: "string",
linkType: "Synapse",
modifiedTime: "string",
},
});
type: azure-native:machinelearningservices:LinkedService
properties:
identity:
type: SystemAssigned
userAssignedIdentities:
string: any
linkName: string
location: string
name: string
properties:
createdTime: string
linkType: Synapse
linkedServiceResourceId: string
modifiedTime: string
resourceGroupName: string
workspaceName: string
LinkedService 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 LinkedService 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.
- Identity
Pulumi.
Azure Native. Machine Learning Services. Inputs. Identity - Identity for the resource.
- Link
Name string - Friendly name of the linked workspace
- Location string
- location of the linked service.
- Name string
- Friendly name of the linked service
- Properties
Pulumi.
Azure Native. Machine Learning Services. Inputs. Linked Service Props - LinkedService specific properties.
- Resource
Group stringName - Name of the resource group in which workspace is located.
- Workspace
Name string - Name of Azure Machine Learning workspace.
- Identity
Identity
Args - Identity for the resource.
- Link
Name string - Friendly name of the linked workspace
- Location string
- location of the linked service.
- Name string
- Friendly name of the linked service
- Properties
Linked
Service Props Args - LinkedService specific properties.
- resource
Group StringName - Name of the resource group in which workspace is located.
- workspace
Name String - Name of Azure Machine Learning workspace.
- identity Identity
- Identity for the resource.
- link
Name String - Friendly name of the linked workspace
- location String
- location of the linked service.
- name String
- Friendly name of the linked service
- properties
Linked
Service Props - LinkedService specific properties.
- resource
Group stringName - Name of the resource group in which workspace is located.
- workspace
Name string - Name of Azure Machine Learning workspace.
- identity Identity
- Identity for the resource.
- link
Name string - Friendly name of the linked workspace
- location string
- location of the linked service.
- name string
- Friendly name of the linked service
- properties
Linked
Service Props - LinkedService specific properties.
- resource_
group_ strname - Name of the resource group in which workspace is located.
- workspace_
name str - Name of Azure Machine Learning workspace.
- identity
Identity
Args - Identity for the resource.
- link_
name str - Friendly name of the linked workspace
- location str
- location of the linked service.
- name str
- Friendly name of the linked service
- properties
Linked
Service Props Args - LinkedService specific properties.
- resource
Group StringName - Name of the resource group in which workspace is located.
- workspace
Name String - Name of Azure Machine Learning workspace.
- identity Property Map
- Identity for the resource.
- link
Name String - Friendly name of the linked workspace
- location String
- location of the linked service.
- name String
- Friendly name of the linked service
- properties Property Map
- LinkedService specific properties.
Outputs
All input properties are implicitly available as output properties. Additionally, the LinkedService resource produces the following output properties:
Supporting Types
Identity, IdentityArgs
- Type
Pulumi.
Azure Native. Machine Learning Services. Resource Identity Type - The identity type.
- User
Assigned Dictionary<string, object>Identities - The user assigned identities associated with the resource.
- Type
Resource
Identity Type - The identity type.
- User
Assigned map[string]interface{}Identities - The user assigned identities associated with the resource.
- type
Resource
Identity Type - The identity type.
- user
Assigned Map<String,Object>Identities - The user assigned identities associated with the resource.
- type
Resource
Identity Type - The identity type.
- user
Assigned {[key: string]: any}Identities - The user assigned identities associated with the resource.
- type
Resource
Identity Type - The identity type.
- user_
assigned_ Mapping[str, Any]identities - The user assigned identities associated with the resource.
- type
"System
Assigned" | "System Assigned,User Assigned" | "User Assigned" | "None" - The identity type.
- user
Assigned Map<Any>Identities - The user assigned identities associated with the resource.
IdentityResponse, IdentityResponseArgs
- Principal
Id string - The principal ID of resource identity.
- Tenant
Id string - The tenant ID of resource.
- Type string
- The identity type.
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. Machine Learning Services. Inputs. User Assigned Identity Response> - The user assigned identities associated with the resource.
- Principal
Id string - The principal ID of resource identity.
- Tenant
Id string - The tenant ID of resource.
- Type string
- The identity type.
- User
Assigned map[string]UserIdentities Assigned Identity Response - The user assigned identities associated with the resource.
- principal
Id String - The principal ID of resource identity.
- tenant
Id String - The tenant ID of resource.
- type String
- The identity type.
- user
Assigned Map<String,UserIdentities Assigned Identity Response> - The user assigned identities associated with the resource.
- principal
Id string - The principal ID of resource identity.
- tenant
Id string - The tenant ID of resource.
- type string
- The identity type.
- user
Assigned {[key: string]: UserIdentities Assigned Identity Response} - The user assigned identities associated with the resource.
- principal_
id str - The principal ID of resource identity.
- tenant_
id str - The tenant ID of resource.
- type str
- The identity type.
- user_
assigned_ Mapping[str, Useridentities Assigned Identity Response] - The user assigned identities associated with the resource.
- principal
Id String - The principal ID of resource identity.
- tenant
Id String - The tenant ID of resource.
- type String
- The identity type.
- user
Assigned Map<Property Map>Identities - The user assigned identities associated with the resource.
LinkedServiceLinkType, LinkedServiceLinkTypeArgs
- Synapse
- Synapse
- Linked
Service Link Type Synapse - Synapse
- Synapse
- Synapse
- Synapse
- Synapse
- SYNAPSE
- Synapse
- "Synapse"
- Synapse
LinkedServiceProps, LinkedServicePropsArgs
- Linked
Service stringResource Id - ResourceId of the link target of the linked service.
- Created
Time string - The creation time of the linked service.
- Link
Type Pulumi.Azure Native. Machine Learning Services. Linked Service Link Type - Type of the link target.
- Modified
Time string - The last modified time of the linked service.
- Linked
Service stringResource Id - ResourceId of the link target of the linked service.
- Created
Time string - The creation time of the linked service.
- Link
Type LinkedService Link Type - Type of the link target.
- Modified
Time string - The last modified time of the linked service.
- linked
Service StringResource Id - ResourceId of the link target of the linked service.
- created
Time String - The creation time of the linked service.
- link
Type LinkedService Link Type - Type of the link target.
- modified
Time String - The last modified time of the linked service.
- linked
Service stringResource Id - ResourceId of the link target of the linked service.
- created
Time string - The creation time of the linked service.
- link
Type LinkedService Link Type - Type of the link target.
- modified
Time string - The last modified time of the linked service.
- linked_
service_ strresource_ id - ResourceId of the link target of the linked service.
- created_
time str - The creation time of the linked service.
- link_
type LinkedService Link Type - Type of the link target.
- modified_
time str - The last modified time of the linked service.
- linked
Service StringResource Id - ResourceId of the link target of the linked service.
- created
Time String - The creation time of the linked service.
- link
Type "Synapse" - Type of the link target.
- modified
Time String - The last modified time of the linked service.
LinkedServicePropsResponse, LinkedServicePropsResponseArgs
- Linked
Service stringResource Id - ResourceId of the link target of the linked service.
- Created
Time string - The creation time of the linked service.
- Link
Type string - Type of the link target.
- Modified
Time string - The last modified time of the linked service.
- Linked
Service stringResource Id - ResourceId of the link target of the linked service.
- Created
Time string - The creation time of the linked service.
- Link
Type string - Type of the link target.
- Modified
Time string - The last modified time of the linked service.
- linked
Service StringResource Id - ResourceId of the link target of the linked service.
- created
Time String - The creation time of the linked service.
- link
Type String - Type of the link target.
- modified
Time String - The last modified time of the linked service.
- linked
Service stringResource Id - ResourceId of the link target of the linked service.
- created
Time string - The creation time of the linked service.
- link
Type string - Type of the link target.
- modified
Time string - The last modified time of the linked service.
- linked_
service_ strresource_ id - ResourceId of the link target of the linked service.
- created_
time str - The creation time of the linked service.
- link_
type str - Type of the link target.
- modified_
time str - The last modified time of the linked service.
- linked
Service StringResource Id - ResourceId of the link target of the linked service.
- created
Time String - The creation time of the linked service.
- link
Type String - Type of the link target.
- modified
Time String - The last modified time of the linked service.
ResourceIdentityType, ResourceIdentityTypeArgs
- System
Assigned - SystemAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- User
Assigned - UserAssigned
- None
- None
- Resource
Identity Type System Assigned - SystemAssigned
- Resource
Identity Type_System Assigned_User Assigned - SystemAssigned,UserAssigned
- Resource
Identity Type User Assigned - UserAssigned
- Resource
Identity Type None - None
- System
Assigned - SystemAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- User
Assigned - UserAssigned
- None
- None
- System
Assigned - SystemAssigned
- System
Assigned_User Assigned - SystemAssigned,UserAssigned
- User
Assigned - UserAssigned
- None
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- SYSTEM_ASSIGNED_USER_ASSIGNED
- SystemAssigned,UserAssigned
- USER_ASSIGNED
- UserAssigned
- NONE
- None
- "System
Assigned" - SystemAssigned
- "System
Assigned,User Assigned" - SystemAssigned,UserAssigned
- "User
Assigned" - UserAssigned
- "None"
- None
UserAssignedIdentityResponse, UserAssignedIdentityResponseArgs
- Client
Id string - The clientId(aka appId) of the user assigned identity.
- Principal
Id string - The principal ID of the user assigned identity.
- Tenant
Id string - The tenant ID of the user assigned identity.
- Client
Id string - The clientId(aka appId) of the user assigned identity.
- Principal
Id string - The principal ID of the user assigned identity.
- Tenant
Id string - The tenant ID of the user assigned identity.
- client
Id String - The clientId(aka appId) of the user assigned identity.
- principal
Id String - The principal ID of the user assigned identity.
- tenant
Id String - The tenant ID of the user assigned identity.
- client
Id string - The clientId(aka appId) of the user assigned identity.
- principal
Id string - The principal ID of the user assigned identity.
- tenant
Id string - The tenant ID of the user assigned identity.
- client_
id str - The clientId(aka appId) of the user assigned identity.
- principal_
id str - The principal ID of the user assigned identity.
- tenant_
id str - The tenant ID of the user assigned identity.
- client
Id String - The clientId(aka appId) of the user assigned identity.
- principal
Id String - The principal ID of the user assigned identity.
- tenant
Id String - The tenant ID of the user assigned identity.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:machinelearningservices:LinkedService link-1 /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/linkedServices/link-1
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