Springboot App - This Connects to SQL Server Database and deploys on Azure as an API APP.
- Import the Project as an "Existing Maven Project" in Eclipse.
- This uses pom.xml configuration.
com.microsoft.azure
azure-webapp-maven-plugin
1.7.0
V2 YOUR RESOURCE GROUP YOUR APP NAME APP SERVICE PLAN RESOURCE GROUP APP SERVICE PLAN NAME F1 eastus windows 1.8 tomcat 9.0
-
Changes required to Connect to your Database: \src\main\resources\application.Properties - Specify the SQL Connection Properties for SQL Server. spring.mmand datasource.url= spring.datasource.username= spring.datasource.password=
-
Open Command Prompt
-
Browse to Project Path:
cd Project_Path
- Build the Maven Project
mvn clean install -DskipTests
- Download Azure Cli
az login
- Deploy the Built Maven Project to Azure API APP. If the API - APP Exists in Azure -pom.xml has YOUR APP NAME GOES HERE
mvn azure-webapp:deploy