簡體   English   中英

使用ARM模板部署Azure數據工廠

[英]Deploying Azure Data Factory using ARM Templates

我正在嘗試使用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模板部署數據工廠服務的經驗? 可以使用這種方法創建鏈接服務嗎? 有沒有辦法看到用於創建鏈接服務的請求?

非常感謝您的幫助!

哈維

您可以在azure快速入門模板庫中找到創建數據工廠帳戶和簡單管道的模板示例

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM