Deploying containers to Azure App Service
In the previous section, you learned what Azure App Service for Containers is. Now, it is time to create your first container. To achieve this, we need a few things:
- Azure Cloud Shell with the Azure CLI to run our commands
- A resource group as a place for our resources to live
- An App Service plan for hosting our App Service
- A web app to host our container image
- The container image
This sounds like a lot, but luckily, a lot of these resources can be created just by running a couple of commands. It is, however, important to understand the layers we just described in the preceding list.
First, we need a resource group since every resource in Azure needs a place to live. The resource group is the logical container in which we can group our resources, configure role-based access control (RBAC), or use a scope for our Azure policies.
Then, we need a form of hosting. For that, we will deploy an App Service plan...