5

我正在尝试使用 Azure 资源管理器模板部署 Azure 数据工厂服务。到目前为止,我能够创建数据工厂本身,但我无法使用这种方法向其中添加任何链接服务、管道或数据集。由于没有可用的数据工厂模板示例,我根据 REST API 文档创建了我的模板。以下是我试图实现的模板,但服务器返回了“错误请求”。

{
   "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
   "contentVersion": "1.0.0.0",
   "parameters": {
     "siteName": {
       "type": "string"
     }
   },
   "resources": [
     {
        "apiVersion": "2015-05-01-preview",
        "type": "Microsoft.DataFactory/datafactories",
        "name": "teststoragedatafactory",
        "location": "[resourceGroup().location]",
        "resources": [
            {
                "apiVersion": "2015-05-01-preview",
                "type": "linkedservices",
                "name": "mylinkedservice",
                "location": "[resourceGroup().location]",
                "dependsOn": [
                       "/subscriptions/xxx/resourceGroups/TestARMTemplate/providers/Microsoft.DataFactory/datafactories/teststoragedatafactory"
                ],
                "properties":
                {
                    "type": "AzureStorageLinkedService",
                    "description": "",
                    "connectionString": "DefaultEndpointsProtocol=https;AccountName=xxx;AccountKey=xxx"
                }
            }
        ]
     }
   ]
}

根据我可以从日志中获得的信息,执行了对 API 的请求,并且端点似乎是正确的。但是,请求有效负载似乎存在问题。

你们中有人有使用 ARM 模板部署数据工厂服务的经验吗?可以使用这种方法创建链接服务吗?有没有办法查看用于创建链接服务的请求?

非常感谢您的帮助!

哈维

4

1 回答 1

1

您可以在azure 快速入门模板库中找到创建数据工厂帐户和简单管道的模板示例

于 2015-12-16T16:41:50.567 回答