SlideShare a Scribd company logo
AZURE
FUNCTIONS
CLOUDIFICATION
WHAT TO EXPECT :
2
GET FAMILIAR WITH AZURE FUNCTIONS
PRICING MODEL
DEMO
MANAGEMENT, SECURITY AND PERFORMANCE
Copyright © 2017 AxEdge Consulting. All rights reserved.
3
AZURE FUNCTIONS
 Azure Functions is a serverless compute
service that enables you to run code on-
demand without having to explicitly provision or
manage infrastructure
 Functions provides a fully managed
compute platform with high reliability and
security.
• Manage your apps instead of infrastructure.
• Gain flexible scaling.
• Only pay for resources you use.
Copyright © 2017 AxEdge Consulting. All rights reserved.
AZURE FUNCTIONS - FEATURES
Copyright © 2017 AxEdge Consulting. All rights reserved.
Easily leverage Azure services and
software-as-a-service (SaaS)
offerings.
Pay only for the time spent
running your code depending
on
• Executions.
• Resource Consumption
Write functions using:
C#, F#, Node.js, Python, PHP,
batch, bash, or any executable.
• Protect HTTP-triggered functions with
OAuth provider.
• Managed Service Identity.
• RBAC
• Supports NuGet and NPM
CHOICE OF LANGUAGE SECURITY
SIMPLIFIED INTEGRATION PRICING
4
BRING YOU DEPENDENCIES
FLEXIBLE DEPLOYMENT
• Through Azure Portal.
• Set up continuous
integration and deploy your
code through
 GitHub
 Visual Studio Team
Services
AZURE FUNCTIONS ARCHITECTURE
Built on top of App Service and Webjobs SDK
SUPPORTED LANGUAGES
Copyright © 2017 AxEdge Consulting. All rights reserved. 6
Microsoft Confidential
TRIGGERS
7
 A trigger defines how a function is
invoked.
 A function must have exactly one trigger.
 Triggers have associated data, which is
usually the payload that triggered the
function.
 Direction of a trigger is always in.
INTEGRATIONS – OUTPUT/ INPUT BINDINGS
Copyright © 2017 AxEdge Consulting. All rights reserved. 8
COSMOS DB
AZURE SERVICE BUS
GITHUB
NOTIFICATION HUB
AZURE STORAGE
AZURE EVENT HUB
AZURE MOBILE TABLETS
SUPPORTED BINDINGS
TYPE SERVICE TRIGGER INPUT OUTPUT
Schedule Azure Functions ✔
HTTP (REST or webhook) Azure Functions ✔ ✔**
Blob Storage Azure Storage ✔ ✔ ✔
Events Azure Event Hubs ✔ ✔
Queues Azure Storage ✔ ✔
Queues and topics Azure Service Bus ✔ ✔
Storage tables Azure Storage ✔ ✔
SQL tables Azure Mobile Apps ✔ ✔
NoSQL DB Azure Cosmos DB ✔ ✔ ✔
Push Notifications Azure Notification Hubs ✔
Twilio SMS Text Twilio ✔
SendGrid email SendGrid ✔
Excel tables Microsoft Graph ✔ ✔
OneDrive files Microsoft Graph ✔ ✔
Outlook email Microsoft Graph ✔
Microsoft Graph events Microsoft Graph ✔ ✔ ✔
Auth tokens Microsoft Graph ✔
Copyright © 2017 AxEdge Consulting. All rights reserved. 9
AZURE FUNCTIONS
TECHNICAL CONCEPTS AND COMPONENTS
FUNCTION APP
 Comprised of one or more
individual functions that are
managed together by azure app
service.
 All of the functions in a function
app share the same pricing plan,
continuous deployment and
runtime version.
Copyright © 2017 AxEdge Consulting. All rights reserved. 10
RUNTIME
The runtime, or script host, is the
underlying webjobs SDK host
that
• listens for events
• gathers and sends data
• ultimately runs your code
To facilitate http triggers, there is
also a web host that is designed
to sit in front of the script host in
production scenarios.
Having two hosts helps to isolate
the script host from the front end
traffic managed by the web host
FUNCTION CODE
 A function is the primary concept
in Azure Functions.
• Write Code in a Language of
your choice.
• Save the code and configuration
files in the same folder.
Microsoft Confidential 11
CONSUMPTION PLAN
Copyright © 2017 AxEdge Consulting. All rights reserved. 12
Consumption plan – Pay as you go.
• Dynamic scaling based on the number of incoming requests.
• Pricing based on Resource consumption and Executions.
• Free grant of 1 million requests and 400000 GBs.
• Maximum execution time of 10 mins for a function.
• Max memory limit of 1.5 GB per instance of function host.
APP SERVICE PLAN
Copyright © 2017 AxEdge Consulting. All rights reserved. 13
App Service plan
• Function apps run on dedicated VMs on Basic, Standard, Premium, and Isolated SKUs.
• Azure function host is always running.
• Same as cost of VMs.
• Scale out using autoscaling.
Consider an App Service plan in the following cases:
 Existing, underutilized VMs that are already running other App Service instances.
 Function apps to run continuously, or nearly continuously.
 More CPU or memory .
 Run functions longer than the maximum execution time allowed on the Consumption plan (of 10 minutes).
 Require features that are only available on an App Service plan.
PERFORMANCE CONSIDERATIONS
Copyright © 2017 AxEdge Consulting. All rights reserved. 14
Avoid Long Running Functions
Functions should be stateless
and idempotent if possible.
Cross function communication
Write defensive functions
Use async code but avoid
blocking calls
Don't mix test and production
code in the same function app
SECURITY FEATURES
 Azure services integration is done with TLS encrypted connections (over port 443).
 Supports SSO.
 Integrated with managed service identity
 Can be integrated with azure active directory (AAD)
 Supports on premise secure token service (STS) such as active directory federation
services (adfs).
 Supports popular authentication protocols, such as oauth 2.0, openid connect, and SAML
2.0
 Can also configure function apps to use 3rd party login authentications like Facebook,
Google, Microsoft account and Twitter.
Copyright © 2017 AxEdge Consulting. All rights reserved. 15
MONITOR
Application Insights for monitoring functions.
 You can use application insights without any custom configuration, but
the default configuration can result in high volumes of data and can hit
data cap for app insights.
Azure functions logger includes:
Categories
 The category indicates which part of the runtime code or your function
code wrote the log.
Log levels
 The azure functions logger also includes a log level with every log
Real-time monitoring
Monitor log files from a command line
Monitor function app log files with PowerShell
Copyright © 2017 AxEdge Consulting. All rights reserved. 16
DURABLE FUNCTIONS
Copyright © 2017 AxEdge Consulting. All rights reserved. 17
FUNCTION CHAINING FAN-OUT/FAN-IN ASYNC HTTP APIS
STATEFUL SINGLETONS HUMAN INTERACTION
Copyright © 2018 AxEdge Consulting. All rights reserved. 18
Copyright © 2018 AxEdge Consulting. All rights reserved. 19

More Related Content

PPTX
Innovations of .NET and Azure (Recaps of Build 2017 selected sessions)
PPTX
Azure Big Picture
PPTX
Intro to docker and kubernetes
PPTX
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
PDF
Infrastructure as Code for Azure: ARM or Terraform?
PPTX
Infrastructure as Code on Azure - NET Conf CO v2018
PPTX
Henry been azure resource manager - inside out
PPTX
Azure Update, July 2016
Innovations of .NET and Azure (Recaps of Build 2017 selected sessions)
Azure Big Picture
Intro to docker and kubernetes
Tokyo Azure Meetup #7 - Introduction to Serverless Architectures with Azure F...
Infrastructure as Code for Azure: ARM or Terraform?
Infrastructure as Code on Azure - NET Conf CO v2018
Henry been azure resource manager - inside out
Azure Update, July 2016

What's hot (18)

PPTX
Infrastructure as Code on Azure - NET Conf AR v2018
PPTX
Intro to Azure Static Web Apps
PPTX
Azure Functions - Introduction
PDF
Azure web apps
PPTX
TechEvent Infrastructure as Code on Azure
PPTX
IaaS with ARM templates for Azure
PDF
Azure for AWS & GCP Pros: Which Azure services to use?
PDF
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
PDF
Serverless API with Azure Functions
PPTX
Azure functions
PDF
Serverless Stream Processing with Bill Bejeck
PPTX
Azure Service Fabric: The road ahead for microservices
PPTX
Running Splunk on AWS
PDF
[Serverless OpenHack Tokyo] Azure Serverless (English)
PPTX
Securing an Azure full-PaaS architecture - Data saturday #0001 Pordenone
PPTX
Azure Batch and MPI
PPTX
Azure Automation and Update Management
PPTX
Azure Web Apps Advanced Security
Infrastructure as Code on Azure - NET Conf AR v2018
Intro to Azure Static Web Apps
Azure Functions - Introduction
Azure web apps
TechEvent Infrastructure as Code on Azure
IaaS with ARM templates for Azure
Azure for AWS & GCP Pros: Which Azure services to use?
Azure Days 2019: Infrastructure as Code auf Azure (Jonas Wanninger & Daniel H...
Serverless API with Azure Functions
Azure functions
Serverless Stream Processing with Bill Bejeck
Azure Service Fabric: The road ahead for microservices
Running Splunk on AWS
[Serverless OpenHack Tokyo] Azure Serverless (English)
Securing an Azure full-PaaS architecture - Data saturday #0001 Pordenone
Azure Batch and MPI
Azure Automation and Update Management
Azure Web Apps Advanced Security
Ad

Similar to Azure Functions (20)

PPTX
Azure Functions.pptx
PPTX
Introduction to Azure Functions
PDF
Azure functions
PPTX
Scalable APIs with Azure Functions
PPTX
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
PPTX
Azure functions: Build apps faster with serverless architecture (March 2018)
PPTX
Azure Functions & Serverless Computing
PDF
[Struyf] Automate Your Tasks With Azure Functions
PPTX
#SPFestDC #Azure #Functions V2: What's new and getting started
PPTX
Azure functions: from a function to a whole application in 60 minutes
PPTX
Azure full
PPTX
#SPFestSea Introduction to #Azure #Functions v2
PPTX
#SpFestSea azr203 Azure functions lessons learned
PDF
O365Con18 - Automate your Tasks through Azure Functions - Elio Struyf
PPTX
Durable Azure Functions
PPTX
COB - Azure Functions for Office 365 developers
PPTX
Azure Functions 101
PPTX
JoTechies - Azure Functions Using c#
PPTX
Unleash the power of Serverless Computing
PPTX
Save Azure Cost
Azure Functions.pptx
Introduction to Azure Functions
Azure functions
Scalable APIs with Azure Functions
Going Serverless with Azure Functions #1 - Introduction to Azure Functions
Azure functions: Build apps faster with serverless architecture (March 2018)
Azure Functions & Serverless Computing
[Struyf] Automate Your Tasks With Azure Functions
#SPFestDC #Azure #Functions V2: What's new and getting started
Azure functions: from a function to a whole application in 60 minutes
Azure full
#SPFestSea Introduction to #Azure #Functions v2
#SpFestSea azr203 Azure functions lessons learned
O365Con18 - Automate your Tasks through Azure Functions - Elio Struyf
Durable Azure Functions
COB - Azure Functions for Office 365 developers
Azure Functions 101
JoTechies - Azure Functions Using c#
Unleash the power of Serverless Computing
Save Azure Cost
Ad

Recently uploaded (20)

PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Big Data Technologies - Introduction.pptx
PDF
Encapsulation theory and applications.pdf
PPTX
Cloud computing and distributed systems.
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
A comparative analysis of optical character recognition models for extracting...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Electronic commerce courselecture one. Pdf
Programs and apps: productivity, graphics, security and other tools
Encapsulation_ Review paper, used for researhc scholars
Big Data Technologies - Introduction.pptx
Encapsulation theory and applications.pdf
Cloud computing and distributed systems.
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Reach Out and Touch Someone: Haptics and Empathic Computing
Digital-Transformation-Roadmap-for-Companies.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Unlocking AI with Model Context Protocol (MCP)
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Approach and Philosophy of On baking technology
Review of recent advances in non-invasive hemoglobin estimation

Azure Functions

  • 2. WHAT TO EXPECT : 2 GET FAMILIAR WITH AZURE FUNCTIONS PRICING MODEL DEMO MANAGEMENT, SECURITY AND PERFORMANCE Copyright © 2017 AxEdge Consulting. All rights reserved.
  • 3. 3 AZURE FUNCTIONS  Azure Functions is a serverless compute service that enables you to run code on- demand without having to explicitly provision or manage infrastructure  Functions provides a fully managed compute platform with high reliability and security. • Manage your apps instead of infrastructure. • Gain flexible scaling. • Only pay for resources you use. Copyright © 2017 AxEdge Consulting. All rights reserved.
  • 4. AZURE FUNCTIONS - FEATURES Copyright © 2017 AxEdge Consulting. All rights reserved. Easily leverage Azure services and software-as-a-service (SaaS) offerings. Pay only for the time spent running your code depending on • Executions. • Resource Consumption Write functions using: C#, F#, Node.js, Python, PHP, batch, bash, or any executable. • Protect HTTP-triggered functions with OAuth provider. • Managed Service Identity. • RBAC • Supports NuGet and NPM CHOICE OF LANGUAGE SECURITY SIMPLIFIED INTEGRATION PRICING 4 BRING YOU DEPENDENCIES FLEXIBLE DEPLOYMENT • Through Azure Portal. • Set up continuous integration and deploy your code through  GitHub  Visual Studio Team Services
  • 5. AZURE FUNCTIONS ARCHITECTURE Built on top of App Service and Webjobs SDK
  • 6. SUPPORTED LANGUAGES Copyright © 2017 AxEdge Consulting. All rights reserved. 6
  • 7. Microsoft Confidential TRIGGERS 7  A trigger defines how a function is invoked.  A function must have exactly one trigger.  Triggers have associated data, which is usually the payload that triggered the function.  Direction of a trigger is always in.
  • 8. INTEGRATIONS – OUTPUT/ INPUT BINDINGS Copyright © 2017 AxEdge Consulting. All rights reserved. 8 COSMOS DB AZURE SERVICE BUS GITHUB NOTIFICATION HUB AZURE STORAGE AZURE EVENT HUB AZURE MOBILE TABLETS
  • 9. SUPPORTED BINDINGS TYPE SERVICE TRIGGER INPUT OUTPUT Schedule Azure Functions ✔ HTTP (REST or webhook) Azure Functions ✔ ✔** Blob Storage Azure Storage ✔ ✔ ✔ Events Azure Event Hubs ✔ ✔ Queues Azure Storage ✔ ✔ Queues and topics Azure Service Bus ✔ ✔ Storage tables Azure Storage ✔ ✔ SQL tables Azure Mobile Apps ✔ ✔ NoSQL DB Azure Cosmos DB ✔ ✔ ✔ Push Notifications Azure Notification Hubs ✔ Twilio SMS Text Twilio ✔ SendGrid email SendGrid ✔ Excel tables Microsoft Graph ✔ ✔ OneDrive files Microsoft Graph ✔ ✔ Outlook email Microsoft Graph ✔ Microsoft Graph events Microsoft Graph ✔ ✔ ✔ Auth tokens Microsoft Graph ✔ Copyright © 2017 AxEdge Consulting. All rights reserved. 9
  • 10. AZURE FUNCTIONS TECHNICAL CONCEPTS AND COMPONENTS FUNCTION APP  Comprised of one or more individual functions that are managed together by azure app service.  All of the functions in a function app share the same pricing plan, continuous deployment and runtime version. Copyright © 2017 AxEdge Consulting. All rights reserved. 10 RUNTIME The runtime, or script host, is the underlying webjobs SDK host that • listens for events • gathers and sends data • ultimately runs your code To facilitate http triggers, there is also a web host that is designed to sit in front of the script host in production scenarios. Having two hosts helps to isolate the script host from the front end traffic managed by the web host FUNCTION CODE  A function is the primary concept in Azure Functions. • Write Code in a Language of your choice. • Save the code and configuration files in the same folder.
  • 12. CONSUMPTION PLAN Copyright © 2017 AxEdge Consulting. All rights reserved. 12 Consumption plan – Pay as you go. • Dynamic scaling based on the number of incoming requests. • Pricing based on Resource consumption and Executions. • Free grant of 1 million requests and 400000 GBs. • Maximum execution time of 10 mins for a function. • Max memory limit of 1.5 GB per instance of function host.
  • 13. APP SERVICE PLAN Copyright © 2017 AxEdge Consulting. All rights reserved. 13 App Service plan • Function apps run on dedicated VMs on Basic, Standard, Premium, and Isolated SKUs. • Azure function host is always running. • Same as cost of VMs. • Scale out using autoscaling. Consider an App Service plan in the following cases:  Existing, underutilized VMs that are already running other App Service instances.  Function apps to run continuously, or nearly continuously.  More CPU or memory .  Run functions longer than the maximum execution time allowed on the Consumption plan (of 10 minutes).  Require features that are only available on an App Service plan.
  • 14. PERFORMANCE CONSIDERATIONS Copyright © 2017 AxEdge Consulting. All rights reserved. 14 Avoid Long Running Functions Functions should be stateless and idempotent if possible. Cross function communication Write defensive functions Use async code but avoid blocking calls Don't mix test and production code in the same function app
  • 15. SECURITY FEATURES  Azure services integration is done with TLS encrypted connections (over port 443).  Supports SSO.  Integrated with managed service identity  Can be integrated with azure active directory (AAD)  Supports on premise secure token service (STS) such as active directory federation services (adfs).  Supports popular authentication protocols, such as oauth 2.0, openid connect, and SAML 2.0  Can also configure function apps to use 3rd party login authentications like Facebook, Google, Microsoft account and Twitter. Copyright © 2017 AxEdge Consulting. All rights reserved. 15
  • 16. MONITOR Application Insights for monitoring functions.  You can use application insights without any custom configuration, but the default configuration can result in high volumes of data and can hit data cap for app insights. Azure functions logger includes: Categories  The category indicates which part of the runtime code or your function code wrote the log. Log levels  The azure functions logger also includes a log level with every log Real-time monitoring Monitor log files from a command line Monitor function app log files with PowerShell Copyright © 2017 AxEdge Consulting. All rights reserved. 16
  • 17. DURABLE FUNCTIONS Copyright © 2017 AxEdge Consulting. All rights reserved. 17 FUNCTION CHAINING FAN-OUT/FAN-IN ASYNC HTTP APIS STATEFUL SINGLETONS HUMAN INTERACTION
  • 18. Copyright © 2018 AxEdge Consulting. All rights reserved. 18
  • 19. Copyright © 2018 AxEdge Consulting. All rights reserved. 19