Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (31 loc) · 1.79 KB

deploy-to-azure-web-app-using-intelliJ-plugin.md

File metadata and controls

45 lines (31 loc) · 1.79 KB

Deploy to Azure Web App for Containers using IntelliJ Plugin

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.

Create Azure Container Registry

  1. login your Azure CLI, and set your subscription id

    az login
    az account set -s <your-subscription-id>
  2. 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}.

  3. 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.

Deploy to Azure Web App for Containers using IntelliJ Plugin

  1. Create or import a Maven project in IntelliJ IDEA.

  2. If you don't already have a Dockerfile, right-click on the project and choose "Azure -> Add Docker Support" to automatically generate one.

  3. Right-click on the project and choose "Azure -> Run on Web App on Linux".

  4. 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.