
In this azure tutorial, we will discuss the Azure web app for containers. Also, we will discuss on the below topics
- Create an Azure web app for containers
- What are Windows containers?
- What are Kubernetes containers?
- How do you stop a container?
- Azure Web App for Containers Pricing
Table of Contents
Azure web app for containers
Azure Web App for Containers is a component of the Azure App Service platform and is an excellent option for developers who need more control over the runtime, framework, and tooling of a web application.
Azure Web App For Containers Tutorial
This is an excellent Azure service that helps developers to package their application and all related dependencies in a container and then host the container on the Web Application.
- Web App for Containers is purely a Platform as a Service (Paas)
- It runs on a single container and can also run on multiple containers using a docker-compose.
- Web app for container supports both windows or Linux docker containers.
- Web App for Container supports different DevOps tools such as Azure DevOps, Jenkins, Maven, etc
- In the case of non-Microsoft applications, we need to install all the dependencies before hosting the main application.
Create an Azure web app for containers
Now let’s discuss on how to create an Azure web app for containers in the Azure portal.
- Log in to the Azure portal (https://portal.azure.com/)
- Click on the + Create a resource button from the left navigation.

Or for the same option, you can click on the + Create a resource button from the Azure services section.

- Now from the New page, search for web app for containers.

- For the same option, you can also search for the web app for containers directly after logging in to the Azure portal.

- Click on the Create button

- For the same option, you can also search for the web app for containers directly after login into the Azure portal. Then click on the search result Web App for Containers under Marketplace.

In the Web App window, From the Basics tab, Fill the below details
- Subscription: Choose your subscription details.
- Resource Group: You can create a new resource group by clicking the Create new link or you can select the existing Resource Group.
- Name: Provide a name
- Publish: Choose the Docker container for the Publish option.
- Operating System: you can choose the operating system as Linux or windows.
- Region: You can choose your region.
- Linux Plan(Central US): You can create a new one or u can use the default one selected based on your region.
- SKU and Size: Based on the Linux plan selected this option will auto-populate.


- Click on the Next: Docker > button to go to the Docker tab.
- In the Docker, tab keep the default option as it is. You can also change as per your business needs.

- Now click on the Next: Monitoring > button to go to the Monitoring tab.
- Keep the default option as it is in the Monitoring tab.

- Click on the Next: Tags > button to go to the Tags tab.
- Don’t change anything on the Tags tab. Keep the default option as it is

- Now click on the Next: Review + create > button

- Click on the Create button. You can see below the deployment is completed. Click on the Go to resource button.

See below it is created successfully.

What are Windows containers?
- Windows containers are nothing but portable operating environments supported by the Microsoft Windows Server 2016 operating system.
- You can manage Windows containers by using different tools like Docker and PowerShell.
- A container is a logical environment that is created on a computer where any of the applications can run.
There are two types of Windows containers based on the Microsoft Windows server operating system
- Windows Server containers: Windows server containers always rely on the windows server kernel.
- Hyper-V containers: Hyper-V Containers are isolated virtual machines that incorporate their own copy of the Windows kernel.
What are Kubernetes containers?
- Kubernetes is an open-source platform from Google for running containers.
- This is a container orchestration system for Docker containers that is more extensive than Docker Swarm and is meant to coordinate clusters of nodes at scale in production in an efficient manner.
- You can use Kubernetes containers is mostly with Docker but can be used with other containers as well.
How do you stop a container?
Before we have decided to stop the container, We can check if there is any container running
The below command will display the list of containers that are currently running.
$sudo docker ps
Once you will get the list of containers running, now to stop it and use the below command
docker stop [OPTIONS] CONTAINER [CONTAINER]
Options:
–time , -t You can mention how many seconds to wait for a stop before killing it
The default number of seconds the command will wait before killing the container is 10 seconds.
Example:
$ docker stop Demo_container
Azure Web App for Containers Pricing
You will get paid for the Azure web app for container based on the app service plan you have.
You can check out the complete pricing now.
You may also like the below articles
Conclusion
In this Azure tutorial, We discussed
- Azure web app for containers
- Create an Azure web app for containers
- What are Windows containers and Kubernetes containers?
- How do you stop a container?
- Azure Web App for Containers Pricing
Hope, you have enjoyed this article !!!