小编Jav*_*tti的帖子

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

我正在尝试使用Azure资源管理器模板部署Azure数据工厂服务。到目前为止,我已经能够创建数据工厂本身,但是我无法使用这种方法向其添加任何链接服务,管道或数据集。由于没有可用的Data Factory模板示例,因此我根据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"
                }
            }
        ]
     }
   ]
}
Run Code Online (Sandbox Code Playgroud)

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

你们是否有使用ARM模板部署Data Factory服务的经验?是否可以使用这种方法创建链接服务?有什么办法可以查看用于创建链接服务的请求?

非常感谢您的帮助!

哈维

azure azure-resource-manager azure-data-factory cortana-intelligence

5
推荐指数
1
解决办法
1962
查看次数