Book Image

Modernize ASP.NET Web Apps with Azure App Service [Video]

By : Marius Zaharia
Book Image

Modernize ASP.NET Web Apps with Azure App Service [Video]

By: Marius Zaharia

Overview of this book

<p>Do you want to transform and modernize your legacy applications for the cloud? Azure App Service lets you quickly build, refactor, deploy, and scale enterprise-grade web apps running on any platform, without having to manage the infrastructure. You will take a typical legacy ASP.NET web application and transform it into a modern application with ASP.NET Core and Azure App Service as the main drivers of the change.<br />By the end of this course, you will have the skills to use Azure App Service to refactor, modernize, deploy, and highly scale your legacy applications.<br />The code bundle for this video course is available at -&nbsp;<a href="https://github.com/PacktPublishing/Modernize-ASP.NET-Web-Apps-with-Azure-App-Service" target="_blank">https://github.com/PacktPublishing/Modernize-ASP.NET-Web-Apps-with-Azure-App-Service</a></p> <h1>Style and Approach</h1> <p>This practical guide demonstrates how to use Azure App Service features and functionalities to get the best out of your ASP.NET Core web application.</p>
Table of Contents (5 chapters)
Chapter 4
Convert Your App to Serverless and Container Architecture
Content Locked
Section 2
Deploy Microservices and Jobs to Azure Functions
We will adapt a part of MVC Music Store application’s services to the Serverless model with Azure Functions, deploy the microservice(s) to Azure Functions, and use this service within the application. - Create a new Azure Functions project for the Order Service: update Nuget package after creation, configure a first Function, and test locally. Create the Function classes (in a dedicated folder). 1 function = 1 action method of the controller. Copy existing artefacts from the old ASPNET Core Order Service project - Activate and adapt original code for Functions: include Nuget packages; create helper code (replacing the injection and configuration); configure locally. Test Locally. Create an Azure Function App. Configure database connection string - Deploy the new project to the Azure Function App. Change the code and configuration of the Front web to point to the new service: include the function app key in the calls’header. Redeploy the Front Web and test the application