VM removing Java installation

Andrew Robie 1 Reputation point
2022-03-14T19:58:33.067+00:00

I set up a VM to do some Java development on azure and installed a number of tools including Oracle JDK 1.8 u202. Everything works fine for the most part, but certain things seem to remove some or all parts of the JDK installation. It seems to happen overnight pretty consistently, resizing seems to cause it, and occasionally restarting does too. Reinstalling Java isn't particularly difficult so it's not a blocker, and this is a pretty old version of Java, so I was wondering if this is expected behavior or if there's something up with my VM.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2022-03-14T23:16:56.447+00:00

    @Andrew Robie
    I understand that your Java installation is disappearing overnight, sometimes after resizing or a restart. Let me know if I am missing something.

    Based on the clues you provided I am guessing you might be installing this on the temporary disk. The temporary disk provides short-term storage for applications and processes, and is intended to only store data such as page or swap files. Data on the temporary disk may be lost during a maintenance event or when you redeploy a VM.

    On Azure Linux VMs, the temporary disk is typically /dev/sdb and on Windows VMs the temporary disk is D: by default. The temporary disk is not encrypted by server side encryption unless you enable encryption at host.

    Can you confirm if you are installing this on the main data disk or OS disk?

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


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.