使用Visual Studio的Data Factory v2链接服务

时间:2018-11-06 12:20:00

标签: azure-resource-manager azure-data-factory-2

我正在尝试创建一个ARM模板,以使用Visual Studio创建一个SQL Server链接服务。当我验证它时,它显示以下错误

12:01:56-:请求内容无效,无法反序列化:在JSON中找不到“必需属性'类型”。路径'properties.template.resources 1',第46行,位置9。'。

此外,在资源部分中,VSS会显示一条弯曲的绿线,将鼠标悬停在绿线上会显示一条消息 “值必须是以下“ Microsoft.Servicefabric / cluster / applications / services”之一

我在做什么错。我正在尝试参考下面链接中解释的模板来构建它 https://docs.microsoft.com/en-us/azure/templates/microsoft.datafactory/factories/linkedservices

此外,VSS智能不会在“类型”键值中列出“ Microsoft.DataFactory”

{
  "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": 
  {
    "factoryName": {
      "type": "string",
      "defaultValue": "VTTestDF"
    },
    "DITestSQl1_connectionString": {
      "type": "securestring"

    }
  },
  "variables": 
  {
    "factoryId": "[concat('Microsoft.DataFactory/factories/', parameters('factoryName'))]"
  },
  "resources": 
  [
    {
      "name": "[concat(parameters('factoryName'), '/SelfHostIR')]",
      "apiVersion": "2017-07-01-preview",
      "type": "Microsoft.DataFactory/factories/integrationRuntimes",
      "type": ""
      "location": "North Europe",
      "properties": {
        "type": "SelfHosted",
        "typeProperties": {}
      },
      "dependsOn": []
    },
    {
      "name": "[concat(parameters('factoryName'), '/DITestSQl1')]",
      "properties": 
      {
        "annotations": [],
        "type": "SqlServer",
        "typeProperties": 
        {
          "connectionString": "[parameters('DITestSQl1_connectionString')]"
        },
        "connectVia": 
        {
          "referenceName": "SelfHostIR",
          "type": "IntegrationRuntimeReference"
        }
      },
      "dependsOn": ["[concat(variables('factoryId'), '/integrationRuntimes/SelfHostIR')]"]
    }
  ]
}

0 个答案:

没有答案