簡體   English   中英

使用 Azure 數據工廠將數據從多個 Azure 表移動到 cosmosdb

[英]Move data from multiple Azure tables to cosmosdb using Azure data factory

I am using Azure data factory V2 to migrate data from Azure table storage to Azure cosmosDb sql Api. 在我的訂閱下,我有多個表,我想將其中的內容移動到 cosmosDb。 所有表格都具有相同的格式。 我可以通過為單個表創建復制活動來復制數據。 表的名稱不是 static(無法猜測),因為它們是每個用戶的名稱,並且取決於用戶 ID,例如 Table_UserID。

我查看了 ADF 的“查找”和“Foreach”活動,但似乎查找活動在特定源表中工作以獲取內容。

尋求有關如何遍歷所有表並復制數據的幫助。

您可以使用參數化查詢來執行此活動。

在 ADF 復制活動中,您可以添加腳本以將表從 Azure 表存儲復制到您的 Cosmos Sink

您可以使用以下兩個鏈接來制定您的管道:

  1. 在 ADF 中復制批量數據
  2. 在 ADF 中使用 Cosmos DB 作為接收器

好吧,我在同一條船上尋找解決方案。 Found that lookup doesn't help in case of Table Storage, and we have to replace lookup activity with Web Activity and query table storage rest api https://docs.microsoft.com/en-us/rest/api/storageservices/query -tables?WT.mc_id=AZ-MVP-5003556返回表名列表然后循環響應。 希望有幫助。

暫無
暫無

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

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