diff --git a/docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/POST.md b/docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/POST.md index a4ab227115..6d0c60407d 100644 --- a/docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/POST.md +++ b/docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/POST.md @@ -1,8 +1,8 @@ -# Azure Container Apps Deployment with ABP: A Comprehensive Guide +# Deploy Your ABP Framework MVC Project to Azure Container Apps ![](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. +In this article, we will show the seamless deployment of an ABP Framework MVC project to Azure Container Apps. enabling you to deploy and run containerized applications without the hassle of managing the infrastructure underneath. It provides an uncomplicated and cost-effective method for deploying and scaling your applications. ### Getting Started with ABP Framework MVC and Azure Container Apps @@ -22,13 +22,13 @@ Next, check the Docker Hub repository to confirm that the image has been pushed ### 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. +Now that you have Docker images 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. Ypu will not need just an Azure Container Apps resource, but also an Azure Container Apps Job resource to migrate the database schema and seed data for your ABP Framework MVC project. ![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. +Firstly, create a new Azure Container Apps resource without environment variables. You will need web url so that you can set it as an environment variable in the next step. Then, check the deployment status to confirm that the deployment was successful. ![Deploy Docker Image](deploy-docker-image.png) @@ -36,11 +36,13 @@ Firstly, create a new Azure Container Apps resource without environment variable Secondly, create a new Azure Container Apps Job resource to migrate the database schema and seed data. You can do this by creating a new job with the following environment variables: -- `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;` +```text +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; -- `OpenIddict__Applications__mvcapppro_Web__RootUrl` - `https://mvcwebapp.victoriousgrass-8b06438d.northeurope.azurecontainerapps.io` +OpenIddict__Applications__mvcapppro_Web__RootUrl - https://mvcwebapp.victoriousgrass-8b06438d.northeurope.azurecontainerapps.io 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](azure-sql-database-connection-strings.png) @@ -54,13 +56,15 @@ Finally, check the job status to confirm that the database migration and seeding After completing these steps, you have to edit the Azure Container Apps resource to add the required environment variables for your ABP Framework MVC project. You can do this by adding the following environment variables: -- `App__SelfUrl` - `https://mvcwebapp.victoriousgrass-8b06438d.northeurope.azurecontainerapps.io` +```text +App__SelfUrl - https://mvcwebapp.victoriousgrass-8b06438d.northeurope.azurecontainerapps.io -- `ASPNETCORE_URLS` - `http://+:80` +ASPNETCORE_URLS - http://+:80 -- `AuthServer__Authority` - `https://mvcwebapp.victoriousgrass-8b06438d.northeurope.azurecontainerapps.io` +AuthServer__Authority - https://mvcwebapp.victoriousgrass-8b06438d.northeurope.azurecontainerapps.io -- `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;` +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](add-environment-variables.png) diff --git a/docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/azure-container-abp.png b/docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/azure-container-abp.png index c22ae79bfd..e446cc69d2 100644 Binary files a/docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/azure-container-abp.png and b/docs/en/Community-Articles/2024-05-07-Azure-Container-Apps-Deployment-with-ABP/azure-container-abp.png differ