Introduction to Azure Functions - Tutorial

Preview:

Citation preview

Sponsored & Brought to you by

Introduction to Azure Functions

Yochay Kiriati

http://www.twitter.com/yochayk

https://www.linkedin.com/in/yochaykiriaty

#Build2016

IntroducingAzure FunctionsYochay Kiriaty@yochaykProgram Manager Microsoft Azure

What is Azure Functions?Code Events +

dataAzure

Functions

Demo: hello world

Azure Functions

code outputinput

Supported bindingsType Service Trigger Input OutputSchedule Azure Functions ✔HTTP (REST or WebHook) Azure Functions ✔ ✔

Blob Storage Azure Storage ✔ ✔ ✔Queues Azure Storage ✔ ✔Tables Azure Storage ✔ ✔

Tables Azure Mobile Apps Easy Tables ✔ ✔

No-SQL DB Azure DocumentDB ✔ ✔Streams Azure Event Hubs ✔ ✔Push Notifications Azure Notification Hubs ✔

Demo: Triggers and Binding

New image resize requestFetch image from storageResize the imageStore the new image in storage

New image resize requestFetch image from storageResize the imageStore the new image in storage

Demo: Image Resize

Demo: Image OCR

Building for scale with App Service

Development• Languages and Framework• Superior DevOps• Self served• Something else

Apps

Web Apps

Mobile Apps

API Apps Functions

eCommerce Digital Global Presence LOB API / Services / ISVCustom Apps

App Service

Fully Managed Platform• Limitless/Auto • OS and Framework • Load balance• Something else

Enterprise Grade• Enterprise grade SLA• Secure and Compliance• On-Premise Connectivity• Something else

• 1st class support• Node/JavaScript• C#

• Experimental support• F#• Python• PHP• Batch• Bash• PowerShell

Supported Languages

• Runs on existing App Hosting plans• Run alongside Web, Mobile, and API Apps• Can deploy via existing App Service ARM APIs

• All the features of App Service• Continuous Deployment• Deployment Slots• Remote Debugging

• Run in your own isolated and dedicated environment• App Service Environment helps run dedicated App Services• Run inside of your own VNET, with your own frontend and firewall

Built around App Service

• Scaling up to a larger VM for more resources

• Scaling out as simple as a slider bar• Set up auto-scaling rules to handle

additional load while you’re asleep

Scaling on App Service

Built to scale

Servers when you want them…

Servers when you want them…

serverless when you don’t

The 0 case without dynamic compute

The 0 case with dynamic compute

0 to many with dynamic compute

Demo: API

Demo: API Hub – Files Connectors

Wrap Up

What’s NextTry Azure Functions @ https://functions.azure.com Try App Service @ https://tryappservice.azure.com Fork us @ https://github.com/azure/azure-webjobs-sdk-script

Contact me@yochaykyochay@microsoft.com https://blogs.msdn.microsoft.com/appserviceteam

Recommended