Linked Service Args
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. API Version: 2020-08-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",
});
});
Content copied to clipboard
package main
import (
operationalinsights "github.com/pulumi/pulumi-azure-native-sdk/operationalinsights"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/cluster
Content copied to clipboard
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
Name of the linkedServices resource
Link copied to clipboard
The provisioning state of the linked service.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
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
The name of the workspace.
Link copied to clipboard
The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access