SlideShare a Scribd company logo
Welcome to the
Boston
Azure Functions Best Practices
Juan Pablo Garcia
Principal SDE Lead, Microsoft Corp
@liarjo
Azure Function Best Practice
Best
Practices
General
Performance
DEV/OPS
Cost
Serverless platform components
Azure Functions
Process events with Serverless code.
Make composing Cloud Apps insanely easy
Develop Functions in C#, Node.js, F#, and more
Easily schedule event-driven tasks across services
Expose Functions as HTTP API endpoints
Scale Functions based on customer demand
Easily integrate with other services
Best
Practices
General
Performance
DEV/OPS
Cost
General Best Practices
• Write defensive functions
• Write functions to be stateless and idempotent
• Avoid long running functions
• Cross function communication
• Durable Functions and Azure Logic Apps are built to manage state transitions
and communication between multiple functions.
• Pass message using queue
• Use Azure Functions bindings for simple interactions (with CosmosDB,
Service Bus, etc)
• Best to use the SDKs directly for anything more complex or for better error
handling
Best
Practices
General
Performance
DEV/OPS
Cost
DEV/OPS
• Use Source control and CI/CD pipeline
DEV/OPS
• Always Monitoring!
• Azure Functions has two built in monitoring solutions
• WebJobs dashboard & Application Insights
DEV/OPS / Application Insights
• Live Stream: see a near-live view of what’s coming from your Function App
• Metrics Explorer: insights on your metrics coming from your Function App
• Failures: insights on which things are failing
• Performance: information on the count, latency, and more of Function
executions
• Servers: esource utilization and throughput per server (Putting the servers
back in Serverless)
• Antilytic Portal: Write custom queries against your data
• Alerts*
Best
Practices
General
Performance
DEV/OPS
Cost
Scalability Best Practices
• Use async code but avoid blocking calls
• C# example: Result V/S await
Scalability Best Practices
• Watch your outbound socket connections
• limit is 300 on Consumption plan: by request v/s controller connections
Scalability Best Practices
• Configure host behaviors to better handle concurrency
“scale paradox?“
Scalability Best Practices
• Receive messages in batch whenever possible/the
functions process messages in batches
Best
Practices
General
Performance
DEV/OPS
Cost
Cost
• Consumption plan
• Executions
• total number of requested executions each month for all functions
• The first million executions are included free each month.
• Resource consumption
• “Observed resource consumption” measured in gigabyte seconds (GB-s).
• Observed resource consumption is calculated by multiplying average memory size in gigabytes by
the time in milliseconds it takes to execute the function.
• Memory used by a function is measured by rounding up to the nearest 128 MB, up to the
maximum memory size of 1,536 MB
• Execution time calculated by rounding up to the nearest 1 ms.
• The minimum execution time and memory for a single function execution is 100 ms and 128 mb
respectively.
• Functions pricing includes a monthly free grant of 400,000 GB-s.
• App Service plan
• Same as usual for Web apps
Best
Practices
General
Performance
DEV/OPS
Cost
References
• Optimize the performance and reliability of Azure Functions
• https://docs.microsoft.com/en-us/azure/azure-functions/functions-best-practices
• Processing 100,000 Events Per Second on Azure Functions
• https://blogs.msdn.microsoft.com/appserviceteam/2017/09/19/processing-100000-events-per-second-on-azure-functions/
• Azure Functions – Significant Improvements in HTTP Trigger Scaling
• https://www.azurefromthetrenches.com/azure-functions-significant-improvements-in-http-trigger-scaling/
• Azure Function Apps: Performance Considerations
• https://blogs.msdn.microsoft.com/amitagarwal/2018/04/03/azure-function-apps-performance-considerations/
• How we checked and fixed the 503 error and Performance issue in our Azure Function
• https://blogs.msdn.microsoft.com/visualstudioalmrangers/2018/04/03/how-we-checked-and-fixed-the-503-error-and-
performance-issue-in-our-azure-function/
• Host Health Monitor
• https://github.com/Azure/azure-functions-host/wiki/Host-Health-Monitor
• Functions pricing
• https://azure.microsoft.com/en-us/pricing/details/functions/
References
• Azure Functions – Prepare for continuous delivery
• https://blogs.msdn.microsoft.com/visualstudioalmrangers/2017/09/06/azure-functions-prepare-for-continuous-delivery/
• Azure Function – Integration tests automation
• https://blogs.msdn.microsoft.com/visualstudioalmrangers/2017/09/24/azure-function-integration-tests-automation/
• Azure Web App sandbox
• https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox
• High throughput Azure Functions on HTTP
• https://codez.deedx.cz/projects/high-throughput-azure-functions-on-http/

More Related Content

What's hot (19)

PDF
Rob Gruhl and Erik Erikson - What We Learned in 18 Serverless Months at Nords...
ServerlessConf
 
PPTX
SAFwAD @ Intelligent Cloud Conference
Rick van den Bosch
 
PDF
Solving your Backup Needs - Ben Cefalo mdbe18
MongoDB
 
PDF
Better CQRS with ksqlDB | Anshuman Mukherjee, Airwallex
HostedbyConfluent
 
PDF
Engineering Leader opportunity @ Netflix - Playback Data Systems
Philip Fisher-Ogden
 
PPTX
#SPFestDC #Azure #Functions V2: What's new and getting started
Vincent Biret
 
PPTX
Azure saturday Pordenone 2019 - ML.NET model lifecycle with azure devops
Marco Zamana
 
PPTX
Serverless Summit India 2017: Fission
Vishal Biyani
 
PDF
MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...
MongoDB
 
PDF
Parallel application signature for performance analysis and prediction
ieeeprojectschennai
 
PDF
Building adaptive user experiences using Contextual Multi-Armed Bandits with...
HostedbyConfluent
 
KEY
The guardian and app engine
Michael Brunton-Spall
 
PPTX
Neo4j 3.2 Launch
Neo4j
 
PPTX
Playback Data Systems @ Netflix
Ketan Duvedi
 
PPTX
Netflix viewing data architecture evolution - EBJUG Nov 2014
Philip Fisher-Ogden
 
PDF
Scalable and Reliable Logging at Pinterest
Krishna Gade
 
ODP
jBPM 5 (JUDCon 2010-10-08)
Geoffrey De Smet
 
PDF
Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...
HostedbyConfluent
 
PDF
The New Way of Configuring Grace Periods for Windowed Operations in Kafka Str...
HostedbyConfluent
 
Rob Gruhl and Erik Erikson - What We Learned in 18 Serverless Months at Nords...
ServerlessConf
 
SAFwAD @ Intelligent Cloud Conference
Rick van den Bosch
 
Solving your Backup Needs - Ben Cefalo mdbe18
MongoDB
 
Better CQRS with ksqlDB | Anshuman Mukherjee, Airwallex
HostedbyConfluent
 
Engineering Leader opportunity @ Netflix - Playback Data Systems
Philip Fisher-Ogden
 
#SPFestDC #Azure #Functions V2: What's new and getting started
Vincent Biret
 
Azure saturday Pordenone 2019 - ML.NET model lifecycle with azure devops
Marco Zamana
 
Serverless Summit India 2017: Fission
Vishal Biyani
 
MongoDB World 2016: Scaling Targeted Notifications in the Music Streaming Wor...
MongoDB
 
Parallel application signature for performance analysis and prediction
ieeeprojectschennai
 
Building adaptive user experiences using Contextual Multi-Armed Bandits with...
HostedbyConfluent
 
The guardian and app engine
Michael Brunton-Spall
 
Neo4j 3.2 Launch
Neo4j
 
Playback Data Systems @ Netflix
Ketan Duvedi
 
Netflix viewing data architecture evolution - EBJUG Nov 2014
Philip Fisher-Ogden
 
Scalable and Reliable Logging at Pinterest
Krishna Gade
 
jBPM 5 (JUDCon 2010-10-08)
Geoffrey De Smet
 
Confluent On Azure: Why you should add Confluent to your Azure toolkit | Alic...
HostedbyConfluent
 
The New Way of Configuring Grace Periods for Windowed Operations in Kafka Str...
HostedbyConfluent
 

Similar to Azure Function Best Practice (20)

PPTX
#SpFestSea azr203 Azure functions lessons learned
Vincent Biret
 
PDF
Azure functions
Rajesh Kolla
 
PPTX
Azure Functions.pptx
YachikaKamra
 
PDF
Azure Functions
AxEdge Consulting
 
PPTX
Scalable APIs with Azure Functions
Christos Matskas
 
PPTX
Introduction to Azure Functions
Callon Campbell
 
PDF
Serverless API with Azure Functions
Analben Mehta
 
PPTX
JoTechies - Azure Functions Using c#
JoTechies
 
PPTX
Azure Functions @ global azure day 2017
Sean Feldman
 
PDF
Getting Started with Serverless Architectures using Azure Functions
Marc Duiker
 
PPTX
Azure Functions - Introduction
Venkatesh Narayanan
 
PPTX
Cloud Dev with Azure Functions - DogFoodCon 2018 - Brian T Jackett
Brian T. Jackett
 
PPTX
Unleash the power of Serverless Computing
Gaurav Madaan
 
PPTX
Azure full
Mohit Chhabra
 
PPTX
Azure Functions e Azure Logics Apps: i tuoi coltellini svizzeri per gestire i...
Marco Parenzan
 
PPTX
slides.pptx
abcabc794064
 
PPTX
Durable Azure Functions
Pushkar Saraf
 
PPTX
Building API in the cloud using Azure Functions
Aleksandar Bozinovski
 
PPTX
Azure functions: from a function to a whole application in 60 minutes
Alessandro Melchiori
 
PPTX
Serverless on Azure with Functions
Christos Matskas
 
#SpFestSea azr203 Azure functions lessons learned
Vincent Biret
 
Azure functions
Rajesh Kolla
 
Azure Functions.pptx
YachikaKamra
 
Azure Functions
AxEdge Consulting
 
Scalable APIs with Azure Functions
Christos Matskas
 
Introduction to Azure Functions
Callon Campbell
 
Serverless API with Azure Functions
Analben Mehta
 
JoTechies - Azure Functions Using c#
JoTechies
 
Azure Functions @ global azure day 2017
Sean Feldman
 
Getting Started with Serverless Architectures using Azure Functions
Marc Duiker
 
Azure Functions - Introduction
Venkatesh Narayanan
 
Cloud Dev with Azure Functions - DogFoodCon 2018 - Brian T Jackett
Brian T. Jackett
 
Unleash the power of Serverless Computing
Gaurav Madaan
 
Azure full
Mohit Chhabra
 
Azure Functions e Azure Logics Apps: i tuoi coltellini svizzeri per gestire i...
Marco Parenzan
 
slides.pptx
abcabc794064
 
Durable Azure Functions
Pushkar Saraf
 
Building API in the cloud using Azure Functions
Aleksandar Bozinovski
 
Azure functions: from a function to a whole application in 60 minutes
Alessandro Melchiori
 
Serverless on Azure with Functions
Christos Matskas
 
Ad

More from Juan Pablo (20)

PPTX
Alteryx and Power BI better together
Juan Pablo
 
PPTX
Windows Azure VPN Workshop
Juan Pablo
 
PPTX
Using windows azure to develop secure and deploy cloud applications Santiago ...
Juan Pablo
 
PPTX
BizTalk Server, BizTalk Services and Windows Workflow Foundation (WF)
Juan Pablo
 
PPTX
Windows Azure Queues and Windows Azure Service Bus Queues
Juan Pablo
 
PPTX
Tech series: Windows Azure Media Services
Juan Pablo
 
PPTX
1. keynote Transformando la Nube en una oportunidad de crecimiento
Juan Pablo
 
PPTX
Windows Azure Web Sites #wapucolombia
Juan Pablo
 
PPTX
Windows Azure Media Services WAPU Bogotá
Juan Pablo
 
PPTX
Windows Azure IaaS & vNet
Juan Pablo
 
PPTX
Nubes Privadas
Juan Pablo
 
PPTX
Introducción Windows Azure
Juan Pablo
 
PPTX
Introducción soa
Juan Pablo
 
PPTX
Cloud computing explained
Juan Pablo
 
PPT
Exprimiendo SharePoint 2010
Juan Pablo
 
PPTX
Introduccion a la seguridad en Windows Azure
Juan Pablo
 
PPTX
Qué hace un arquitecto de soluciones?
Juan Pablo
 
PPTX
Servicios de datos en la nube
Juan Pablo
 
PPTX
Windows Azure, Lo mejor del PDC
Juan Pablo
 
PPTX
The azure platform TechDay2010
Juan Pablo
 
Alteryx and Power BI better together
Juan Pablo
 
Windows Azure VPN Workshop
Juan Pablo
 
Using windows azure to develop secure and deploy cloud applications Santiago ...
Juan Pablo
 
BizTalk Server, BizTalk Services and Windows Workflow Foundation (WF)
Juan Pablo
 
Windows Azure Queues and Windows Azure Service Bus Queues
Juan Pablo
 
Tech series: Windows Azure Media Services
Juan Pablo
 
1. keynote Transformando la Nube en una oportunidad de crecimiento
Juan Pablo
 
Windows Azure Web Sites #wapucolombia
Juan Pablo
 
Windows Azure Media Services WAPU Bogotá
Juan Pablo
 
Windows Azure IaaS & vNet
Juan Pablo
 
Nubes Privadas
Juan Pablo
 
Introducción Windows Azure
Juan Pablo
 
Introducción soa
Juan Pablo
 
Cloud computing explained
Juan Pablo
 
Exprimiendo SharePoint 2010
Juan Pablo
 
Introduccion a la seguridad en Windows Azure
Juan Pablo
 
Qué hace un arquitecto de soluciones?
Juan Pablo
 
Servicios de datos en la nube
Juan Pablo
 
Windows Azure, Lo mejor del PDC
Juan Pablo
 
The azure platform TechDay2010
Juan Pablo
 
Ad

Recently uploaded (20)

PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
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
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 

Azure Function Best Practice

  • 2. Azure Functions Best Practices Juan Pablo Garcia Principal SDE Lead, Microsoft Corp @liarjo
  • 6. Azure Functions Process events with Serverless code. Make composing Cloud Apps insanely easy Develop Functions in C#, Node.js, F#, and more Easily schedule event-driven tasks across services Expose Functions as HTTP API endpoints Scale Functions based on customer demand Easily integrate with other services
  • 8. General Best Practices • Write defensive functions • Write functions to be stateless and idempotent • Avoid long running functions • Cross function communication • Durable Functions and Azure Logic Apps are built to manage state transitions and communication between multiple functions. • Pass message using queue • Use Azure Functions bindings for simple interactions (with CosmosDB, Service Bus, etc) • Best to use the SDKs directly for anything more complex or for better error handling
  • 10. DEV/OPS • Use Source control and CI/CD pipeline
  • 11. DEV/OPS • Always Monitoring! • Azure Functions has two built in monitoring solutions • WebJobs dashboard & Application Insights
  • 12. DEV/OPS / Application Insights • Live Stream: see a near-live view of what’s coming from your Function App • Metrics Explorer: insights on your metrics coming from your Function App • Failures: insights on which things are failing • Performance: information on the count, latency, and more of Function executions • Servers: esource utilization and throughput per server (Putting the servers back in Serverless) • Antilytic Portal: Write custom queries against your data • Alerts*
  • 14. Scalability Best Practices • Use async code but avoid blocking calls • C# example: Result V/S await
  • 15. Scalability Best Practices • Watch your outbound socket connections • limit is 300 on Consumption plan: by request v/s controller connections
  • 16. Scalability Best Practices • Configure host behaviors to better handle concurrency “scale paradox?“
  • 17. Scalability Best Practices • Receive messages in batch whenever possible/the functions process messages in batches
  • 19. Cost • Consumption plan • Executions • total number of requested executions each month for all functions • The first million executions are included free each month. • Resource consumption • “Observed resource consumption” measured in gigabyte seconds (GB-s). • Observed resource consumption is calculated by multiplying average memory size in gigabytes by the time in milliseconds it takes to execute the function. • Memory used by a function is measured by rounding up to the nearest 128 MB, up to the maximum memory size of 1,536 MB • Execution time calculated by rounding up to the nearest 1 ms. • The minimum execution time and memory for a single function execution is 100 ms and 128 mb respectively. • Functions pricing includes a monthly free grant of 400,000 GB-s. • App Service plan • Same as usual for Web apps
  • 21. References • Optimize the performance and reliability of Azure Functions • https://docs.microsoft.com/en-us/azure/azure-functions/functions-best-practices • Processing 100,000 Events Per Second on Azure Functions • https://blogs.msdn.microsoft.com/appserviceteam/2017/09/19/processing-100000-events-per-second-on-azure-functions/ • Azure Functions – Significant Improvements in HTTP Trigger Scaling • https://www.azurefromthetrenches.com/azure-functions-significant-improvements-in-http-trigger-scaling/ • Azure Function Apps: Performance Considerations • https://blogs.msdn.microsoft.com/amitagarwal/2018/04/03/azure-function-apps-performance-considerations/ • How we checked and fixed the 503 error and Performance issue in our Azure Function • https://blogs.msdn.microsoft.com/visualstudioalmrangers/2018/04/03/how-we-checked-and-fixed-the-503-error-and- performance-issue-in-our-azure-function/ • Host Health Monitor • https://github.com/Azure/azure-functions-host/wiki/Host-Health-Monitor • Functions pricing • https://azure.microsoft.com/en-us/pricing/details/functions/
  • 22. References • Azure Functions – Prepare for continuous delivery • https://blogs.msdn.microsoft.com/visualstudioalmrangers/2017/09/06/azure-functions-prepare-for-continuous-delivery/ • Azure Function – Integration tests automation • https://blogs.msdn.microsoft.com/visualstudioalmrangers/2017/09/24/azure-function-integration-tests-automation/ • Azure Web App sandbox • https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox • High throughput Azure Functions on HTTP • https://codez.deedx.cz/projects/high-throughput-azure-functions-on-http/

Editor's Notes

  • #9: https://docs.microsoft.com/en-us/azure/azure-functions/functions-best-practices#scalability-best-practices DEMOS: 1. Talk with me V2: defensive programing
  • #11: Demos Source Control and C https://github.com/liarjo/AzureFunctionCICDSample 2. https://jpgarciams.visualstudio.com/
  • #12: Azure Functions has two built in monitoring solutions – the WebJobs dashboard and Application Insights (integration between Azure Functions and App Insights is currently in preview). The dashboard was designed with longer running jobs in mind and isn’t optimized for scenarios where there are 10,000+ function executions happening per second. Fortunately, App Insights is demos Project Talkative / LOG Stream using BackendAPI [05456211-95ce-4011-97e3-19636514f45d]
  • #13: Demos Product Evaluation with APP Insight Live Stream with loadtest “ProductEvaluation” Analytics traces | where message has "New Evaluation product {\"Id\":\"123\",\"Evaluation\":29}" Metrics Preview Alerts
  • #15: BackedApi: Run local and show GetProduct v/s GetProducResutl
  • #16: https://github.com/Azure/azure-functions-host/wiki/Host-Health-Monitor Description of settings: enabled: Whether the feature is enabled. Default is true. healthCheckInterval: The time interval between the periodic background health checks. Default is 10 seconds. healthCheckWindow: A sliding time window used in conjunction with the healthCheckThreshold setting (see below). healthCheckThreshold: Maximum number of times the health check can fail before a host recycle is initiated. counterThreshold: The threshold at which a performance counter will be considered unhealthy. Default is 0.80. HttpClientInstanceSamplesController Show run test to show error details
  • #17: PropertyDefaultDescription routePrefixapi The route prefix that applies to all routes. Use an empty string to remove the default prefix. maxOutstandingRequests The maximum number of outstanding requests that are held at any given time. This limit includes requests that are queued but have not started executing, as well as any in progress executions. Any incoming requests over this limit are rejected with a 429 "Too Busy" response. That allows callers to employ time-based retry strategies, and also helps you to control maximum request latencies. This only controls queuing that occurs within the script host execution path. Other queues such as the ASP.NET request queue will still be in effect and unaffected by this setting. The default is unbounded. maxConcurrentRequests The maximum number of http functions that will be executed in parallel. This allows you to control concurrency, which can help manage resource utilization. For example, you might have an http function that uses a lot of system resources (memory/cpu/sockets) such that it causes issues when concurrency is too high. Or you might have a function that makes outbound requests to a third party service, and those calls need to be rate limited. In these cases, applying a throttle here can help. The default is unbounded. dynamicThrottlesEnabledfalse When enabled, this setting causes the request processing pipeline to periodically check system performance counters like connections/threads/processes/memory/cpu/etc. and if any of those counters are over a built-in high threshold (80%), requests will be rejected with a 429 "Too Busy" response until the counter(s) return to normal levels.
  • #18: Batch Sample
  • #20: https://azure.microsoft.com/en-us/pricing/calculator/?service=functions