GithubHelp home page GithubHelp logo

davevoyles / azure-batch-functions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jsturtevant/azure-batch-functions

0.0 1.0 0.0 139 KB

License: MIT License

Batchfile 15.24% Shell 2.99% Python 3.01% JavaScript 78.77%

azure-batch-functions's Introduction

azure-batch-functions

Nodejs project working with Docker and Azure Batch.

Developing

Azure Batch

Get the Azure Cli 2.0 or use docker run -it azuresdk/azure-cli-python.

Set you subscription:

az login #follow the instructions
az account list
az account set --subscription <YOUR SUB ID>.  

Create azure batch:

az group create --name azurebatchfunctionsrg --location eastus
az provider register -n Microsoft.Batch
az provider show -n Microsoft.Batch -o table #run a few times and wait until it says registered
az batch account create -l eastus -g azurebatchfunctionsrg -n myazurebatch

Azure functions Component

To learn about testing and debuging Azure functions locally read the docs. To get started with this project:

  1. Install azure functions runtime npm i -g azure-functions-core-tools

  2. Clone the repo and cd into the folder

  3. Run npm install

  4. Run npm test to run unit tests

  5. Update rename example.settings.json to local.settings.json

  6. Upload docker_install_start_task.sh to a storage account.

  7. Update settings in local.settings.json:

    • get your batch keys by running az batch account keys list -g dockerworkshop -n workshopbatch

    • get the storage account key

      get your storage keys in azure portal

Test function

The following command will start the function host process in separate terminal and call the function GetPoolInfo passing the json object as body to request. For any of the other functions replace the name (some don't need the sample data as well).

func run GetPoolInfo -f GetPoolInfo/sample.dat

Add a new function

func new --language JavaScript --template HttpTrigger --name NameOfFunction

Other info

Find the docs for the node.js library at http://azure.github.io/azure-sdk-for-node/azure-batch/latest/

Azure Batch has a useful (if early release) of a cross platform Batch view at https://github.com/Azure/BatchLabs. As the project is very young there are a few missing features and you have to build the project yourself.

azure-batch-functions's People

Contributors

jsturtevant avatar

Watchers

 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.