This tutorial shows you how to deploy this containerized app to Azure Web App for Containers using Azure Toolkit for IntelliJ. Below are the major steps in this tutorial.
-
login your Azure CLI, and set your subscription id
az login az account set -s <your-subscription-id>
-
Run below command to create an Azure Container Registry. After creation, use
login server
as Container Registry URL in the next section.az acr create -n <your-registry-name> -g <your-resource-group-name> --sku <sku-name>
where
<sku-name>
is one of the following:{Basic,Managed_Basic,Managed_Standard,Managed_Premium}
. -
Run below command to show your Azure Container Registry credentials. You will use Docker registry username and password in the next section.
az acr credential show -n <your-registry-name>
You may be prompted to run az acr update -n <your-registry-name> --admin-enabled true
to enable admin first.
-
Create or import a Maven project in IntelliJ IDEA.
-
If you don't already have a Dockerfile, right-click on the project and choose "Azure -> Add Docker Support" to automatically generate one.
-
Right-click on the project and choose "Azure -> Run on Web App on Linux".
-
Provide Azure Container Registry and Web App for Containers configuration info, and hit run.
You will see this app successfully running on Azure Web App for Containers.