首页 文章

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

提问于
浏览
3

我正在尝试使用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的请求,并且 endpoints 似乎是正确的 . 但是,请求有效负载似乎存在问题 .

您是否有使用ARM模板部署数据工厂服务的经验?可以使用这种方法创建链接服务吗?有没有办法看到用于创建链接服务的请求?

非常感谢您的帮助!

哈维

1 回答

相关问题