Process bots in Azure virtual machine unattended

Hey,
I can’t run the bot in an Azure virtual machine, when it has screen interaction.
When I open the vm by RDP it works, but with it closed, only by the server of the error.
I need to process the bot unattended.
Can you help me?