|
| 1 | +# springboot-apiapp-azure |
| 2 | +Springboot App which deploys on Azure as an API APP. |
| 3 | +# Pre requisites : Eclipse, Azure Subscription, Azure CLI, Maven Installed in your System. |
| 4 | + |
| 5 | +1. Import the Project as an "Existing Maven Project" in Eclipse. |
| 6 | + - This uses pom.xml configuration. |
| 7 | + <groupId>com.microsoft.azure</groupId> |
| 8 | + <artifactId>azure-webapp-maven-plugin</artifactId> |
| 9 | + <version>1.7.0</version> |
| 10 | + <configuration> |
| 11 | + <schemaVersion>V2</schemaVersion> |
| 12 | + <resourceGroup>YOUR RESOURCE GROUP</resourceGroup> |
| 13 | + <appName>YOUR APP NAME</appName> |
| 14 | + <appServicePlanResourceGroup>APP SERVICE PLAN RESOURCE GROUP</appServicePlanResourceGroup> |
| 15 | + <appServicePlanName>APP SERVICE PLAN NAME</appServicePlanName> |
| 16 | + <pricingTier>F1</pricingTier> |
| 17 | + <region>eastus</region> |
| 18 | + <runtime> |
| 19 | + <os>windows</os> |
| 20 | + <javaVersion>1.8</javaVersion> |
| 21 | + <webContainer>tomcat 9.0</webContainer> |
| 22 | + </runtime> |
| 23 | + |
| 24 | +2. Changes required to Connect to your Database: |
| 25 | +\src\main\resources\application.Properties - Specify the SQL Connection Properties for SQL Server. |
| 26 | +spring.mmand datasource.url= |
| 27 | +spring.datasource.username= |
| 28 | +spring.datasource.password= |
| 29 | + |
| 30 | +3. Open Command Prompt |
| 31 | + |
| 32 | +4. Browse to Project Path: |
| 33 | + > cd Project_Path |
| 34 | + |
| 35 | +5. Build the Maven Project |
| 36 | + > mvn clean install -DskipTests |
| 37 | + |
| 38 | +6. Download Azure Cli |
| 39 | + > az login |
| 40 | +
|
| 41 | +7. Deploy the Built Maven Project to Azure API APP. |
| 42 | + If the API - APP Exists in Azure -pom.xml has <appName>YOUR APP NAME GOES HERE</appName> |
| 43 | + > mvn azure-webapp:deploy |
| 44 | +
|
| 45 | + |
| 46 | + |
| 47 | + |
0 commit comments