introduction to azure logic and api apps

31
Azure Logic & API Apps Guy Barrette Azure MVP Microsoft Regional Directors Program @GuyBarrette http://guy.cloud

Upload: guy-barrette

Post on 16-Apr-2017

196 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Introduction to Azure Logic and API Apps

Azure Logic & API AppsGuy Barrette

Azure MVPMicrosoft Regional Directors Program

@GuyBarrettehttp://guy.cloud

Page 2: Introduction to Azure Logic and API Apps

API APPSEasily build and

consume APIs in the cloud

WEB APPSWeb apps that scale with

your business

LOGIC APPSAutomate business

process across SaaS and on-premises

MOBILE APPSBuild Mobile apps for

any device

Azure App Service

Page 3: Introduction to Azure Logic and API Apps

One price

Page 4: Introduction to Azure Logic and API Apps

Web Apps

Logic Apps

Mobile Apps

API Apps

http SQL

Customer site

Administration App

Order Completed

Customer App

Page 5: Introduction to Azure Logic and API Apps

Benefits of App Services

Automatic OS patching Enterprise-grade security High availability

Automated scale out/in Built-in load balancing

Supports many languages and platforms .NET, Node.js, Python, Ruby and many more

Easy continuous deployment Continuous delivery from third-party source control

providers Built-in Git repo

Page 6: Introduction to Azure Logic and API Apps

API Apps

Page 7: Introduction to Azure Logic and API Apps

Easily use cloud or custom APIs:• Dozens of built-in APIs for popular

SaaS

• An ecosystem of APIs for any need

• Create and publish custom, reusable APIs

• Visual Studio tooling with one click publish and remote debugging

• Automatic client SDK generation for many languages

Create, consume andhost APIs more easily

API APPS

Page 8: Introduction to Azure Logic and API Apps

Benefits of API Apps

Bring your API as-is .NET Web API Node.js + Express Java PHP Many other technologies

Connect easily to SaaS platforms

Page 9: Introduction to Azure Logic and API Apps

Benefits of App Services Automatic OS patching Enterprise grade security High availability Support for many platforms &

languages Auto scaling and load

balancing WebJobs for background

processing Easy deployment, including

continuous delivery Access on-premises data

Why Azure API Apps?Additional Benefits• Bring your API as-is• Simple access control• Connectivity to SaaS platforms• Swagger metadata• Logic App integration• Visual Studio tooling and

support• Public and private

marketplaces• Automatic dependency

deployment• Automatic updates

Page 10: Introduction to Azure Logic and API Apps

Consuming API Apps API Apps expose HTTP services

Metadata is exposed using Swagger 2.0 metadata JSON file Widely supported

Client applications

Page 11: Introduction to Azure Logic and API Apps

Demo:API Apps Click icon to add picture

Page 12: Introduction to Azure Logic and API Apps

API Appsvs

API Management

Page 13: Introduction to Azure Logic and API Apps

API Apps & API ManagementAPI Apps

Hosting

Simple Access Control

CORSTrigger/Action (Logic

App)

API Management

Monitor

Throttle

Manipulate

Consolidating

Page 14: Introduction to Azure Logic and API Apps
Page 15: Introduction to Azure Logic and API Apps

API APPSEasily build and

consume APIs in the cloud

WEB APPSWeb apps that scale with

your business

LOGIC APPSAutomate business

process across SaaS and on-premises

MOBILE APPSBuild Mobile apps for

any device

Azure App Service

Page 16: Introduction to Azure Logic and API Apps

Logic Apps

Page 17: Introduction to Azure Logic and API Apps

Connect and automate common tasks with Logic Apps

Use simple, intuitive tools

Create crucial, reliable tasks without coding

Integrate your mobile and web-based apps

Connect existing apps to SaaS servicesBizTalk APIs for expert integration scenarios

Page 18: Introduction to Azure Logic and API Apps

SaaS integration

Page 19: Introduction to Azure Logic and API Apps

API Connections

Page 20: Introduction to Azure Logic and API Apps

Easily use cloud or custom APIs:• Dozens of built-in APIs for popular

SaaS

• An ecosystem of APIs for any need

• Create and publish custom, reusable APIs

• Easily connect to existing APIs in the cloud

• Visual Studio tooling with one click publish and remote debugging

Create, consume andhost APIs more easily

API’S

Page 21: Introduction to Azure Logic and API Apps

Connecting to APIs• Managed APIs• OOB APIs hosted by Logic

Apps• Serviced by the product team• First class designer

experience• Rapid development

• Custom and External APIs• First class designer

experience using Swagger• Auto discovery of Azure hosted

APIs• Declaratively reference an External

API• Raw HTTP request for all other

API• API Connections• Authenticate once and re-use• Differentiate connection

configuration• Simple to deploy

Page 22: Introduction to Azure Logic and API Apps

• Box• Chatter• Dropbox• Azure HD Insight• Slack• Azure Media Services• OneDrive• SharePoint • SQL Azure• Office 365• QuickBooks• SalesForce

• Sugar CRM • Dynamics CRM• Azure Service Bus• Azure Storage• Timer / Recurrence• Twilio• Twitter• Azure Web Jobs • Yammer

• HTTP, HTTPS • FTP, SFTP• POP3/IMAP• SMTP• File• Delay

• Batching / Debatching• Validate• Extract (XPath)• Transform (+Mapper)• Convert (XML-JSON)• Convert (XML-FF)

• X12

• EDIFACT• AS2• TPM• Rules Engine• Flat file

SaaS

ProtocolsBizTalk Messaging & B2B

Built-in API Connectors

Hybrid• IBM DB2• Informix• Websphere MQ• SQL Server• SharePoint Server• Oracle• SAP• Hybrid Connectivity

Page 23: Introduction to Azure Logic and API Apps

Workflow Definition Language

Page 24: Introduction to Azure Logic and API Apps

{ "parameters": { ... }, "triggers": { ... }, "actions": { ... }, "outputs": { ... }} 

Logic Apps Workflow definition concepts

Page 25: Introduction to Azure Logic and API Apps

Parameters• Re-using values, or even complex objects, throughout the definition,

which makes it easier to comprehend.• Separate out config from the definition itself, making sharing easy, as

well as across different environments.DEV WORKFLOW

DEFINITION

Declares parameters

Uri: @parameters (‘endpoint’)

PARAMETERS

Provides DEV configuration

Endpoint: “http://int.mysite.net”

PROD WORKFLOW

DEFINITION(identical)

Declares parameters

Uri: @parameters (‘endpoint’)

PARAMETERS

Provides PROD configuration

Endpoint: “http://mysite.net”

Page 26: Introduction to Azure Logic and API Apps

• Recurring schedule – “every X hours”• Polling an API for a response

A 200 response means “run” – a 202 response means “wait”Can use trigger state to get information on the previous execution

• Manual WebhookEvery workflow has an endpoint you can POST to using a SAS URL

• Webhook subscriptionSubscribe to a web services webhook

• On DemandUser can click the “Run Now” button in the portal

Triggering a Logic app “Run”

Page 27: Introduction to Azure Logic and API Apps

Actions can…• Call out• API Apps, Direct HTTP

endpoints, Other Workflows, send a response

• Honor asynchronous pattern• Continues on 202 status code• Follows location header• Waits for retry after interval

• Wait for events• Wait for a period of time• Wait for a Webhook to be

called

• Have conditions and looping• Conditions determine whether

the action should execute• For each executes an action

for each item in a collection• Do-while will continually

execute an action until a condition is met

• Have custom retry policy• By default retries 4 times

separated by 20 seconds

Page 28: Introduction to Azure Logic and API Apps

Control flow

Response For Each Split On Do Until Conditions

Page 29: Introduction to Azure Logic and API Apps

• Trigger history shows polling results

• Run history shows details for each logic app run• Run statistics• Action execution log• All of the inputs to the action• All of the outputs from the action• Status and errors

Debugging and History

Azure

Page 30: Introduction to Azure Logic and API Apps

Demo:Logic Apps Click icon to add picture

Page 31: Introduction to Azure Logic and API Apps

Questions?