Public/IaaS/vm/Set-CmAzIaasUpdateManagement.LinkedServices.json

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "AutomationAccount": {
      "type": "object"
    },
    "WorkspaceName": {
      "type": "string"
    }
  },
  "resources": [
    {
      "type": "Microsoft.OperationalInsights/Workspaces/LinkedServices",
      "apiVersion": "2020-03-01-preview",
      "name": "[concat(parameters('WorkspaceName'), '/automation')]",
      "location": "[resourceGroup().location]",
      "properties": {
          "resourceId": "[resourceId(parameters('AutomationAccount').resourceGroupName, 'Microsoft.Automation/automationAccounts', parameters('AutomationAccount').name)]",
          "provisioningState": "Succeeded"
      }
    }
  ]
}