GithubHelp home page GithubHelp logo

joemccann / azure-blog-storage-file-merge Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 421 KB

๐Ÿ—‚ An Azure Function to merge a group of JSON files from Azure Blob Storage and return the single merged file and write the merged file back to blob storage.

JavaScript 100.00%

azure-blog-storage-file-merge's Introduction

Azure Blob Storage File Merge Azure Function

๐Ÿ—‚ An Azure Function to merge a group of JSON files from Azure Blob Storage and return the single merged file and write the merged file back to blob storage.

Requirements

Installation

npm i -S joemccann/azure-blob-storage-file-merge

Create a .env file and include the following values:

AZURE_TENANT_ID=XXX
AZURE_CLIENT_ID=XXX
AZURE_CLIENT_SECRET=XXX
AZURE_STORAGE_CONTAINER=XXX
BLOB_SERVICE_ACCOUNT_NAME=XXX
FILENAME_PREFIX=OPTIONAL-PREFIX-FOR-FILES-IN-STORAGE-CONTAINER

Note: FILENAME_PREFIX is optional. If you include it, the merge will only files that begin with the FILENAME_PREFIX string like "daily-" or "contact-".

Create a local.settings.json file as well for running the Azure Function locally in VS Code.

If you don't know where to obtain these values in Azure, look at the AZURE.md document.

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "CREATED-BY-AZURE-FUNCTION-IN-VS-CODE",
    "FUNCTIONS_WORKER_RUNTIME": "node",
    "AZURE_TENANT_ID": "XXX",
    "AZURE_CLIENT_ID": "XXX",
    "AZURE_CLIENT_SECRET": "XXX",
    "AZURE_STORAGE_CONTAINER": "XXX",
    "BLOB_SERVICE_ACCOUNT_NAME": "XXX",
    "FILENAME_PREFIX": "OPTIONAL-PREFIX-FOR-FILES-IN-STORAGE-CONTAINER"
  }
}

Usage

  • Coming soon...

Tests

npm i -D
npm test

License

MIT

azure-blog-storage-file-merge's People

Contributors

joemccann avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.