Skip to content

paladique/AzureSample-FunctionCSVToJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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