Giter Site home page Giter Site logo

michimune / azure-webjobs-sdk-templates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure/azure-functions-templates

0.0 2.0 0.0 1.19 MB

License: MIT License

Batchfile 0.72% C# 30.74% F# 3.42% JavaScript 16.98% Python 0.67% PHP 0.53% PowerShell 46.79% Shell 0.15%

azure-webjobs-sdk-templates's Introduction

Azure Functions Templates

This repository contains the templates used by the Azure Functions Portal. Templates are pre-defined functions that demonstrate a working scenario and could be used as a starting point for more complex ones.

Template Format

A template requires specific metadata files and folder structure so that Azure Functions Portal can understand and graphically present it. Please find more information on individual files and their contents below.

  • Binding.json: This is a metadata file for all the bindings and their possible configuration settings. It is common across all templates and is located here. It also contains metadata for binding related UI Elements and the corresponding text.

  • Function.json: This file contains binding data specific to each template. It provides valid values for the possible settings on a binding.

  • Code file: Code file holds the actual code executed by the template. The name of the file depends on the Target language used by the template. For all the languages, the file name is run, followed by the file extension specific to the language. Additionally Javascript also supports index.js as the name of the code file.

  • Metadata.json: UI related metadata specific to each template is present here. For e.g. Template Name, category.

  • Sample.dat: Sample.dat contains sample input data for each template. The Run text box in the portal will be populated by the contents of the sample.dat file.

Testing templates

Testing via Azure Functions Portal

  1. Download and extract contents of Template tools zip file.
  2. Execute the following command from the root of the folder containing the extracted files.
    CreateTemplateConfig.exe <TemplateRepositoryRootPath>
  3. The tool will generate the following files.
    • templates.json
    • bindings.json
  4. Open https://functions.azure.com in chrome and login with your credentials.
  5. Open developer Tools (F12) -> Application -> Local Storage
  6. Expand Local Storage and select https://functions.azure.com
  7. Create a new key dev-bindings and copy contents of bindings.json in the value column.
  8. Create a new key dev-templates and copy contents of templates.json in the value column.
  9. Refresh the portal page to reflect your template/binding changes.

License

This project is under the benevolent umbrella of the .NET Foundation and is licensed under the MIT License

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Related Github Repositories

Contribute Code or Provide Feedback

If you would like to become an active contributor to this project please follow the instructions provided in Microsoft Azure Projects Contribution Guidelines. If you encounter any bugs with the templates please file an issue in the Issues section of the project.

azure-webjobs-sdk-templates's People

Contributors

ahmelsayed avatar alrod avatar brettsam avatar ehamai avatar fabiocav avatar fashaikh avatar lindydonna avatar mathewc avatar mattchenderson avatar maxpert avatar mikestall avatar paulbatum avatar pragnagopa avatar safihamid avatar soninaren avatar stuartleeks avatar sylvanc 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.