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

PDF
Progressive Web Apps
PPTX
Azure Cloud Services
PPTX
Apps for SharePoint
PDF
Single page applications with backbone js
PDF
Single Page Apps
PPTX
Tokyo Azure Meetup #14 - Azure Functions Proxies
PPTX
Azure Functions & Serverless Computing
PPTX
Spicing up SharePoint web parts
Progressive Web Apps
Azure Cloud Services
Apps for SharePoint
Single page applications with backbone js
Single Page Apps
Tokyo Azure Meetup #14 - Azure Functions Proxies
Azure Functions & Serverless Computing
Spicing up SharePoint web parts

What's hot (20)

PDF
Single page application
PPTX
Code First with Serverless Azure Functions
PPTX
Chris OBrien - Weaving Enterprise Solutions into Office Products
PPTX
Single page application
PDF
Web Development Competency Building
PDF
APIdays San Francisco, 06/22/2013
PPTX
2011.05.31 super mondays-servicebus-demo
PPTX
Going serverless
PPT
sell idea
PPTX
PPTX
Chris O'Brien - Modern SharePoint development: techniques for moving code off...
PPT
Spring In Practice
PPTX
Build a SharePoint website in 60 minutes
PPTX
Building high scale, highly available websites in SharePoint 2010
PPT
Introduction to the Client OM in SharePoint 2010
PPTX
MVC-3 Vs Webform
PDF
BaaS Comparison - iOS.mn
PPTX
Building SharePoint Single Page Applications Using AngularJS
PPTX
Anypoint connector basics
PPTX
Building Modern Web Applications with ASP.NET5
Single page application
Code First with Serverless Azure Functions
Chris OBrien - Weaving Enterprise Solutions into Office Products
Single page application
Web Development Competency Building
APIdays San Francisco, 06/22/2013
2011.05.31 super mondays-servicebus-demo
Going serverless
sell idea
Chris O'Brien - Modern SharePoint development: techniques for moving code off...
Spring In Practice
Build a SharePoint website in 60 minutes
Building high scale, highly available websites in SharePoint 2010
Introduction to the Client OM in SharePoint 2010
MVC-3 Vs Webform
BaaS Comparison - iOS.mn
Building SharePoint Single Page Applications Using AngularJS
Anypoint connector basics
Building Modern Web Applications with ASP.NET5
Ad

Similar to MSDN Sessions 032817 - Azure Functions (20)

PPTX
Azure functions: Build apps faster with serverless architecture (March 2018)
PPTX
Serverless with Azure Functions
PPTX
Go Serverless with Cosmos DB, Azure Functions and Blazor
PPTX
Serverless Application Development with Azure
PPTX
Durable Azure Functions
PPTX
Serverless on Azure with Functions
PPTX
Serverless architecture with Azure
PDF
Getting Started with Serverless Architectures using Azure Functions
PPTX
Introduction to Azure Functions
PPTX
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
PPTX
Azure functions - Build apps faster with serverless architecture
PDF
Azure functions
PPTX
#SpFestSea azr203 Azure functions lessons learned
PPTX
Introduction to serverless compute with azure functions
PPTX
From Zero to Serverless
PPTX
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
PPTX
From Zero to Serverless (DogFoodCon 2018)
PPTX
From Zero to Serverless (CoderCruise 2018)
PDF
Serverless API with Azure Functions
PPTX
Azure Functions Real World Examples
Azure functions: Build apps faster with serverless architecture (March 2018)
Serverless with Azure Functions
Go Serverless with Cosmos DB, Azure Functions and Blazor
Serverless Application Development with Azure
Durable Azure Functions
Serverless on Azure with Functions
Serverless architecture with Azure
Getting Started with Serverless Architectures using Azure Functions
Introduction to Azure Functions
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Azure functions - Build apps faster with serverless architecture
Azure functions
#SpFestSea azr203 Azure functions lessons learned
Introduction to serverless compute with azure functions
From Zero to Serverless
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
From Zero to Serverless (DogFoodCon 2018)
From Zero to Serverless (CoderCruise 2018)
Serverless API with Azure Functions
Azure Functions Real World Examples
Ad

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
cuic standard and advanced reporting.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
Teaching material agriculture food technology
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Empathic Computing: Creating Shared Understanding
PDF
Electronic commerce courselecture one. Pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Network Security Unit 5.pdf for BCA BBA.
cuic standard and advanced reporting.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Teaching material agriculture food technology
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Understanding_Digital_Forensics_Presentation.pptx
Encapsulation_ Review paper, used for researhc scholars
Empathic Computing: Creating Shared Understanding
Electronic commerce courselecture one. Pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Per capita expenditure prediction using model stacking based on satellite ima...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Monthly Chronicles - July 2025
Reach Out and Touch Someone: Haptics and Empathic Computing
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...

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