LinkedServiceArgs

data class LinkedServiceArgs(val linkedServiceName: Output<String>? = null, val provisioningState: Output<Either<String, LinkedServiceEntityStatus>>? = null, val resourceGroupName: Output<String>? = null, val resourceId: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val workspaceName: Output<String>? = null, val writeAccessResourceId: Output<String>? = null) : ConvertibleToJava<LinkedServiceArgs>

The top level Linked service resource container. Uses Azure REST API version 2023-09-01. In version 2.x of the Azure Native provider, it used API version 2020-08-01. Other available API versions: 2015-11-01-preview, 2019-08-01-preview, 2020-03-01-preview, 2020-08-01, 2025-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native operationalinsights [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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",
});
});
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
})
}
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());
}
}

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}

Constructors

Link copied to clipboard
constructor(linkedServiceName: Output<String>? = null, provisioningState: Output<Either<String, LinkedServiceEntityStatus>>? = null, resourceGroupName: Output<String>? = null, resourceId: Output<String>? = null, tags: Output<Map<String, String>>? = null, workspaceName: Output<String>? = null, writeAccessResourceId: Output<String>? = null)

Properties

Link copied to clipboard
val linkedServiceName: Output<String>? = null

Name of the linkedServices resource

Link copied to clipboard
val provisioningState: Output<Either<String, LinkedServiceEntityStatus>>? = null

The provisioning state of the linked service.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val resourceId: Output<String>? = null

The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val workspaceName: Output<String>? = null

The name of the workspace.

Link copied to clipboard
val writeAccessResourceId: Output<String>? = null

The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access

Functions

Link copied to clipboard
open override fun toJava(): LinkedServiceArgs