LinkedService

Links a Log Analytics (formally Operational Insights) Workspace to another resource. The (currently) only linkable service is an Azure Automation Account.

Create a LinkedService Resource

def LinkedService(resource_name, opts=None, linked_service_name=None, resource_group_name=None, resource_id=None, tags=None, workspace_name=None, __props__=None);
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.
opts ResourceOptions
A bag of options that control this 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.

LinkedService Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The LinkedService resource accepts the following input properties:

ResourceGroupName string

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

ResourceId string

The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.

WorkspaceName string

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

LinkedServiceName string

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

ResourceGroupName string

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

ResourceId string

The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.

WorkspaceName string

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

LinkedServiceName string

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

Tags map[string]string

A mapping of tags to assign to the resource.

resourceGroupName string

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

resourceId string

The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.

workspaceName string

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

linkedServiceName string

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

resource_group_name str

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

resource_id str

The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.

workspace_name str

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

linked_service_name str

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

tags Dict[str, str]

A mapping of tags to assign to the resource.

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 automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

Id string
The provider-assigned unique ID for this managed resource.
Name string

The automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

id string
The provider-assigned unique ID for this managed resource.
name string

The automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

id str
The provider-assigned unique ID for this managed resource.
name str

The automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

Look up an Existing LinkedService Resource

Get an existing LinkedService resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LinkedServiceState, opts?: CustomResourceOptions): LinkedService
static get(resource_name, id, opts=None, linked_service_name=None, name=None, resource_group_name=None, resource_id=None, tags=None, workspace_name=None, __props__=None);
func GetLinkedService(ctx *Context, name string, id IDInput, state *LinkedServiceState, opts ...ResourceOption) (*LinkedService, error)
public static LinkedService Get(string name, Input<string> id, LinkedServiceState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

LinkedServiceName string

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

Name string

The automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

ResourceGroupName string

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

ResourceId string

The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

WorkspaceName string

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

LinkedServiceName string

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

Name string

The automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

ResourceGroupName string

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

ResourceId string

The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.

Tags map[string]string

A mapping of tags to assign to the resource.

WorkspaceName string

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

linkedServiceName string

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

name string

The automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

resourceGroupName string

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

resourceId string

The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

workspaceName string

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

linked_service_name str

Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in workspace_name. Currently it defaults to and only supports automation as a value. Changing this forces a new resource to be created.

name str

The automatically generated name of the Linked Service. This cannot be specified. The format is always <workspace_name>/<linked_service_name> e.g. workspace1/Automation

resource_group_name str

The name of the resource group in which the Log Analytics Linked Service is created. Changing this forces a new resource to be created.

resource_id str

The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.

tags Dict[str, str]

A mapping of tags to assign to the resource.

workspace_name str

Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.