1. Packages
  2. Azure Native
  3. API Docs
  4. operationalinsights
  5. LinkedService
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.operationalinsights.LinkedService

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 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.

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

    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 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 examplelinkedServiceResourceResourceFromOperationalinsights = new AzureNative.OperationalInsights.LinkedService("examplelinkedServiceResourceResourceFromOperationalinsights", new()
    {
        ResourceGroupName = "string",
        WorkspaceName = "string",
        LinkedServiceName = "string",
        ProvisioningState = "string",
        ResourceId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        WriteAccessResourceId = "string",
    });
    
    example, err := operationalinsights.NewLinkedService(ctx, "examplelinkedServiceResourceResourceFromOperationalinsights", &operationalinsights.LinkedServiceArgs{
    	ResourceGroupName: pulumi.String("string"),
    	WorkspaceName:     pulumi.String("string"),
    	LinkedServiceName: pulumi.String("string"),
    	ProvisioningState: pulumi.String("string"),
    	ResourceId:        pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	WriteAccessResourceId: pulumi.String("string"),
    })
    
    var examplelinkedServiceResourceResourceFromOperationalinsights = new LinkedService("examplelinkedServiceResourceResourceFromOperationalinsights", LinkedServiceArgs.builder()
        .resourceGroupName("string")
        .workspaceName("string")
        .linkedServiceName("string")
        .provisioningState("string")
        .resourceId("string")
        .tags(Map.of("string", "string"))
        .writeAccessResourceId("string")
        .build());
    
    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")
    
    const examplelinkedServiceResourceResourceFromOperationalinsights = new azure_native.operationalinsights.LinkedService("examplelinkedServiceResourceResourceFromOperationalinsights", {
        resourceGroupName: "string",
        workspaceName: "string",
        linkedServiceName: "string",
        provisioningState: "string",
        resourceId: "string",
        tags: {
            string: "string",
        },
        writeAccessResourceId: "string",
    });
    
    type: azure-native:operationalinsights:LinkedService
    properties:
        linkedServiceName: string
        provisioningState: string
        resourceGroupName: string
        resourceId: string
        tags:
            string: string
        workspaceName: string
        writeAccessResourceId: 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:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    WorkspaceName string
    The name of the workspace.
    LinkedServiceName 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 string
    The name of the resource group. The name is case insensitive.
    WorkspaceName string
    The name of the workspace.
    LinkedServiceName 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 String
    The name of the resource group. The name is case insensitive.
    workspaceName String
    The name of the workspace.
    linkedServiceName 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 string
    The name of the resource group. The name is case insensitive.
    workspaceName string
    The name of the workspace.
    linkedServiceName 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 str
    The name of the resource group. The name is case insensitive.
    workspace_name str
    The name of the workspace.
    linked_service_name 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 String
    The name of the resource group. The name is case insensitive.
    workspaceName String
    The name of the workspace.
    linkedServiceName 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} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi