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
new LinkedService(name: string, args: LinkedServiceArgs, opts?: CustomResourceOptions);def LinkedService(resource_name, opts=None, linked_service_name=None, resource_group_name=None, resource_id=None, tags=None, workspace_name=None, __props__=None);func NewLinkedService(ctx *Context, name string, args LinkedServiceArgs, opts ...ResourceOption) (*LinkedService, error)public LinkedService(string name, LinkedServiceArgs args, CustomResourceOptions? opts = null)- 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:
- Resource
Group stringName 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 string The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.
- Workspace
Name string Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.
- Linked
Service stringName Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in
workspace_name. Currently it defaults to and only supportsautomationas a value. Changing this forces a new resource to be created.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Resource
Group stringName 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 string The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.
- Workspace
Name string Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.
- Linked
Service stringName Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in
workspace_name. Currently it defaults to and only supportsautomationas a value. Changing this forces a new resource to be created.- map[string]string
A mapping of tags to assign to the resource.
- resource
Group stringName 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 string The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.
- workspace
Name string Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.
- linked
Service stringName Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in
workspace_name. Currently it defaults to and only supportsautomationas a value. Changing this forces a new resource to be created.- {[key: string]: string}
A mapping of tags to assign to the resource.
- resource_
group_ strname 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_ strname Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in
workspace_name. Currently it defaults to and only supportsautomationas a value. Changing this forces a new resource to be created.- 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:
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): LinkedServicestatic 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:
- Linked
Service stringName Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in
workspace_name. Currently it defaults to and only supportsautomationas 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- Resource
Group stringName 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 string The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Workspace
Name string Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.
- Linked
Service stringName Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in
workspace_name. Currently it defaults to and only supportsautomationas 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- Resource
Group stringName 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 string The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- Workspace
Name string Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.
- linked
Service stringName Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in
workspace_name. Currently it defaults to and only supportsautomationas 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- resource
Group stringName 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 string The ID of the Resource that will be linked to the workspace. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- workspace
Name string Name of the Log Analytics Workspace that will contain the linkedServices resource. Changing this forces a new resource to be created.
- linked_
service_ strname Name of the type of linkedServices resource to connect to the Log Analytics Workspace specified in
workspace_name. Currently it defaults to and only supportsautomationas 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_ strname 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.
- 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
azurermTerraform Provider.