Download presentation
Presentation is loading. Please wait.
Published byRoberta Hunt Modified over 6 years ago
1
Serverless Azure A Gentle Introduction to Microsoft Azure Logic Apps & Functions
from zero to wicked useful in about an hour HELLO my name is Bill Wilder Granite State SharePoint Users Group Thu 07-Sep :00-7:30 PM Bill Wilder, CTO, Finomial Corporation
2
8x recipient cto author founder
3
Goals: By the end of this talk…
Demystify Logic Apps and Functions (aka Function Apps, Azure Functions, Functions as a Server (FaaS)). Realize that Logic Apps and Functions are completely independent of each other, but can be used together. Both are serverless technologies.
4
Logic Apps
5
@ServerlessAzure LiveSlide Site
6
Just hitting this URL (behind the scenes) via HTTP GET to invoke the Logic App:
11.northcentralus.logic.azure.com:443/workflows/786d9f6792f643bd87 7cc2e863ae4425/triggers/manual/paths/invoke?api-version= &sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=bSl6WTGbTSJe2phH XPporWYFbgRp6w6ZD0NH8eBVLnc LiveSlide Site
7
@ServerlessAzure LiveSlide Site
8
Logic Apps – the new component model
Triggers + Actions = Logic App
9
Triggers + Actions = Logic App
Triggers Some event – web hook, timer, user action, etc. + Actions Your response to trigger – based on trigger & data = Logic App Serverless Software Component
10
How is this possible? Connectors
A Component Model for the Cloud The code behind Triggers & Actions Front simple microservers or whole systems Ecosystem is blooming Gallery of Microsoft-maintained connectors Community-contributed connectors are available You can create your own connectors (via Open API (Swagger)) Well-defined Logic App Workflow Definition Language
11
Triggers Timer User action Action from some other system
Queue Message, Blob Creation, Webhook/HTTP Call Examples: tweet, , slack, calendar event, something changed Business event: User signed up on my website Code event: New version of file checked into GitHub Azure event: A new VM was provisioned
12
Actions Call an API Trigger more actions
Use data from triggers for filtering/decisions Pass along data from triggers in carrying out actions Can be custom Huge gallery New component model for software developers
13
Demo Time Build the tweeter we just experienced
Build other integrations (dangerous ad hoc demos ) HTTP 202 JSON Schema Workflow Definition Language Use trigger data & conditional processing Logic App Workflow Definition Language { "type": "object", "properties": { "tweet": { "type": "string" }
14
JSON Schema example (tweet)
{ "type": "object", "properties": { "tweet": { "type": "string" }
15
Sharepoint + Logic Apps
create-api-sharepointonline
16
Function Apps
17
Function Apps are Code with Triggers
Timer User action Action from some other system Queue Message, Blob Creation, Webhook/HTTP Call (Look familiar?)
18
Error Handling Try it Retry it Deal with the failure
Track with logging & telemetry Monitor with alerts & dashboards “Scopes” exception-handling
19
Azure Function that returns 500 75% of calls
6cca66e
20
Sharepoint + Functions
webhooks-using-azure-functions
21
Demo Errors/Retries What happens if there’s an error? Command Line
Azure Function Monitoring
22
Serverless
23
Serverless Computing is characterized by…
Deployment units are small, loosely-coupled components More “no server configuration” than PaaS Cloud-friendly pay-by-the-drink billing
24
“Multiple Triggers” One trigger type can be assigned per Logic App
Many parallel instances of your Logic App can fire to absorb load Limits? and-config Why would you want to limit it? Singleton available
25
Pricing Logic Apps Azure Functions Consumption
Azure Functions Consumption or App Service Plan
26
Flow vs. Logic Apps https://portal.office.com/myapps
Flow is “civilian” version of Logic Apps: “Grow up to Azure Logic Apps” update/ Same connectors: us/azure/connectors/apis-list Same underlying core Comparison by Microsoft: us/azure/azure-functions/functions-compare-logic-apps-ms-flow-webjobs
27
–Microsoft Announcement on May 31, 2017
BizTalk vs. Logic Apps “To simplify the customer experience across our enterprise integration services, we have incorporated the Azure BizTalk Services capabilities into Logic Apps and Azure App Service Hybrid Connections.” –Microsoft Announcement on May 31, 2017 simplifying-our-azure-offerings/ enterprise-integration-overview
28
PowerApps vs. Logic Apps
29
Zapier vs. Logic Apps
30
IFTTT vs. Logic Apps
31
Dev & Deploy Visual Studio (2015+) - us/azure/azure-functions/functions-develop-vs Azure Portal ARM Templates PowerShell REST API
32
Official Twitter Accounts (pretty sure )
@CosmosDB
33
NuGet Packages Conference session (video) on making NuGet packages for Azure Functions: /Azure-Functions-NuGet-Superpowers One answer to reusing code within Azure Functions (and within other systems too). Another answer is to reuse ’services’ – like Azure Functions
34
Postman Just a tool, but a popular/handy one
Useful for testing HTTP actions, including API calls Free Slack channel – @postman
35
RequestBin Just a tool, but a popular/handy one https://requestb.in/
Useful for inspecting HTTP webhook payloads and workflow steps Free @requestbin -
36
{JSON:Schema} @JSONSchema
37
Scheduler
38
Duration – per ISO 8601 PT5M PT2D PT36H PT36H vs. P1DT12H
39
Logic Apps Workflow Definition Language
40
Only Scratching the Surface!
Potential follow-up topics: Azure API Apps DevOps Experience Monitoring (and. so. many. more.)
41
Find this slide deck here
Questions? See you at Boston Azure bostonazure.org Find this slide deck here Bill blog.codingoutloud.com linkedin.com/in/billwilder
42
Subliminal … 0.25
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.