Browse Source

Fixed paths of images

pull/19725/head
selmankoc 2 years ago
parent
commit
4aebb9f857
  1. 22
      docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/POST.md

22
docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/POST.md

@ -1,6 +1,6 @@
# Azure Container Apps Deployment with ABP: A Comprehensive Guide
![](./images/azure-container-abp.png)
![](azure-container-abp.png)
In this article, we will explore the seamless deployment of an ABP Framework MVC project to Azure Container Apps. Azure Container Apps is a fully managed Azure service that allows you to deploy and run containerized applications without managing the underlying infrastructure. It offers a simple and cost-effective way to deploy and scale your applications.
@ -14,23 +14,23 @@ Before creating Azure container apps resources and deploying the ABP Framework M
To create a Docker image for your ABP Framework MVC project, navigate to `etc/build/build-images-locally.ps1` and fix the script to match your Docker Hub username and image name. Then, run the script to build the Docker image locally.
![Build Docker Image](./images/build-docker-image.png)
![Build Docker Image](build-docker-image.png)
Next, check the Docker Hub repository to confirm that the image has been pushed successfully.
![Docker Hub Repository](./images/docker-hub-repository.png)
![Docker Hub Repository](docker-hub-repository.png)
### Deploying to Azure Container Apps
Now that you have a Docker image for your ABP Framework MVC project, you can proceed to deploy it to Azure Container Apps. To do this, navigate to the Azure portal and create a new Azure Container Apps resource.
![Create Azure Container Apps](./images/create-azure-container-apps.png)
![Create Azure Container Apps](create-azure-container-apps.png)
#### Step 1: Deploy the Docker Image
Firstly, create a new Azure Container Apps resource without environment variables. Then, check the deployment status to confirm that the deployment was successful.
![Deploy Docker Image](./images/deploy-docker-image.png)
![Deploy Docker Image](deploy-docker-image.png)
#### Step 2: Migrate Database Schema and Seed Data
@ -42,13 +42,13 @@ Secondly, create a new Azure Container Apps Job resource to migrate the database
To get ConnectionStrings of Sql Database and url of the web app, you can navigate to the Azure portal and check the properties of the Azure SQL database and Azure Container Apps resource.
![Azure SQL Database Connection Strings](./images/azure-sql-database-connection-strings.png)
![Azure SQL Database Connection Strings](azure-sql-database-connection-strings.png)
![Create Azure Container Apps Job](./images/create-azure-container-apps-job.png)
![Create Azure Container Apps Job](create-azure-container-apps-job.png)
Finally, check the job status to confirm that the database migration and seeding were successful. You can connect to the Azure SQL database to verify that the schema and seed data have been applied.
![Check Job Status](./images/check-job-status.png)
![Check Job Status](check-job-status.png)
#### Step 3: Edit the Azure Container Apps Resource
@ -62,17 +62,17 @@ After completing these steps, you have to edit the Azure Container Apps resource
- `ConnectionStrings__Default` - `Server=tcp:demoabpapp.database.windows.net,1433;Initial Catalog=mvcapppro;Persist Security Info=False;User ID=demoapppro;Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;`
![Add Environment Variables](./images/add-environment-variables.png)
![Add Environment Variables](add-environment-variables.png)
#### Step 4: Create a New Deployment
Once you have added the environment variables, save and create a new deployment to apply the changes. You can now access your ABP Framework MVC project running on Azure Container Apps by navigating to the URL provided in the environment variables.
![Access ABP Framework MVC Project](./images/access-abp-framework-mvc-project.png)
![Access ABP Framework MVC Project](access-abp-framework-mvc-project.png)
You can see the Azure resources created for the ABP Framework MVC project deployment that includes the Azure Container Apps resource, Azure Container Apps Job resource, and Azure SQL database.
![Azure Resources](./images/azure-resources.png)
![Azure Resources](azure-resources.png)
### Conclusion

Loading…
Cancel
Save