1. Packages
  2. Azure Native v2
  3. API Docs
  4. operationalinsights
  5. LinkedService
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.operationalinsights.LinkedService

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

The top level Linked service resource container. Azure REST API version: 2020-08-01. Prior API version in Azure Native 1.x: 2020-08-01.

Other available API versions: 2015-11-01-preview, 2023-09-01.

Example Usage

LinkedServicesCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var linkedService = new AzureNative.OperationalInsights.LinkedService("linkedService", new()
    {
        LinkedServiceName = "Cluster",
        ResourceGroupName = "mms-eus",
        WorkspaceName = "TestLinkWS",
        WriteAccessResourceId = "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster",
    });

});
Copy
package main

import (
	operationalinsights "github.com/pulumi/pulumi-azure-native-sdk/operationalinsights/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := operationalinsights.NewLinkedService(ctx, "linkedService", &operationalinsights.LinkedServiceArgs{
			LinkedServiceName:     pulumi.String("Cluster"),
			ResourceGroupName:     pulumi.String("mms-eus"),
			WorkspaceName:         pulumi.String("TestLinkWS"),
			WriteAccessResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster"),
		})
		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.operationalinsights.LinkedService;
import com.pulumi.azurenative.operationalinsights.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()
            .linkedServiceName("Cluster")
            .resourceGroupName("mms-eus")
            .workspaceName("TestLinkWS")
            .writeAccessResourceId("/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const linkedService = new azure_native.operationalinsights.LinkedService("linkedService", {
    linkedServiceName: "Cluster",
    resourceGroupName: "mms-eus",
    workspaceName: "TestLinkWS",
    writeAccessResourceId: "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

linked_service = azure_native.operationalinsights.LinkedService("linkedService",
    linked_service_name="Cluster",
    resource_group_name="mms-eus",
    workspace_name="TestLinkWS",
    write_access_resource_id="/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster")
Copy
resources:
  linkedService:
    type: azure-native:operationalinsights:LinkedService
    properties:
      linkedServiceName: Cluster
      resourceGroupName: mms-eus
      workspaceName: TestLinkWS
      writeAccessResourceId: /subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.OperationalInsights/clusters/testcluster
Copy

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,
                  linked_service_name: Optional[str] = None,
                  provisioning_state: Optional[Union[str, LinkedServiceEntityStatus]] = None,
                  resource_id: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  write_access_resource_id: Optional[str] = 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:operationalinsights:LinkedService
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. LinkedServiceArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. LinkedServiceArgs
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. LinkedServiceArgs
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. 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 examplelinkedServiceResourceResourceFromOperationalinsights = new AzureNative.Operationalinsights.LinkedService("examplelinkedServiceResourceResourceFromOperationalinsights", new()
{
    ResourceGroupName = "string",
    WorkspaceName = "string",
    LinkedServiceName = "string",
    ProvisioningState = "string",
    ResourceId = "string",
    Tags = 
    {
        { "string", "string" },
    },
    WriteAccessResourceId = "string",
});
Copy
example, err := operationalinsights.NewLinkedService(ctx, "examplelinkedServiceResourceResourceFromOperationalinsights", &operationalinsights.LinkedServiceArgs{
	ResourceGroupName: "string",
	WorkspaceName:     "string",
	LinkedServiceName: "string",
	ProvisioningState: "string",
	ResourceId:        "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
	WriteAccessResourceId: "string",
})
Copy
var examplelinkedServiceResourceResourceFromOperationalinsights = new LinkedService("examplelinkedServiceResourceResourceFromOperationalinsights", LinkedServiceArgs.builder()
    .resourceGroupName("string")
    .workspaceName("string")
    .linkedServiceName("string")
    .provisioningState("string")
    .resourceId("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .writeAccessResourceId("string")
    .build());
Copy
examplelinked_service_resource_resource_from_operationalinsights = azure_native.operationalinsights.LinkedService("examplelinkedServiceResourceResourceFromOperationalinsights",
    resource_group_name=string,
    workspace_name=string,
    linked_service_name=string,
    provisioning_state=string,
    resource_id=string,
    tags={
        string: string,
    },
    write_access_resource_id=string)
Copy
const examplelinkedServiceResourceResourceFromOperationalinsights = new azure_native.operationalinsights.LinkedService("examplelinkedServiceResourceResourceFromOperationalinsights", {
    resourceGroupName: "string",
    workspaceName: "string",
    linkedServiceName: "string",
    provisioningState: "string",
    resourceId: "string",
    tags: {
        string: "string",
    },
    writeAccessResourceId: "string",
});
Copy
type: azure-native:operationalinsights:LinkedService
properties:
    linkedServiceName: string
    provisioningState: string
    resourceGroupName: string
    resourceId: string
    tags:
        string: string
    workspaceName: string
    writeAccessResourceId: string
Copy

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

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

The LinkedService resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
LinkedServiceName Changes to this property will trigger replacement. string
Name of the linkedServices resource
ProvisioningState string | Pulumi.AzureNative.OperationalInsights.LinkedServiceEntityStatus
The provisioning state of the linked service.
ResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
Tags Dictionary<string, string>
Resource tags.
WriteAccessResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
LinkedServiceName Changes to this property will trigger replacement. string
Name of the linkedServices resource
ProvisioningState string | LinkedServiceEntityStatus
The provisioning state of the linked service.
ResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
Tags map[string]string
Resource tags.
WriteAccessResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.
linkedServiceName Changes to this property will trigger replacement. String
Name of the linkedServices resource
provisioningState String | LinkedServiceEntityStatus
The provisioning state of the linked service.
resourceId String
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
tags Map<String,String>
Resource tags.
writeAccessResourceId String
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
linkedServiceName Changes to this property will trigger replacement. string
Name of the linkedServices resource
provisioningState string | LinkedServiceEntityStatus
The provisioning state of the linked service.
resourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
tags {[key: string]: string}
Resource tags.
writeAccessResourceId string
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
workspace_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the workspace.
linked_service_name Changes to this property will trigger replacement. str
Name of the linkedServices resource
provisioning_state str | LinkedServiceEntityStatus
The provisioning state of the linked service.
resource_id str
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
tags Mapping[str, str]
Resource tags.
write_access_resource_id str
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.
linkedServiceName Changes to this property will trigger replacement. String
Name of the linkedServices resource
provisioningState String | "Succeeded" | "Deleting" | "ProvisioningAccount" | "Updating"
The provisioning state of the linked service.
resourceId String
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
tags Map<String>
Resource tags.
writeAccessResourceId String
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

LinkedServiceEntityStatus
, LinkedServiceEntityStatusArgs

Succeeded
Succeeded
Deleting
Deleting
ProvisioningAccount
ProvisioningAccount
Updating
Updating
LinkedServiceEntityStatusSucceeded
Succeeded
LinkedServiceEntityStatusDeleting
Deleting
LinkedServiceEntityStatusProvisioningAccount
ProvisioningAccount
LinkedServiceEntityStatusUpdating
Updating
Succeeded
Succeeded
Deleting
Deleting
ProvisioningAccount
ProvisioningAccount
Updating
Updating
Succeeded
Succeeded
Deleting
Deleting
ProvisioningAccount
ProvisioningAccount
Updating
Updating
SUCCEEDED
Succeeded
DELETING
Deleting
PROVISIONING_ACCOUNT
ProvisioningAccount
UPDATING
Updating
"Succeeded"
Succeeded
"Deleting"
Deleting
"ProvisioningAccount"
ProvisioningAccount
"Updating"
Updating

Import

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

$ pulumi import azure-native:operationalinsights:LinkedService TestLinkWS/Cluster /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/linkedServices/{linkedServiceName} 
Copy

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

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi