azure-native.operationalinsights.LinkedService
Explore with Pulumi AI
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",
});
});
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
})
}
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: "string",
WorkspaceName: "string",
LinkedServiceName: "string",
ProvisioningState: "string",
ResourceId: "string",
Tags: map[string]interface{}{
"string": "string",
},
WriteAccessResourceId: "string",
})
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());
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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Workspace
Name string - The name of the workspace.
- Linked
Service stringName - Name of the linkedServices resource
- Provisioning
State string | Pulumi.Azure Native. Operational Insights. Linked Service Entity Status - The provisioning state of the linked service.
- Resource
Id 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
- Dictionary<string, string>
- Resource tags.
- Write
Access stringResource Id - 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 stringName - The name of the resource group. The name is case insensitive.
- Workspace
Name string - The name of the workspace.
- Linked
Service stringName - Name of the linkedServices resource
- Provisioning
State string | LinkedService Entity Status - The provisioning state of the linked service.
- Resource
Id 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
- map[string]string
- Resource tags.
- Write
Access stringResource Id - 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 StringName - The name of the resource group. The name is case insensitive.
- workspace
Name String - The name of the workspace.
- linked
Service StringName - Name of the linkedServices resource
- provisioning
State String | LinkedService Entity Status - The provisioning state of the linked service.
- resource
Id 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
- Map<String,String>
- Resource tags.
- write
Access StringResource Id - 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 stringName - The name of the resource group. The name is case insensitive.
- workspace
Name string - The name of the workspace.
- linked
Service stringName - Name of the linkedServices resource
- provisioning
State string | LinkedService Entity Status - The provisioning state of the linked service.
- resource
Id 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
- {[key: string]: string}
- Resource tags.
- write
Access stringResource Id - 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_ strname - The name of the resource group. The name is case insensitive.
- workspace_
name str - The name of the workspace.
- linked_
service_ strname - Name of the linkedServices resource
- provisioning_
state str | LinkedService Entity Status - 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
- Mapping[str, str]
- Resource tags.
- write_
access_ strresource_ id - 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 StringName - The name of the resource group. The name is case insensitive.
- workspace
Name String - The name of the workspace.
- linked
Service StringName - Name of the linkedServices resource
- provisioning
State String | "Succeeded" | "Deleting" | "ProvisioningAccount" | "Updating" - The provisioning state of the linked service.
- resource
Id 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
- Map<String>
- Resource tags.
- write
Access StringResource Id - 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:
Supporting Types
LinkedServiceEntityStatus, LinkedServiceEntityStatusArgs
- Succeeded
- Succeeded
- Deleting
- Deleting
- Provisioning
Account - ProvisioningAccount
- Updating
- Updating
- Linked
Service Entity Status Succeeded - Succeeded
- Linked
Service Entity Status Deleting - Deleting
- Linked
Service Entity Status Provisioning Account - ProvisioningAccount
- Linked
Service Entity Status Updating - Updating
- Succeeded
- Succeeded
- Deleting
- Deleting
- Provisioning
Account - ProvisioningAccount
- Updating
- Updating
- Succeeded
- Succeeded
- Deleting
- Deleting
- Provisioning
Account - ProvisioningAccount
- Updating
- Updating
- SUCCEEDED
- Succeeded
- DELETING
- Deleting
- PROVISIONING_ACCOUNT
- ProvisioningAccount
- UPDATING
- Updating
- "Succeeded"
- Succeeded
- "Deleting"
- Deleting
- "Provisioning
Account" - 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/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testlinkws/linkedservices/cluster
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