Containers offer a great way to develop and run applications in a consistent environment. You can develop your app in a container on your local development machine, and run that same container in production, thereby eliminating differences in infrastructure between environments. And now, you can easily run containers in Azure withAzure Container Apps. Azure Container Apps abstracts the overhead of infrastructure and orchestration, making it easy for you to deploy and run a container.
Click theCreate a resourcebutton (the plus-sign in the top left corner)
Search forContainer App, select the "Container App" result and clickCreate
Select aResource Group
ClickCreate newfor the Container App environment. This environment houses the Log Analytics Workspace that will be used for monitoring and can contain one or more Container Apps which all write to this Log Analytics Workspace
Fill in anEnvironment name
Select aRegionfor the environment
Select an existingLog analytics workspaceor create a new one
ClickCreateto return to the Create Container App wizard
Create an Azure Container App
ClickNext: App settings
You can specify a container in a container registry to run in the Container App. We will use a quickstart image, so check the"Use quickstart image"checkbox. This will also set the Container App CPU and memory and network settings
Configure Azure Container App settings
ClickReview + createand thenCreate
When the Container App is deployed, navigate to it in the Azure portal. You'll see that it has anApplication URL.
Azure Container App in the Azure portal
Click on the Application URL to open the sample application that is now running in the Container App.
The sample application running in an Azure Container App
You can configure the Container App by changing the ingress settings, to enable or disable incoming traffic and the target network port. You can also configure secrets that the container can use, and setup continuous deployment with GitHub Actions to automatically build and deploy code to the Container App. Pretty cool.
Azure Container Apps offers an easy way to run containers in Azure with minimal configuration and management overhead. Azure does the heavy lifting for you. Create a trial account today and go and check it out!