Microsoft.OperationalInsights workspaces/linkedServices

Template format

To create a Microsoft.OperationalInsights/workspaces/linkedServices resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.OperationalInsights/workspaces/linkedServices",
  "apiVersion": "2020-08-01",
  "properties": {
    "resourceId": "string",
    "writeAccessResourceId": "string"
  },
  "tags": {}
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.OperationalInsights/workspaces/linkedServices object

Name Type Required Value
name string Yes Name of the linkedServices resource
type enum Yes linkedServices
-or-
Microsoft.OperationalInsights/workspaces/linkedServices

See Set name and type for child resources.
apiVersion enum Yes 2020-08-01
properties object Yes The properties of the linked service. - LinkedServiceProperties object
tags object No Resource tags.

LinkedServiceProperties object

Name Type Required Value
resourceId string No The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require read access
writeAccessResourceId string No The resource id of the resource that will be linked to the workspace. This should be used for linking resources which require write access

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create Azure Automation account

Deploy to Azure
This template provides an example of how create an Azure Automation account and links it to a new or existing Azure Monitor Log Analytics workspace.