使用ARM模板部署Azure数据工厂

时间:2015-07-08 20:25:03

标签: azure azure-resource-manager azure-data-factory cortana-intelligence

我尝试使用Azure资源管理器模板部署Azure数据工厂服务。到目前为止,我能够创建数据工厂本身,但我无法使用此方法向其添加任何链接服务,管道或数据集。由于没有可用的数据工厂模板示例,因此我基于REST API文档创建了我的模板。以下是我试图实施的模板,但是" Bad Request"由服务器返回。

{
   "$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模板部署数据工厂服务的经验?可以使用这种方法创建链接服务吗?有没有办法看到用于创建链接服务的请求?

非常感谢你的帮助!

哈维

1 个答案:

答案 0 :(得分:1)

您可以在azure quickstart template gallery

中找到创建数据工厂帐户和简单管道的模板示例
相关问题