SlideShare a Scribd company logo
MSDN Sessions 032817 - Azure Functions
Azure Functions
Serverless in the Microsoft world
ServerlessApplication Architectures
• Refers to applications with architectures that depend significantly
on third-party services
• Backend as a Service (BaaS) - eliminates repeated stack development
• User management, social integration, push messaging
• Mobile integration, data sync, application storage
• Opinionated approach to serverless
• Follow provider’s API
• Functions as a Service (FaaS) offerings such as AWS Lambda, Cloud
Functions for Firebase, Azure Functions
Backend as a Service
var user = new User(username, password);
await app.Users().CreateAsync(user);
var product = await app.Data<Item>().GetById(10);
var pages = await app.Search(“Pages”,
SearchType.Contains, searchTerm);
Function as a Service
• Triggered by events such as a schedule, an HTTP trigger, manual
calls, among others
• Ephemeral – short lived. Function executes, function exits.
• Completely custom code
• Integrate with any 3rd party dependency, even BaaS
• Stateless – each execution should be designed independent from
each other
A non-serverless architecture
Most of the logic lives on the server application
Client / Browser
(Razor Views)
Server Application
(ASP.NET MVC)
Database
(SQL / NoSQL)
3rd
Party API
3rd
Party API
Moving to a serverless architecture
#1
Authentication
service moved to a
Backend-as-a-Service
such as Auth0
Client calls BaaS
directly via Auth0 JS
SDK
Client / Browser
(Single Page App)
Configuration Store
(SQL / NoSQL)
Authentication Service
Auth0
#1
Blog Database
AWS DynamoDB
#2
Admin/Maintenance
Azure Functions
Page Editing
Azure Functions
#3
#4
#4
Moving to a serverless architecture
#2
Allow client direct
access to a subset of
our data, with a read-
only security profile
on public data
In this case, client
directly queries AWS
DynamoDB
Client / Browser
(Single Page App)
Configuration Store
(SQL / NoSQL)
Authentication Service
Auth0
#1
Blog Database
AWS DynamoDB
#2
Admin/Maintenance
Azure Functions
Page Editing
Azure Functions
#3
#4
#4
Moving to a serverless architecture
#3
Call different Azure
Functions for
maintenance and
page editing
Azure Functions write
to their respective
data stores
Client / Browser
(Single Page App)
Configuration Store
(SQL / NoSQL)
Authentication Service
Auth0
#1
Blog Database
AWS DynamoDB
#2
Admin/Maintenance
Azure Functions
Page Editing
Azure Functions
#3
#4
#4
Azure Functions
What it’s really like
Use C# syntax (or node.js among others)
• Non-opinionated code – no coding to a framework vs BaaS
• Depending on function, just a slight change to ‘main’ / ‘startup
code’ is necessary
• A lot of input and output triggers and bindings available
• Manual, timer
• Blob, tables, queues, service bus, event hubs
• HTTP, Webhooks
• Output to SMS, another queue, blob, push notification
Pros and Cons
• Based on App Services / Web Jobs
• Code can be written/uploaded on the portal, continuous
deployment via VSTS is available (Git/TFS/etc.)
• Logging and real-time streams available in dashboard
• Debug using VS Tools for Azure Functions (Preview on VS 2015)
• Still under heavy development, still evolving and changing
• Incomplete intellisense for Dynamic C#
• Missing fine-grained controls/settings
Demo Time!
…and some notes afterwards
Notes
• Dynamic C#/ScriptCs - dynamically compiled on execution
• You can also run pre-compiled code
• You can load external dlls and other .csx files via #load
• You can load pre-included libraries via #r
• You can include NuGet packages via project.json and #r
• You can contribute – bug reports, pull requests – fast response
Thank you!
marc@clinkitsolutions.com

More Related Content

What's hot (20)

PDF
Single page application
Jeremy Lee
 
PPTX
Code First with Serverless Azure Functions
Jeremy Likness
 
PPTX
Chris OBrien - Weaving Enterprise Solutions into Office Products
Chris O'Brien
 
PPTX
Single page application
Ismaeel Enjreny
 
PDF
Web Development Competency Building
Boris Arial
 
PDF
APIdays San Francisco, 06/22/2013
Jerome Louvel
 
PPTX
2011.05.31 super mondays-servicebus-demo
daveingham
 
PPTX
Going serverless
Ciprian Morosanu
 
PPT
sell idea
Rashmi Joshi
 
PPTX
AngularJs
saeed shargi ghazani
 
PPTX
Chris O'Brien - Modern SharePoint development: techniques for moving code off...
Chris O'Brien
 
PPT
Spring In Practice
lakkarajusaroop
 
PPTX
Build a SharePoint website in 60 minutes
Ben Robb
 
PPTX
Building high scale, highly available websites in SharePoint 2010
Ben Robb
 
PPT
Introduction to the Client OM in SharePoint 2010
Ben Robb
 
PPTX
MVC-3 Vs Webform
Jitendra Soni
 
PDF
BaaS Comparison - iOS.mn
pyro2927
 
PPTX
Building SharePoint Single Page Applications Using AngularJS
SharePointInstitute
 
PPTX
Anypoint connector basics
Ramakrishna kapa
 
PPTX
Building Modern Web Applications with ASP.NET5
Brij Mishra
 
Single page application
Jeremy Lee
 
Code First with Serverless Azure Functions
Jeremy Likness
 
Chris OBrien - Weaving Enterprise Solutions into Office Products
Chris O'Brien
 
Single page application
Ismaeel Enjreny
 
Web Development Competency Building
Boris Arial
 
APIdays San Francisco, 06/22/2013
Jerome Louvel
 
2011.05.31 super mondays-servicebus-demo
daveingham
 
Going serverless
Ciprian Morosanu
 
sell idea
Rashmi Joshi
 
Chris O'Brien - Modern SharePoint development: techniques for moving code off...
Chris O'Brien
 
Spring In Practice
lakkarajusaroop
 
Build a SharePoint website in 60 minutes
Ben Robb
 
Building high scale, highly available websites in SharePoint 2010
Ben Robb
 
Introduction to the Client OM in SharePoint 2010
Ben Robb
 
MVC-3 Vs Webform
Jitendra Soni
 
BaaS Comparison - iOS.mn
pyro2927
 
Building SharePoint Single Page Applications Using AngularJS
SharePointInstitute
 
Anypoint connector basics
Ramakrishna kapa
 
Building Modern Web Applications with ASP.NET5
Brij Mishra
 

Similar to MSDN Sessions 032817 - Azure Functions (20)

PPTX
Azure functions: Build apps faster with serverless architecture (March 2018)
Callon Campbell
 
PPTX
Serverless with Azure Functions
Andreas Willich
 
PPTX
Go Serverless with Cosmos DB, Azure Functions and Blazor
Timothy McAliley
 
PPTX
Serverless Application Development with Azure
Callon Campbell
 
PPTX
Durable Azure Functions
Pushkar Saraf
 
PPTX
Serverless on Azure with Functions
Christos Matskas
 
PPTX
Serverless architecture with Azure
Christos Matskas
 
PDF
Getting Started with Serverless Architectures using Azure Functions
Marc Duiker
 
PPTX
Introduction to Azure Functions
Callon Campbell
 
PPTX
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup
 
PPTX
Azure functions - Build apps faster with serverless architecture
Callon Campbell
 
PDF
Azure functions
Rajesh Kolla
 
PPTX
#SpFestSea azr203 Azure functions lessons learned
Vincent Biret
 
PPTX
Introduction to serverless compute with azure functions
Callon Campbell
 
PPTX
From Zero to Serverless
Chad Green
 
PPTX
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Kasun Kodagoda
 
PPTX
From Zero to Serverless (DogFoodCon 2018)
Chad Green
 
PPTX
From Zero to Serverless (CoderCruise 2018)
Chad Green
 
PDF
Serverless API with Azure Functions
Analben Mehta
 
PPTX
Azure Functions Real World Examples
Yochay Kiriaty
 
Azure functions: Build apps faster with serverless architecture (March 2018)
Callon Campbell
 
Serverless with Azure Functions
Andreas Willich
 
Go Serverless with Cosmos DB, Azure Functions and Blazor
Timothy McAliley
 
Serverless Application Development with Azure
Callon Campbell
 
Durable Azure Functions
Pushkar Saraf
 
Serverless on Azure with Functions
Christos Matskas
 
Serverless architecture with Azure
Christos Matskas
 
Getting Started with Serverless Architectures using Azure Functions
Marc Duiker
 
Introduction to Azure Functions
Callon Campbell
 
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Tokyo Azure Meetup
 
Azure functions - Build apps faster with serverless architecture
Callon Campbell
 
Azure functions
Rajesh Kolla
 
#SpFestSea azr203 Azure functions lessons learned
Vincent Biret
 
Introduction to serverless compute with azure functions
Callon Campbell
 
From Zero to Serverless
Chad Green
 
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Kasun Kodagoda
 
From Zero to Serverless (DogFoodCon 2018)
Chad Green
 
From Zero to Serverless (CoderCruise 2018)
Chad Green
 
Serverless API with Azure Functions
Analben Mehta
 
Azure Functions Real World Examples
Yochay Kiriaty
 
Ad

Recently uploaded (20)

PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Ad

MSDN Sessions 032817 - Azure Functions

  • 2. Azure Functions Serverless in the Microsoft world
  • 3. ServerlessApplication Architectures • Refers to applications with architectures that depend significantly on third-party services • Backend as a Service (BaaS) - eliminates repeated stack development • User management, social integration, push messaging • Mobile integration, data sync, application storage • Opinionated approach to serverless • Follow provider’s API • Functions as a Service (FaaS) offerings such as AWS Lambda, Cloud Functions for Firebase, Azure Functions
  • 4. Backend as a Service var user = new User(username, password); await app.Users().CreateAsync(user); var product = await app.Data<Item>().GetById(10); var pages = await app.Search(“Pages”, SearchType.Contains, searchTerm);
  • 5. Function as a Service • Triggered by events such as a schedule, an HTTP trigger, manual calls, among others • Ephemeral – short lived. Function executes, function exits. • Completely custom code • Integrate with any 3rd party dependency, even BaaS • Stateless – each execution should be designed independent from each other
  • 6. A non-serverless architecture Most of the logic lives on the server application Client / Browser (Razor Views) Server Application (ASP.NET MVC) Database (SQL / NoSQL) 3rd Party API 3rd Party API
  • 7. Moving to a serverless architecture #1 Authentication service moved to a Backend-as-a-Service such as Auth0 Client calls BaaS directly via Auth0 JS SDK Client / Browser (Single Page App) Configuration Store (SQL / NoSQL) Authentication Service Auth0 #1 Blog Database AWS DynamoDB #2 Admin/Maintenance Azure Functions Page Editing Azure Functions #3 #4 #4
  • 8. Moving to a serverless architecture #2 Allow client direct access to a subset of our data, with a read- only security profile on public data In this case, client directly queries AWS DynamoDB Client / Browser (Single Page App) Configuration Store (SQL / NoSQL) Authentication Service Auth0 #1 Blog Database AWS DynamoDB #2 Admin/Maintenance Azure Functions Page Editing Azure Functions #3 #4 #4
  • 9. Moving to a serverless architecture #3 Call different Azure Functions for maintenance and page editing Azure Functions write to their respective data stores Client / Browser (Single Page App) Configuration Store (SQL / NoSQL) Authentication Service Auth0 #1 Blog Database AWS DynamoDB #2 Admin/Maintenance Azure Functions Page Editing Azure Functions #3 #4 #4
  • 11. Use C# syntax (or node.js among others) • Non-opinionated code – no coding to a framework vs BaaS • Depending on function, just a slight change to ‘main’ / ‘startup code’ is necessary • A lot of input and output triggers and bindings available • Manual, timer • Blob, tables, queues, service bus, event hubs • HTTP, Webhooks • Output to SMS, another queue, blob, push notification
  • 12. Pros and Cons • Based on App Services / Web Jobs • Code can be written/uploaded on the portal, continuous deployment via VSTS is available (Git/TFS/etc.) • Logging and real-time streams available in dashboard • Debug using VS Tools for Azure Functions (Preview on VS 2015) • Still under heavy development, still evolving and changing • Incomplete intellisense for Dynamic C# • Missing fine-grained controls/settings
  • 13. Demo Time! …and some notes afterwards
  • 14. Notes • Dynamic C#/ScriptCs - dynamically compiled on execution • You can also run pre-compiled code • You can load external dlls and other .csx files via #load • You can load pre-included libraries via #r • You can include NuGet packages via project.json and #r • You can contribute – bug reports, pull requests – fast response