Get Metadata activity doesn't directly support listing file shares. Is that true?

Rajoli Hari Krishna 376 Reputation points
2024-07-13T13:26:56.68+00:00

I have created linked services, data sets based on file storage and get metadata activity to get the file shares list from the azure storage account which is in public network.

No where I found an article related to above scenario but in chat gpt, i found that get meta data activity directly not supports the file shares listing. If yes, what is the solution to get the file shares list dynamically in the ADF?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,217 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,085 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 19,451 Reputation points
    2024-07-14T14:45:24.04+00:00

    Yes, it is true because the Get Metadata activity can retrieve metadata about a dataset, but it does not have the capability to list all file shares directly.

    If you are familiar with Azure Functions, you can write a function that uses the Azure Storage SDK to list the file shares in your storage account.

    Then you can use the web activity to call the function and you parse the response to get the files.

    0 comments No comments

0 additional answers

Sort by: Most helpful