Spring on Azure
Run project on Azure Web App
By now, the spring framework project is working successfully on localhost now, so we can continue to publish it to Azure by using Azure toolkit.
1. Build Artifacts into war file
- Step 1: Select Build in the top pane.
- Step 2: Select All Artifacts.
- Step 3: Select Build.
2. Publish as Azure Web Application
- Step 1: Right click on the project name, select Azure and then select Publish as Azure Web Application.
- Step 2: Configure your web app settings.
- Step 3: Click ‘Run’ to begin deploy.
Note that you can either choose to use Existing Web App or Create New Web App. And if you choose to Create New Web App, you can change the properties like name of website, Azure subscription, Web container and Resource Group. And here we use Tomcat 8.5 and Java 8 in this tutorial.
3. Open the web application
When successfully deployed, you can click on the given link or open a new explorer page and input the website link to get access to your web application.
4. Manage and update the web application
You can manage your Azure services using Azure Explorer in the left pane. And Azure Toolkit also provide an efficient way to enable you edit in IntelliJ and update Azure Web App by the following steps,
- Step 1: Make your changes.
- Step 2: Edit configuration and select ‘Azure Web App’ as target.
- Step 3: Click on ‘Run’ button to update.
I ran into an issue I have deployed a spring project