You should install the azure CLI into your build and use it's commands to deploy the jar.
There is a similar question here: https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-use-the-BB-Pipelines-Azure-Deployment/qaq-p/565498
This article, if you go past the instructions on creating an Azure environment and app, has examples of how to push a sprintgboot fat jar to your application
The best approach might be to write a script in your repo that builds your code and another script that does the deploy - it is then much easier to test this locally and get it working and then reference those scripts from the bitbucket-pipelines.yml file.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.