Deploy Java Maven Stand Virtual Machine Scaleset

Ridwan Suleiman (PGR) 1 Reputation point
2022-01-27T14:07:15.627+00:00

I have been trying to upload a Maven Java stand alone code to a VMSS but I have been getting errors attached in the accompanying log. Can someone please help?

I have the following tasks:

Initialize Job
Download the artefact
Build immutable machine image
Azure powerShell Script: InlineScript
Azure VMSS: update immutable machine image

169087-tasklog-62.log

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
382 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. srbhatta-MSFT 8,551 Reputation points Microsoft Employee
    2022-02-02T13:09:00.797+00:00

    Hi @Ridwan Suleiman (PGR) ,
    Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused. Looking at the log file shared, it looks like the Maven tool has not been configured properly on the VM. It seems from the first two errors that the server has not been setup to run the application correctly. We could have assisted form infrastructure standpoint, but as this is from application side within the operating system, this has to be checked on your end.

    One suggestion is to reinstall Maven on a fresh VM to see if that helps.

    If you are not able to fix this at your end, requesting you to open a Azure support ticket so that a dedicated support engineer will assist you in investigating the issue.
    Here is a reference link I found on how to create and manage Windows VMs in Azure using Java, not sure how related it is to your issue, but you can give it a look if it helps you: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/java.

    Please feel free to reach out to me in case of any queries by tagging me.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.