/meetup-azurefunctions-demos

Simple project which contains all the demos from the Meetup 'Serverless Computing - Nur ein Hype? Eine Einführung in Azure Functions'.

Primary LanguageC#MIT LicenseMIT

Serverless Computing - just a hype

An introduction to Azure Functions

Introduction

During the Meetup Serverless Computing - just a hype? An introduction to Azure Functions we gave a brave introduction into Azure Functions. This repository contains most of our samples.

Preperation

To be able to run the sample locally on your machine you need to clone the repo and add a file local.settings.json in the root path of the project.

Than you need to provide data like shown in the following structure if your are using v1 of the runtime:

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "AzureWebJobsDashboard": "UseDevelopmentStorage=true",
    "statusReportFromMail": "",
    "statusReportToMail": "",
    "statusReportMailPassword": "",
    "statusReportHost": "",
    "statusReportPort": "",
    "miteTenant": "",
    "miteApiKey": "",
    "twitterConsumerKey": "",
    "twitterConsumerSecret": "",
    "twitterAccessToken": "",
    "twitterAccessTokenSecret": ""
  }
}

and the following json for v2 of the runtime:

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    "statusReportFromMail": "",
    "statusReportToMail": "",
    "statusReportMailPassword": "",
    "statusReportHost": "",
    "statusReportPort": "",
  }
}

The values statusReportFromMail, statusReportToMail, statusReportMailPassword, statusReportHost and statusReportPort are needed for the PeriodicStatusReportFunction to send every minute an email to a provided mail address.

The values miteTenant and miteApiKey are needed for the two functions MiteProjectTimesStatusFunction and MiteWeeklyTrackedTimeFunction to be able to access the Mite api.

The values twitterConsumerKey, twitterConsumerSecret, twitterAccessToken and twitterAccessTokenSecret are needed for the function MiteWeeklyTrackedTimeFunction to be able to send a tweet via Twitter.

Resources

Questions and Feedback

If you have any follow up questions, feel free to talk to us on Twitter: