All Projects → guitarrapc → Azurefunctionsintroduction

guitarrapc / Azurefunctionsintroduction

Licence: mit
Sample Code for Azure Functions

Projects that are alternatives of or similar to Azurefunctionsintroduction

Sample Stripe Handler
Serverless function that uses the stripe api for a checkout process in a Vue application
Stars: ✭ 155 (+76.14%)
Mutual labels:  serverless, azure-functions
Azure Functions Python Samples
Azure Functions Python Sample Codes
Stars: ✭ 266 (+202.27%)
Mutual labels:  serverless, azure-functions
Serverless Azure Functions
Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
Stars: ✭ 213 (+142.05%)
Mutual labels:  serverless, azure-functions
Azure Functions Host
The host/runtime that powers Azure Functions
Stars: ✭ 1,650 (+1775%)
Mutual labels:  serverless, azure-functions
Cadscenario personalisation
This is a end to end Personalisation business scenario
Stars: ✭ 10 (-88.64%)
Mutual labels:  serverless, azure-functions
Durablefunctionsmonitor
A monitoring/debugging UI tool for Azure Durable Functions
Stars: ✭ 136 (+54.55%)
Mutual labels:  serverless, azure-functions
Jazz
Platform to develop and manage serverless applications at an enterprise scale!
Stars: ✭ 254 (+188.64%)
Mutual labels:  serverless, azure-functions
Serverless
⚡ Serverless Framework – Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more! –
Stars: ✭ 41,584 (+47154.55%)
Mutual labels:  serverless, azure-functions
Guide
Serverless Guide - An open-source definitive guide to serverless architectures.
Stars: ✭ 421 (+378.41%)
Mutual labels:  serverless, azure-functions
25 Days Of Serverless
Repository responsible for 25 days of Serverless challenges
Stars: ✭ 400 (+354.55%)
Mutual labels:  serverless, azure-functions
Serverlesslibrary
Source code for the Azure Serverless Community Library
Stars: ✭ 119 (+35.23%)
Mutual labels:  serverless, azure-functions
Functions Csharp Eventhub Ordered Processing
Example of processing events in order with the Azure Functions Event Hubs trigger
Stars: ✭ 60 (-31.82%)
Mutual labels:  serverless, azure-functions
Heroes Angular Serverless
TypeScript Node/Express 👉TypeScript Serverless ➕Angular
Stars: ✭ 119 (+35.23%)
Mutual labels:  serverless, azure-functions
Azure Function Express
⚡️Allows Express.js usage with Azure Functions
Stars: ✭ 146 (+65.91%)
Mutual labels:  serverless, azure-functions
Serverless Url Shortener
Azure Function for a URL shortening website. Uses serverless functions, Azure Table Storage and Application Insights.
Stars: ✭ 113 (+28.41%)
Mutual labels:  serverless, azure-functions
Batch Shipyard
Simplify HPC and Batch workloads on Azure
Stars: ✭ 240 (+172.73%)
Mutual labels:  serverless, azure-functions
Serverless Microservices Reference Architecture
This reference architecture walks you through the decision-making process involved in designing, developing, and delivering a serverless application using a microservices architecture through hands-on instructions for configuring and deploying all of the architecture's components along the way. The goal is to provide practical hands-on experience in working with several Azure services and the technologies that effectively use them in a cohesive and unified way to build a serverless-based microservices architecture.
Stars: ✭ 270 (+206.82%)
Mutual labels:  serverless, azure-functions
Azure Functions Billing
Azure Functions v2 with .NET Core - billing in serverless architecture.
Stars: ✭ 49 (-44.32%)
Mutual labels:  serverless, azure-functions
Serverless Graphql Workshop
GraphQL and Serverless workshop
Stars: ✭ 70 (-20.45%)
Mutual labels:  serverless, azure-functions
Docker In Aws Lambda
Run Docker containers in AWS Lambda
Stars: ✭ 82 (-6.82%)
Mutual labels:  serverless

AzureFunctionsIntroduction

This is Sample project for Azure Functions. May this repository help you understand Azure Functions better.

I strongly recommend you to use v2 samples. v1 and csx are limited and obsolated.

What you can know

Please refer v2/.

More Reference

Reference Description
Blog post - tech.guitarrapc.com Blog post for AzureFuncitons by repository owner.
Azure/Azure-Functions AzureFunctions official repo. You may find where to report Issue, Feature Requests, Questions and Help.
Microsoft Azure WebJobs SDK Quick Reference Web Job SDK cheat sheet.

Precompiled functions reference

Refer many samples and demo.

https://github.com/Azure/Azure-Functions/wiki/Samples-and-content

Following additional tips will be useful for first step.

Description Screenshot
VS2017 Update3 and higher is required for v2.
Use v2 precompile function when you want to gain more faster execution and IDE compile, debug benefits.
Unfortunately .csx is not yet match friendly for VS Debugging. It will not detect compile error and less intellisense at all.
Therefore you will find .csx will cause compile error on Function App portal so often. If you feel it reduce your efficiency, then use precompile instead.
There are several way for local debug with post/get request, LinqPad, PowerShell, curl and others. I use PostMan Chrome extensions heavily when local debugging and remote debugging.

Recommend Azure Functions settings for stability and efficiency

These settings are my recommendation with using AzureFunctions.

Description Screenshot
Use zipdeploy integration with Run From Package to prove deploy atomic. PackageDeploy offers blue/green whole function deployment.
In other words WebDeploy, ZipDeployment will not remove old name functions.
You should consider using package deploy as possible as you can, and zip deploy is good PUSH Deploy option.
Announcing zipdeploy integration with Run From Package #110
Concider to select Dynamic Service Plan if possible.
This will bring you best cost efficiency and scalability.
Keep your Azure Functions Runtime version up-to-date. Actually there's no meaning concider downtime because apply will be done in just a seconds.
Keep Function App Platform 32bit (don't change to 64bit)
Do not run out memory, add Dynamic Memory if needed! Default 128MB will be run out easiry. Upgrade to 256MB or higher as your app requires.
Dynamic Plan pricing is relates to Memory size, but less meanful to concider.
AzureFunctions pricing is here.
Make sure your functions memory comsumptions will be less than 1536MB. This is limiation of Dynamic Service Plan.
In case you exceed 1536MB there's 2 options.
- Divide to separate functions.
- Combine all functions to single App Service Plan.
Use AppSettings to store secret values. This eliminate sensitive value in the source code.
You can load it with both System.Environment.GetEnvironmentVariable("Key") or System.Configuration.ConfigurationManager.AppSettings["Key"].
C# sample with screenShot: GetEnvironmentVariable("Secret_Value") or ConfigurationManager.AppSettings["Secret_Value"];
See C# Dev Samples for more details
appsettings.json is deprecated, use local.settings.json instead.
Fetch AppSettings on Remote Azure to local dev install npm i -g azure-functions-cli, login func azure login, select subscription func azure subscriptions list, list functionapp ``func azure functionapp list, then fetch to localfunc azure functionapp fetch-app-settings AzureFunctionsIntroduction`. rename to local.settings.json and now all variables are fetched to local as like remote.
Use ConfigurationManager if possible. ConfigurationManager is rather better for above fetch approatch, it can dectypt fetched encrypt data. ConfigurationManagerHelper will improve ConfigurationManager mutch friendly.
Set AzureWebJobsStorage for Timer Triggers or others.
Enable Managed Service Identity when using KeyVault or access to other azure resource. Then add AccessPolicy of KeyVault. But still cannot debug from local. Use Remote Debug.

Not Recommend

There's are possible but I never recommend. These settings will bring complexity.

Description Screenshot
Don't use v1 from now. v2 is far more recommended.
Default TimeZone is UTC, but you can use LocalTime zone with WEBSITE_TIME_ZONE into Application Settings.
You can obtain all timezone string with System.TimeZoneInfo.GetSystemTimeZones()
Detail is here : Changing the server time zone on Azure Web Apps
To keep Deployment simplicity, I never recommend mix up Precompile functions and .csx functions.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].