Blob trigger function that converts a CSV File to JSON file.
- Visual Studio 2019 (with Azure development workload)
- VS Code and Azure Functions Extension
- Azure Storage Explorer
- Azurite
- Azure Functions Core Tools v3.0
- Clone/Download this repo and open in VS Code or Visual Studio
- Install the tools above
- Install and Start Azurite (startup varies with installation choice, refer to docs in NPM, Docker, or VS Code)
- Open Azure Storage Explorer
- Start from Local and attached directory Storage Accounts > Emulator > Blob Containers
- Right click on Blob containers > Create Blob Container
- Name container
to-convert
- Upload a csv file to the blob container, you can use the test file available here.
- Highlight the Emulator in and copy the primary connection string in properties at the bottom of the Explorer view.
- Paste connection string into the value of
StorageConnString
in the settings file - Rename the file to remove the underscore:
local.settings.json
- Run code in:
- Visual Studio > F5
- VS Code > Run > Attach to .NET Functions > Start Debugging Button
- Command line >
cd CSVToJSON
>func start
- Want to deploy to Azure? Refer to this documentation on deployment options