Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 2.27 KB

README.md

File metadata and controls

30 lines (25 loc) · 2.27 KB

Convert CSV Files to JSON with Azure Functions

Blob trigger function that converts a CSV File to JSON file.

Built with

Running this sample locally

  1. Clone/Download this repo and open in VS Code or Visual Studio
  2. Install the tools above
  3. Install and Start Azurite (startup varies with installation choice, refer to docs in NPM, Docker, or VS Code)
  4. Open Azure Storage Explorer
  5. Start from Local and attached directory Storage Accounts > Emulator > Blob Containers
  6. Right click on Blob containers > Create Blob Container
  7. Name container to-convert
  8. Upload a csv file to the blob container, you can use the test file available here.
  9. Highlight the Emulator in and copy the primary connection string in properties at the bottom of the Explorer view.
  10. Paste connection string into the value of StorageConnString in the settings file
  11. Rename the file to remove the underscore: local.settings.json
  12. Run code in:
    • Visual Studio > F5
    • VS Code > Run > Attach to .NET Functions > Start Debugging Button
    • Command line > cd CSVToJSON > func start
  13. Want to deploy to Azure? Refer to this documentation on deployment options