更新时间:2021-03-26 16:09:32
封面
版权信息
Preface
About
About Azure Serverless Computing Cookbook Third Edition
1. Accelerating cloud app development using Azure Functions
Introduction
Building a back-end web API using HTTP triggers
Persisting employee details using Azure Table Storage output bindings
Saving profile picture paths to queues using queue output bindings
Storing images in Azure Blob Storage
Resizing an image using an ImageResizer trigger
2. Working with notifications using the SendGrid and Twilio services
Sending an email notification using SendGrid service
Sending an email notification dynamically to the end user
Implementing email logging in Azure Blob Storage
Modifying the email content to include an attachment
Sending an SMS notification to the end user using the Twilio service
3. Seamless integration of Azure Functions with Azure Services
Using Cognitive Services to locate faces in images
Monitoring and sending notifications using Logic Apps
Integrating Logic Apps with serverless functions
Auditing Cosmos DB data using change feed triggers
Integrating Azure Functions with Data Factory pipelines
4. Developing Azure Functions using Visual Studio
Creating a function application using Visual Studio 2019
Debugging Azure Function hosted in Azure using Visual Studio
Connecting to the Azure Storage from Visual Studio
Deploying the Azure Function application using Visual Studio
Deploying Azure Functions in a container
5. Exploring testing tools for Azure functions
Testing Azure functions
Testing an Azure function in a staging environment using deployment slots
Creating and testing Azure functions locally using Azure CLI tools
Validating Azure function responsiveness using Application Insights
Developing unit tests for Azure functions with HTTP triggers
6. Troubleshooting and monitoring Azure Functions
Troubleshooting Azure Functions
How to do it…
Integrating Azure Functions with Application Insights
Monitoring Azure Functions
Pushing custom metrics details to Application Insights Analytics
Sending application telemetry details via email
Integrating Application Insights with Power BI using Azure Functions
7. Developing reliable serverless applications using durable functions
Configuring durable functions in the Azure portal
Creating a serverless workflow using durable functions
Testing and troubleshooting durable functions
Implementing reliable applications using durable functions
8. Bulk import of data using Azure Durable Functions and Cosmos DB
Business problem
The durable serverless way of implementing CSV imports
Uploading employee data to blob storage
Creating a blob trigger
Creating the durable orchestrator and triggering it for each CSV import
Reading CSV data using activity functions
Autoscaling Cosmos DB throughput
Bulk inserting data into Cosmos DB
9. Configuring security for Azure Functions
Enabling authorization for function apps
Controlling access to Azure Functions using function keys
Securing Azure Functions using Azure Active Directory
Throttling Azure Functions using API Management
Securely accessing an SQL database from Azure Functions using Managed Identity
Configuring additional security using IP whitelisting
10. Implementing best practices for Azure Functions
Adding multiple messages to a queue using the IAsyncCollector function
Implementing defensive applications using Azure functions and queue triggers
Avoiding cold starts by warming the app at regular intervals
Sharing code across Azure functions using class libraries
Migrating C# console application to Azure functions using PowerShell
Implementing feature flags in Azure functions using App Configuration
11. Configuring serverless applications in the production environment
Deploying Azure functions using the Run From Package feature
Deploying Azure functions using ARM templates
Configuring a custom domain for Azure functions
Techniques to access application settings
Breaking down large APIs into smaller subsets using proxies
Moving configuration items from one environment to another
12. Implementing and deploying continuous integration using Azure DevOps
Continuous integration—creating a build definition
Continuous integration—queuing a build and triggering it manually
How to do it...
Continuous integration—configuring and triggering an automated build
Continuous integration—executing unit test cases in the pipeline
Creating a release definition
Triggering a release automatically
Integrating Azure Key Vault to configure application secrets