From the course: Extend Web Application Functionality on Microsoft Azure
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
Exploring and understanding the refactored solution - Azure Tutorial
From the course: Extend Web Application Functionality on Microsoft Azure
Exploring and understanding the refactored solution
- [Instructor] To speed things up, I already refactored the code, so we have two projects. The first one is the web application itself, and the other one is a web API project. So here in this web API, I have a couple of controllers, the PetsController and the BreedsController. So let's go ahead and open the BreedsController so you can see that I have GetAll, and then Get for a single pet, and then Add for creating a pet, and finally for updating a pet. So I'm using the Entity Framework Core code that we had before. And also, I created those model classes so we can return model objects instead of the entities themselves. And speaking of the secrets, let me show you that I'm using the AZURE_SQL_CONNECTIONSTRING item instead of the connection string that we had before. And this is because when this application is running in Azure Container Apps, we're going to create a service connector that uses this value. Okay, so…
Contents
-
-
-
-
-
-
(Locked)
Deploying your app on containers using Azure Container Apps19s
-
(Locked)
Provisioning the Azure Container Registry resource1m 38s
-
(Locked)
Exploring and understanding the refactored solution5m 10s
-
(Locked)
Creating the container images using the Azure CLI3m 11s
-
(Locked)
Creating the Azure Container Apps environment2m
-
(Locked)
Creating the Container App for the web API4m 37s
-
(Locked)
Creating the Container App for the web application3m 7s
-
(Locked)
Testing the web application deployed on containers1m 17s
-
(Locked)
-