I am trying to deploy my application.
In theory, it is incredibly simple what I want to do :
I basically already have a spring boot app running on Azure called shape-shop. Locally I have made some tiny change to shape-shop and I want to deploy this to Azure.
Now I simply want to replace the currently running in azure JAR file with the newly created JAR file.
I perform mvn clean package -DskipTests=true
I then want to deploy it, and run this command :
C:\dev\shape-shop-back-end>az spring app deploy --resource-group shapeShopResourceGroup --service shapeshop2 --name shape-shop-app --artifact-path target/shape-shop-backend-0.1.0.jar
This command usually takes minutes to run. Add '--verbose' parameter if needed.
[1/3] Requesting for upload URL.
[2/3] Uploading package to blob.
[3/3] Updating deployment in app "shape-shop-app" (this operation can take a while to complete)
Your application failed to start, please check the logs of your application.
But I get the "application failed to start" error.
resourcegroup, service, and name all seem to be correct.
I also notice in azure, that my spring boot app live production has died (which is terrible). Whatever issues I may have with my deployment, I do not want it to destroy my live production instance!
If I look further into the documentation (which is very poor) for deploying spring boot apps to azure, it seems to suggest using some kind of "Maven Plugin for Azure Spring Apps", which I am very uncomfortable about because what I want to do is very simple and I would assume that it would be some simple "az deploy" command that I would need to run. I do not want to have to install something else now.
But anyway, I go ahead and paste in this :
<pluginRepositories>
<pluginRepository>
<id>maven.snapshots</id>
<name>Maven Central Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
and then run this :
mvn com.microsoft.azure:azure-spring-apps-maven-plugin:1.10.0:config
and then after 10 minutes of things getting downloaded, I get this error :
Can anyone help here with the multiple issues I have with azure-spring-boot? Is it worth switching to something like AWS for spring boot apps, because deployment of spring boot apps in azure seem dangerously unreliable and bizarrely complex.



When I tried to deploy my spring application to existing Azure Spring Apps with Standard consumption & dedicated (preview) plan, I was facing the issues.
I followed below steps to deploy the application successfully to Azure Spring Apps.
This configuration for deployment will be added to
pom.xml:Portal:
Response: