How to start and connect to Minecraft Java Edition Server
1. To run the server you should find the “Start Server” shortcut on the desktop of the VM and run it.
2. (Optional) For the server to work better, go to the C:\Minecraft-Server folder, create a bat file with any name and add the following text “java -Xmx1024M -Xms1024M -jar server.jar nogui” to it. Then run it to start the server. Thus, more RAM will be allocated to the server.
3. For the connection to the server you should know the IP address of the VM. You can find it in the personal account of Azure. (You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line of “Public IP Address”).
4. Run your client to play the Minecraft Java Edition.
5. Click “Multiplayer” in the main menu.
6. Click “Add Server”.
7. In the appeared window, in the “Server Name” field name the server as you like.
8. In the “Server Address” field enter the IP address of the VM and click “Done”.
9. In the server list, select the previously added server and click “Join Server”.