Robust Cloud Integration with Azure

Book description

Unleash the power of serverless integration with Azure

About This Book

  • Build and support highly available and scalable API Apps by learning powerful Azure-based cloud integration

  • Deploy and deliver applications that integrate seamlessly in the cloud and quickly adapt as per your integration needs

  • Deploy hybrid applications that work and integrate on the cloud (using Logic Apps and BizTalk Server)

  • Who This Book Is For

    This book is for Microsoft Enterprise developers, DevOps, and IT professionals who would like to use Azure App Service and Microsoft Cloud Integration technologies to create cloud-based web and mobile apps.

    What You Will Learn

  • Explore new models of robust cloud integration in Microsoft Azure

  • Create your own connector and learn how to publish and manage it

  • Build reliable, scalable, and secure business workflows using Azure Logic Apps

  • Simplify SaaS connectivity with Azure using Logic Apps

  • Connect your on-premises system to Azure securely

  • Get to know more about Logic Apps and how to connect to on-premises “line-of-business” applications using Microsoft BizTalk Server

  • In Detail

    Microsoft is focusing heavily on Enterprise connectivity so that developers can build scalable web and mobile apps and services in the cloud. In short, Enterprise connectivity from anywhere and to any device. These integration services are being offered through powerful Azure-based services.

    This book will teach you how to design and implement cloud integration using Microsoft Azure. It starts by showing you how to build, deploy, and secure the API app. Next, it introduces you to Logic Apps and helps you quickly start building your integration applications. We’ll then go through the different connectors available for Logic Apps to build your automated business process workflow.

    Further on, you will see how to create a complex workflow in Logic Apps using Azure Function. You will then add a SaaS application to your existing cloud applications and create Queues and Topics in Service Bus on Azure using Azure Portal. Towards the end, we’ll explore event hubs and IoT hubs, and you’ll get to know more about how to tool and monitor the business workflow in Logic Apps.

    Using this book, you will be able to support your apps that connect to data anywhere—be it in the cloud or on-premises.

    Style and approach

    This practical hands-on tutorial shows you the full capability of App Service and other Azure-based integration services to build scalable and highly available web and mobile apps. It helps you successfully build and support your applications in the cloud or on-premises successfully. We’ll debunk the popular myth that switching to cloud is risky—it’s not!

    Table of contents

    1. Robust Cloud Integration with Azure
      1. Robust Cloud Integration with Azure
      2. Credits
      3. Foreword
      4. About the Authors
      5. About the Reviewers
      6. www.PacktPub.com
        1. Why subscribe?
      7. Customer Feedback
      8. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the color images of this book
          2. Errata
          3. Piracy
          4. Questions
      9. 1. An Introduction to Systems Integration in the Cloud
        1. What is Azure?
        2. What is cloud computing?
          1. Types of cloud platform
          2. Types of cloud service
          3. Cloud computing - something old or something new?
          4. What is integration in the cloud?
          5. The benefits of integration using the cloud
          6. Design patterns for cloud integration
          7. The evolution of integration design and how this applies to the cloud
          8. Introduction to the microservices architecture
          9. The evolution of architectures
          10. Limitation of monolithic application design
          11. What is microservices?
          12. The characteristics of microservices
        3. Types of microservices
          1. Stateless microservices
            1. Stateful microservices
            2. Challenges with the microservices architecture
          2. SOA and microservices
        4. Summary
      10. 2. What Is an Azure App Service?
        1. What is an Azure App Service?
          1. Why use Azure App Service?
          2. What are Azure Resource Groups?
        2. App Service plans
        3. An overview of our sample solution
        4. Summary
      11. 3. Getting Started with API Apps
        1. Why use API Apps?
        2. Building, hosting, and consuming your first API App
          1. What is Swagger?
          2. Developing and hosting RESTful API App
            1. Enabling the Swagger UI
            2. Testing your API
            3. Deploying ProductAPI to Azure
            4. Viewing and managing the ProductAPI in Azure portal
            5. Consuming your API App by generating client code in Visual Studio
          3. The API App's architecture
          4. The CORS support
            1. Enabling CORS in Azure App Service
          5. Bringing your APIs as-is
            1. Testing an API using Postman
            2. Creating a new API App
            3. Setting up the deployment source for your new API App
            4. Deploying Node.js API code to Azure
        3. Security
        4. What is App Service authentication and authorization?
          1. Authentication
          2. Authorization
            1. Scenario on Authenticating an API App and consuming the authenticated API App
        5. Summary
      12. 4. What is Azure API Management?
        1. The anatomy of Azure API Management
          1. API and operations
          2. Objects within API Management
          3. Azure API Management policies
        2. Working with Azure API Management
          1. Creating your first Azure API Management instance
          2. Publisher portal and Developer portal
          3. Importing the API definition through the Publisher portal
          4. Managing user access rights for Products and APIs
          5. Customizing the developer experience
        3. Policies in Azure API Management
          1. How to use Policies in Azure API Management
          2. Working with policies in the Publisher portal
          3. What are the different policies available in the Publisher portal?
          4. Basic Scenario #1 – Throttle Requests Using a Rate Limit Policy
          5. Basic Scenario #2 – Rewrite the public facing URI for the GetProducts API operation
          6. Getting slightly more advanced – Modify default API behavior using conditional statements
        4. Securing your API in Azure API Management
          1. Securing your API backend with mutual certificates
          2. Securing your API backend with Azure Active Directory
          3. VPN connection in Azure API Management
        5. Monitoring your API
          1. Analytics in the Publisher portal
          2. Logging to EventHub
        6. Summary
      13. 5. Trigger Your First Logic App in Azure
        1. An introduction to Logic App
        2. The comparison between BizTalk server and Logic Apps
        3. Why and when to use
        4. Diagnosing Logic Apps
        5. Building your first Logic App
          1. Create Azure SQL server, database, and table
          2. Create Logic App and workflow
        6. Logic Apps using Visual Studio
          1. Visual Studio 2015 configuration steps for Logic App
          2. Run Visual Studio 2015 as administrator
          3. Create Resource group template for Logic App
            1. Polling Twitter for #SunnyElectricals
            2. Code view
            3. Deployment
        7. Summary
      14. 6. Working with Connectors in Logic Apps
        1. Categorizing Microsoft connectors
          1. Standard connectors
          2. Enterprise Integration connectors
          3. Connectors as triggers
        2. Types of triggers
        3. Connector as an action
          1. Standard Actions:
          2. Collection Actions
        4. Building your first connector
          1. Azure Storage Table connector
        5. Make your connector work for Logic Apps
        6. Adding summary and XML Documentation
        7. Discovering partion keys in the storage table
        8. Summary
      15. 7. Azure Functions in Logic Apps
        1. The basics of Azure Functions
          1. Runtime environment
          2. Bindings, languages, and function types
        2. Building Azure Functions
          1. Creating a function
          2. The structure of a Function App
          3. Adding complexity
          4. Adding integration
        3. Using functions with Logic Apps
          1. Calling functions directly
            1. Scenario - Invoice checker
        4. Other considerations
          1. Deploying your Function App
          2. Testing your Function App
          3. Scaling your Function App
          4. Monitoring your Function App
          5. Managing your Function App
        5. Summary
      16. 8. A Deep Dive into Logic Apps
        1. Workflow definition language
        2. Parameters
        3. Output
          1. Expression
          2. Operators
          3. Functions
        4. Content type in Logic Apps
          1. Content-Type header
          2. Text/plain
          3. Application/json
          4. Application/XML
        5. Flow controls, SplitOn, and scope in Logic Apps
          1. For each loop
          2. The Do Until loop
          3. SplitOn
          4. Switch statement
          5. Single run instance
          6. Scope
        6. Exception handling in Logic Apps
          1. Scopes to catch failures
          2. Retry Policies
          3. The runAfter property to catch failures
          4. Logic App to update on-premise warehouse with data gateway
          5. On-premise data gateway for Logic Apps
          6. Microsoft account prerequisites for installing on-premise data gateway for Logic Apps
          7. Installation and configuration on-premise data gateway
          8. Installing on-premise data gateway:
          9. Creating a work or school identity in Azure Active Directory
        7. Summary
      17. 9. Powerful Integration with SaaS Using Logic Apps
        1. Exploring the Logic App SaaS connectors
        2. Hooking up to SaaS solutions using the SaaS connectors
          1. Working with Dynamics 365 and Office 365
          2. User authorization using the Salesforce connector
          3. Salesforce connector - Under the hood
          4. Leveraging the Salesforce connector: Sunny Electricals automated credit check solution
          5. Reaching out to the credit check API
          6. Processing the credit check report using an Azure Function
          7. Triggering automatic account creation using the Salesforce connector
          8. Testing the credit check solution
          9. Hybrid scenarios
        3. Summary
      18. 10. Advanced Integration with Powerful, Scalable Service Bus in the Cloud
        1. Service Bus types
        2. Service Bus tiers
        3. Service Bus Queue characteristics
          1. Message size
          2. Time to live
          3. Dead-lettering
          4. Sessions
        4. Retrieving messages off a queue
        5. Deferring message processing
        6. Security
          1. Handling service bus subscription security
        7. Managing Service Bus outages and disasters
        8. Service Bus topics
        9. Subscriptions
          1. Subscription rules
          2. Rule filter
          3. Rule action
        10. Partitioned queues/topics
        11. Administration tools
          1. Scenario
          2. PremiumInvoice and Invoice topic subscription creation
        12. Summary
      19. 11. Connecting to Event Hubs and an Introduction to IoT Hubs
        1. An introduction to Event Hubs
          1. Security in Event Hubs
          2. Event Hub streaming and partitions
          3. Consumer groups
          4. Reading from an Event Hub
            1. Replaying of messages
            2. Poisoned messages
          5. Connecting to Event Hubs
        2. Introduction to Azure IoT Hubs
          1. Getting started with IoT Hub
            1. Differences between Event Hub and IoT Hub
          2. Security in IoT Hub
            1. The device identity registry
            2. Shared access policies
            3. Shared access signatures
            4. X.509 certificates
            5. IP filtering
          3. Monitoring your IoT Hub
          4. Communicating with IoT Hub
            1. D2C messaging
            2. C2D messaging
            3. Receiving C2D messages
            4. Processing D2C messages
          5. Uploading files
          6. IoT Hub tools
            1. Device Explorer
            2. iothub-explorer
          7. IoT gateways
            1. IoT Hub protocol gateway
            2. IoT Hub gateway SDK
          8. IoT suite
        3. Scenario - bringing it all together
        4. Summary
      20. 12. EAI/B2B Integration Using Logic Apps
        1. Enterprise Integration Pack for Logic Apps
        2. Enterprise messaging in Logic Apps
          1. Logic Apps Enterprise Integration Tool
        3. Enterprise Integration Pack connectors
          1. Enterprise Integration templates
          2. Building your first Enterprise Messaging solution
        4. Add partners in your workflow
          1. Creating a partner within the Integration Account
          2. Create an AS2 agreements
            1. Configure your agreement to handle receive messages
            2. Configure your agreement to send messages
        5. Store custom metadata information in Integration Accounts artifacts
          1. Add Metadata information to Integration Account artifacts
          2. Retrieve metadata from artifacts for logic apps
        6. Summary
      21. 13. Hybrid Integration Using BizTalk Server 2016 and Logic Apps
        1. Hybrid Integration
        2. Why Hybrid Integration?
          1. Maximize use of past/existing investment
          2. Customer privacy and data security
          3. Wider audience
        3. Message exchange pattern
          1. Datagram or one-way pattern
          2. Half-duplex or request-response
          3. Duplex Message Exchange Pattern
        4. What is a BizTalk Server?
          1. Azure Relay service
          2. SB-Messaging Adapter
          3. Logic App Adapter
          4. Installing and configuring an adapter in BizTalk Server 2016
          5. Installing the Logic Apps Adapter in BizTalk Server 2016
        5. Connecting on-premise BizTalk Server 2016 with Azure Logic App
          1. Step 1 - Creating Logic Apps for cognitive services
          2. Step 2 - Typed Polling with the WCF adapter
          3. Connecting to the Sunny Electricals database
          4. Creating a two-way send port for Logic Apps
        6. Connecting Azure Logic App with on-premise BizTalk Server 2016
          1. IIS configuration for Logic App Adapter
          2. Consuming a WCF Service in BizTalk 2016
          3. Creating a Logic App to call BizTalk
        7. Summary
      22. 14. Tooling and Monitoring for Logic Apps
        1. Tools to monitor Azure resources
          1. Deployment options
        2. Azure Resource Management templates
          1. Parameters
          2. Variables
          3. Resources
          4. Outputs
          5. Expressions and Functions
          6. Parameter Files
          7. Deploying templates
        3. Creating ARM Template using Visual Studio
          1. Best practices
        4. Manual deployments of App Services
          1. FTP
          2. MS Visual Studio
          3. Synch
          4. Local Git
        5. Continuous deployment
          1. Azure Function deployments
          2. Managing solutions using PowerShell
        6. Monitoring
          1. Metrics
            1. Add metric alert
            2. Diagnostics settings
            3. The OMS Portal
        7. Logic App monitoring
          1. Run history
          2. Trigger history
        8. Logic App message logging with Azure Functions Application Insights
        9. Summary
      23. 15. Whats Next for Azure Integration?
        1. An integration roadmap for the future
        2. What and when of Microsoft Azure integration
        3. Business productivity transformation
          1. An introduction to PowerApps
          2. An introduction to Microsoft Flow
          3. Keeping up with the pace of change
        4. Final thoughts

    Product information

    • Title: Robust Cloud Integration with Azure
    • Author(s): Mahindra Morar, Abhishek Kumar, Martin Abbott, Gyanendra Kumar Gautam, James Corbould, Ashish Bhambhani
    • Release date: March 2017
    • Publisher(s): Packt Publishing
    • ISBN: 9781786465573