Hi,
How to automate VMware VDI using power automate desktop and how to bypass MFA
Thanks in advance
What do yo mean exactly when saying "how to automate VDI"?
There are 3 scenarios:
1. You install full Power Automate Desktop and machine runtime on the VDI, then run flows on that machine, flow accesses applications and web sites on that VDI. In this scenario it does not matter if this is VDI or physical machine, it is just computer.
2. For some reason you cannot / do not want to install full Power Automate Desktop/machine runtime on the VDI. Then you install Power Automate for VM agent and full machine runtime on any other computer (VM or physical). You execute/run your flow on that machine with full machine runtime, it then connects to the VDI and executes UI automation by communicating with the agent installed on VDI. Web automation you need to execute on the machine with full machine runtime.
https://learn.microsoft.com/en-us/power-automate/desktop-flows/virtual-desktops
3. If for any reasons you cannot install the power automate desktop for VM agent, your last option is to execute your flows on another computer with full PAD/machine runtime installed and then use the combination of image recognition/ocr/mouse movements/send keys etc - that sucks but is doable in some scenarios
When it comes to 2fa - if this is in corporate/managed environment - work with your IT to disable it for automation service accounts (not regular user's account), that's the proper way.
If not possible, but still you want to automate it - you can create flow that logs into the app, receives the 2fa prompt, asks user to enter the code/whatever needs to be entered/done, and once user confirm, it continues with next actions.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional