This is just my understanding, but the VM screen is black when it runs in the background like minimized or closed so any image recognition fails.
However, what I have done and works like a charm is use the Invoke Workflow Interactive and set the correct resolution and depth, for example 1920x1080 and 32 depth; you might need to play with those numbers.
So in other words, you have a .xaml file that you use to publish that calls your main .xaml using that activity.
Also, that activity will disconnect you when you run it but you can log back in to watch it if you want after you start it.
Sounds very interesting approach, though I don’t think it will solve my problem. But I am assuming this has to do something with Azure GUI settings. Anyone else faced this issue ever?
Do you find solution to the issue stated here . I am facing similar issue . When I run bot in VM and at the same time RDP disconnected due to network issue makes bot runs into exception.
As the Bot runs in VM , it should not seek the local desktop to be connected till it runs.
Most of the time I observed , the bot fails when Hot key activity been called. But there are other scenario where bot fails during disconnection.
Please advise if i am missing any standard here while coding.