Surekha Rajendran
Surekha Rajendran

Reputation: 21

How to get data from a JSON file using Azure functions and C# which is in Blob storage and Storing JSON data as columns in Azure table storage

How to get data from a JSON file (filename.json) using Azure functions and C# which is in Blob storage and Storing JSON data as columns in Azure table storage. My function app will be triggered when a json file has been placed in the path. So basically, there will be a JSON file with multiple records (tuple) in Blob Storage of ADLS Gen2 and I have to upload that to Table storage.

I have barely ever written code in C# before, any help with an elaborate description and explanation would be greatly appreciated.

I am also fairly new to Azure, so if anyone has a better suggestion on how to achieve what I am trying to do (that is maybe using a different trigger or different binders), I would gladly appreciate it.

Upvotes: 2

Views: 1936

Answers (1)

Muhammad Ahmod
Muhammad Ahmod

Reputation: 709

You need to create a function with Azure Blob storage trigger and output binding of azure table storage

uploading a file in your blob storage will trigger your function and you can then do any work needed to parse your json and push it to the table.

you can have a look at the links, get your blob trigger working and firing your function, then add to your function to include the output binding.

if you get stuck you can always update your question with the code thats giving you an issue.

one more link for getting started with c# functions in azure.

Upvotes: 2

Related Questions