SlideShare a Scribd company logo
AZURE WEB FUNCTIONS
LITTLE BITES OF SERVICES
WHO AM I
AND WHY
SHOULD YOU
CARE?
• Aaron Petry
• Principle Consultant for Improving
• 20+ years of development experience
• Over 15 in the .Net stack
• I’ve been using Azure Web Functions for 2
years
• Aaron.petry@improving.com
DISCLAIMER
• Microsoft has around 140,000 people.
• They’ve invested heavily in Azure overall, and have at least
hundreds working only on Azure.
• There is a team devoted specifically to Azure Web Functions.
• About a month before this presentation, they released a whole
new feature-set, including IOC. I will touch on that briefly, but it’s
necessarily not something I’ve had time to dive deeply into.
• Your mileage may vary, consult local conditions, all terms warnings
apply.
WHAT ARE AZURE WEB
FUNCTIONS?
WHAT IS “SERVERLESS” FOR THAT MATTER?
WHAT ARE AZURE WEB
FUNCTIONS?
“Azure Functions is a serverless compute
service that enables you to run code on-
demand without having to explicitly
provision or manage infrastructure.”
– Microsoft Azure Functions
Documentation
WAIT! I CAME HERE TO LEARN ABOUT SERVERLESS
FUNCTIONS!
• First, what do you mean by serverlerss? What is serverless?
• The worst description of anything in computing. Maybe.
• “Serverless” really means platform as a service.
• Azure web functions are not “serverless.” They are Function as a Service.
• “Serverless” really means you run your application without managing
infrastructure.
• If you’re going through https://portal.azure.com, you’re already “serverless!”
A BRIEF HISTORY OF
COMPUTER APPLICATION
DESIGN
• The server on site.
• The Virtual Machine.
• The hosted application.
• The Cloud!
• Everything As A Service!
WAIT! SO IS
ALL OF THIS
JUST A
MARKETING
TRICK!?
•No. The names are marketing.
•The advantages are real.
•Money just means that something
is more likely to survive.
SO, ARE YOU FINALLY GOING TO ANSWER THE
QUESTION?
• What are Azure Web Functions? Right.
• Function as a Service is a way of providing discrete computing actions
triggered in response to events or HTTP requests without managing
infrastructure.
• If you’ve ever used IFTTT, then you get the idea already.
WHY WOULD ANYONE
USE AZURE WEB
FUNCTIONS?
USE A WEB FUNCTION IN RESPONSE TO…
Queues Graph API Blob storage Timed events Service bus HTTP Requests
AND GET INFORMATION FROM…
Blob storage Cosmos DB Microsoft
Graph
SignalR Table storage Mobile Apps*
*Only for Azure Web Functions version 1.1
AND OUTPUT TO…
Blob storage Cosmos DB Event Hubs HTTP/Web
hooks
Graph API Queue
Storage
OR OUTPUT TO…
Notification
Hub*
Mobile Apps* Send Grid Service Bus SignalR Table Storage Twilio
*Only for Azure Web Functions version 1.x
WAIT A MINUTE!!!
MAYBE SOME EXAMPLES?
• Suppose you want to watch a message queue, look up contact information
based on the object added, and send a reminder when a message is added
to the queue.
Watch a
Queue
Blob storage Twilio
OR…
• Maybe you want to have a system to see who’s logged into the office and
available? You can watch GraphAPI events for the log-in and log-out, and
then update a dashboard.
Graph API SignalR
THE CLASSIC HELLO WORLD EXAMPLE
BUT NONE OF
THAT IS WHAT
YOU WANT
TO DO?
• Bindings are the easiest thing to do, and you
will need some sort of input binding.
• If you need to read from something not
listed, you can.
• If you need to have some action taken that
isn’t obvious from the list of output bindings,
that’s possible too.
SO HOW DO YOU
DEVELOP AZURE WEB
FUNCTIONS?
YOU CAN
DEVELOP AND
TEST LOCALLY!
• Even though they’ve got “Azure” and “Web”
in the name, you can develop and test your
functions locally.
• Use the Dev tool you want:
• Visual Stuido? Of course.
• Maven? Apparently yes, but I won’t cover it.
• VS Code? Yep.
• Anything you want via the command line? You
got it.
VISUAL STUDIO
• Works for Web Functions written in C#.
• Makes a .dll that gets uploaded to Azure.
• Probably the easiest way to do this.
• You can also use other DevOps deployment tools.
HERE’S HOW TO
START
• Make a new project and select
Azure Function.
• Set up your local storage
emulation.
• Pick whatever trigger you want
to use.
Azure web functions little bites of services
GREAT. DO I NEED A NEW PROJECT FOR EVERY
FUNCTION?
• One public function per class, but you can have more functions in your project.
• To add another function is very easy.
• Right click the project, pick “Add Azure Function” and choose your trigger.
• Connection strings and the like get saved in the Environment Variables for your
function.
Azure web functions little bites of services
I WANT TO DO OUTPUT BINDING
HOW DOES THE BINDING KNOW WHAT IT’S
WRITING TO?
• This is the function.json file that is
created for that other function.
• Edit it at the Azure portal.
• Or edit locally.
• This is what Azure reads to
understand how to use your
function.
SO WHAT DIDN’T I COVER?
• IOC in Azure Web Functions
• Dynamic/Runtime bindings (IBinder and BlobAttribute)
• Using Entity Framework in your function
• The difference between 1.x and 2.x
• Security
USEFUL REFERENCES FOR YOU
• In making this presentation I referenced a number of sources of information:
• https://jhaleyfiles2016.blob.core.windows.net/public/Azure%20WebJobs%20SDK%20
Cheat%20Sheet%202014.pdf
• https://docs.microsoft.com/en-us/azure/azure-functions/
QUESTIONS?

More Related Content

PPTX
Azure functions
PPTX
Serverless with Azure Functions
PPTX
Azure Functions Real World Examples
PDF
Make Data Smart Again 2018 - Building a Smart Security Camera with Raspberry ...
PPTX
Going Serverless with Azure Functions
PPTX
Azure serverless architectures
PPTX
Devcon 2018 118
PDF
Ryan Brown - Open Community
Azure functions
Serverless with Azure Functions
Azure Functions Real World Examples
Make Data Smart Again 2018 - Building a Smart Security Camera with Raspberry ...
Going Serverless with Azure Functions
Azure serverless architectures
Devcon 2018 118
Ryan Brown - Open Community

What's hot (18)

PPTX
Serverless Application Development with Azure
ODP
Deploying your application on open stack using bosh presentation
PDF
10 Must-Use Components for Your Mobile Apps, James Clancey
PDF
Colorado Cloud Foundry Meeting
PPTX
Riga Dev Days: Building a Smart Security Camera with Raspberry Pi Zero, Node....
PDF
Social Sharing With IFTTT (If This Then That)
PDF
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
PPTX
Azure Functions @ global azure day 2017
PPTX
GeeCon 2017 : Building a Smart Security Camera with Raspberry Pi Zero, Node.j...
PDF
Serverless computing con Azure Functions
PPTX
Containerize all the things!
PDF
Lambdaless and AWS CDK
PDF
Making Sense of Serverless Computing
PDF
Building Composable Serverless Apps with IOpipe
PPTX
MeteorJS Session
PDF
NLUUG print conference May 26 2016
PPTX
Sherlock Homepage - A detective story about running large web services (VISUG...
PDF
1. Let's study web-development
Serverless Application Development with Azure
Deploying your application on open stack using bosh presentation
10 Must-Use Components for Your Mobile Apps, James Clancey
Colorado Cloud Foundry Meeting
Riga Dev Days: Building a Smart Security Camera with Raspberry Pi Zero, Node....
Social Sharing With IFTTT (If This Then That)
Deploying and Scaling Your First Cloud Application with Amazon Lightsail
Azure Functions @ global azure day 2017
GeeCon 2017 : Building a Smart Security Camera with Raspberry Pi Zero, Node.j...
Serverless computing con Azure Functions
Containerize all the things!
Lambdaless and AWS CDK
Making Sense of Serverless Computing
Building Composable Serverless Apps with IOpipe
MeteorJS Session
NLUUG print conference May 26 2016
Sherlock Homepage - A detective story about running large web services (VISUG...
1. Let's study web-development
Ad

Similar to Azure web functions little bites of services (20)

PPTX
Vincent biret azure functions and flow (toronto)
PPTX
Vincent biret azure functions and flow (ottawa)
PPTX
Introduction to Azure Functions
PPTX
SPS calgary 2017 introduction to azure functions microsoft flow
PDF
Introduction to Microsoft Flow and Azure Functions
PPTX
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
PPTX
Building API in the cloud using Azure Functions
PPTX
Developing Azure Functions for Flow and Nintex SPS SD 2018
PPTX
Developing Azure Functions as custom connectors for Flow and Nintex
PDF
Serverless API with Azure Functions
PDF
Web jobs, Azure Functions and Serverless Computing
PPTX
Era of server less computing final
PPTX
Play with azure functions
PPTX
Getting started with development in azure
PPTX
Era of server less computing
PPTX
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
PPTX
Azure Functions in Action #OrlandoCC
PPTX
Azure Functions in Action #CodePaLOUsa
PDF
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
PDF
Serverless Computing with Azure
Vincent biret azure functions and flow (toronto)
Vincent biret azure functions and flow (ottawa)
Introduction to Azure Functions
SPS calgary 2017 introduction to azure functions microsoft flow
Introduction to Microsoft Flow and Azure Functions
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
Building API in the cloud using Azure Functions
Developing Azure Functions for Flow and Nintex SPS SD 2018
Developing Azure Functions as custom connectors for Flow and Nintex
Serverless API with Azure Functions
Web jobs, Azure Functions and Serverless Computing
Era of server less computing final
Play with azure functions
Getting started with development in azure
Era of server less computing
Integrate Applications into IBM Connections Cloud and On Premises (AD 1632)
Azure Functions in Action #OrlandoCC
Azure Functions in Action #CodePaLOUsa
Building CLR/H Registration Site with ASP.NET MVC4 and EF4CodeFirst
Serverless Computing with Azure
Ad

Recently uploaded (20)

PPTX
Tartificialntelligence_presentation.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Getting Started with Data Integration: FME Form 101
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Spectral efficient network and resource selection model in 5G networks
Tartificialntelligence_presentation.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
NewMind AI Weekly Chronicles - August'25-Week II
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Getting Started with Data Integration: FME Form 101
gpt5_lecture_notes_comprehensive_20250812015547.pdf
20250228 LYD VKU AI Blended-Learning.pptx
MIND Revenue Release Quarter 2 2025 Press Release
A comparative analysis of optical character recognition models for extracting...
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Group 1 Presentation -Planning and Decision Making .pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf
1. Introduction to Computer Programming.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
SOPHOS-XG Firewall Administrator PPT.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectral efficient network and resource selection model in 5G networks

Azure web functions little bites of services

  • 1. AZURE WEB FUNCTIONS LITTLE BITES OF SERVICES
  • 2. WHO AM I AND WHY SHOULD YOU CARE? • Aaron Petry • Principle Consultant for Improving • 20+ years of development experience • Over 15 in the .Net stack • I’ve been using Azure Web Functions for 2 years • [email protected]
  • 3. DISCLAIMER • Microsoft has around 140,000 people. • They’ve invested heavily in Azure overall, and have at least hundreds working only on Azure. • There is a team devoted specifically to Azure Web Functions. • About a month before this presentation, they released a whole new feature-set, including IOC. I will touch on that briefly, but it’s necessarily not something I’ve had time to dive deeply into. • Your mileage may vary, consult local conditions, all terms warnings apply.
  • 4. WHAT ARE AZURE WEB FUNCTIONS? WHAT IS “SERVERLESS” FOR THAT MATTER?
  • 5. WHAT ARE AZURE WEB FUNCTIONS? “Azure Functions is a serverless compute service that enables you to run code on- demand without having to explicitly provision or manage infrastructure.” – Microsoft Azure Functions Documentation
  • 6. WAIT! I CAME HERE TO LEARN ABOUT SERVERLESS FUNCTIONS! • First, what do you mean by serverlerss? What is serverless? • The worst description of anything in computing. Maybe. • “Serverless” really means platform as a service. • Azure web functions are not “serverless.” They are Function as a Service. • “Serverless” really means you run your application without managing infrastructure. • If you’re going through https://portal.azure.com, you’re already “serverless!”
  • 7. A BRIEF HISTORY OF COMPUTER APPLICATION DESIGN • The server on site. • The Virtual Machine. • The hosted application. • The Cloud! • Everything As A Service!
  • 8. WAIT! SO IS ALL OF THIS JUST A MARKETING TRICK!? •No. The names are marketing. •The advantages are real. •Money just means that something is more likely to survive.
  • 9. SO, ARE YOU FINALLY GOING TO ANSWER THE QUESTION? • What are Azure Web Functions? Right. • Function as a Service is a way of providing discrete computing actions triggered in response to events or HTTP requests without managing infrastructure. • If you’ve ever used IFTTT, then you get the idea already.
  • 10. WHY WOULD ANYONE USE AZURE WEB FUNCTIONS?
  • 11. USE A WEB FUNCTION IN RESPONSE TO… Queues Graph API Blob storage Timed events Service bus HTTP Requests
  • 12. AND GET INFORMATION FROM… Blob storage Cosmos DB Microsoft Graph SignalR Table storage Mobile Apps* *Only for Azure Web Functions version 1.1
  • 13. AND OUTPUT TO… Blob storage Cosmos DB Event Hubs HTTP/Web hooks Graph API Queue Storage
  • 14. OR OUTPUT TO… Notification Hub* Mobile Apps* Send Grid Service Bus SignalR Table Storage Twilio *Only for Azure Web Functions version 1.x
  • 16. MAYBE SOME EXAMPLES? • Suppose you want to watch a message queue, look up contact information based on the object added, and send a reminder when a message is added to the queue. Watch a Queue Blob storage Twilio
  • 17. OR… • Maybe you want to have a system to see who’s logged into the office and available? You can watch GraphAPI events for the log-in and log-out, and then update a dashboard. Graph API SignalR
  • 18. THE CLASSIC HELLO WORLD EXAMPLE
  • 19. BUT NONE OF THAT IS WHAT YOU WANT TO DO? • Bindings are the easiest thing to do, and you will need some sort of input binding. • If you need to read from something not listed, you can. • If you need to have some action taken that isn’t obvious from the list of output bindings, that’s possible too.
  • 20. SO HOW DO YOU DEVELOP AZURE WEB FUNCTIONS?
  • 21. YOU CAN DEVELOP AND TEST LOCALLY! • Even though they’ve got “Azure” and “Web” in the name, you can develop and test your functions locally. • Use the Dev tool you want: • Visual Stuido? Of course. • Maven? Apparently yes, but I won’t cover it. • VS Code? Yep. • Anything you want via the command line? You got it.
  • 22. VISUAL STUDIO • Works for Web Functions written in C#. • Makes a .dll that gets uploaded to Azure. • Probably the easiest way to do this. • You can also use other DevOps deployment tools.
  • 23. HERE’S HOW TO START • Make a new project and select Azure Function. • Set up your local storage emulation. • Pick whatever trigger you want to use.
  • 25. GREAT. DO I NEED A NEW PROJECT FOR EVERY FUNCTION? • One public function per class, but you can have more functions in your project. • To add another function is very easy. • Right click the project, pick “Add Azure Function” and choose your trigger. • Connection strings and the like get saved in the Environment Variables for your function.
  • 27. I WANT TO DO OUTPUT BINDING
  • 28. HOW DOES THE BINDING KNOW WHAT IT’S WRITING TO? • This is the function.json file that is created for that other function. • Edit it at the Azure portal. • Or edit locally. • This is what Azure reads to understand how to use your function.
  • 29. SO WHAT DIDN’T I COVER? • IOC in Azure Web Functions • Dynamic/Runtime bindings (IBinder and BlobAttribute) • Using Entity Framework in your function • The difference between 1.x and 2.x • Security
  • 30. USEFUL REFERENCES FOR YOU • In making this presentation I referenced a number of sources of information: • https://jhaleyfiles2016.blob.core.windows.net/public/Azure%20WebJobs%20SDK%20 Cheat%20Sheet%202014.pdf • https://docs.microsoft.com/en-us/azure/azure-functions/