Uipath and Azure Virtual Desktop

Hello everyone.
We are currently introducing UiPath into our project. We have built an Azure Virtual Desktop (remote desktop) to carry out our automated tests. How can I start and stop the VM automatically during the test execution.
Thanks

Hi @amel237

Your query is quite confusing could you be more specific…?

hello @mkankatala.
thank you very much for the feedback. my question is:
How can I start and stop an Azure Virtual Desktop automatically. Is there a UiPath activity to start/connecting on the remote desktop?

@amel237,

Your VM should be running before the bot kicks in. Login part bot will handle through unattended license and machine template you create.

There is no option to start the VM before login into from UiPath. Either you will have to do it manually or normally it’s managed by admin team.

1 Like

@amel237

so you dont need to perform any separate tasks…only thing is when you close the vdi…make sure you only logout but not shutdown…bot will login and logout when needed…credentails and all are to be provided in orchestartor under tenant → Machines

cheers

Thank you for the feedback.
How can I provide the login information and everything else in the Orchestrator under “Tenant → Machines”? I have no way of configuring the VM here. See image

@amel237,

Follow this to configure Robot account.

@amel237

In machines you would allocate licenses and get the machine template details

Go to manage access tab under tenant and that is where you create a user, assign robot role and under unattended setup option you have the option to provide the user credentials …

So the combination of machine and license is used

Cheers

hello @Anil_G, thanks for the feedback. I have already created a robot with this setting and it works well. See image below.
But if I start a process from orchestrator and my remote desktop is disconnected or unlocked, the process in orchestrator is pending until I manually reconnect the remote desktop. My question is:
How can I set up the robot so that when I start a process from orchestrator, the remote desktop automatically establishes the connection and carries out the processes?
![The image shows a user interface for editing access rules for a robot account in an automation platform, with configurable options for roles, credentials, logging, display resolution, and other settings.

@amel237

Becuase a user is already logged in it would not work…

You have to signout from the vm and not shutdown…when you signout the machine is available so the robot picks it up and uses it

I hope on the machine you connected to orcheatrator using clientid or machine key

Cheers

hello @Anil_G , thanks for the feedback.
But when I log out, I get this error message in Orchestrator:
29-01-2025_12-31-35

and when I start the process it says pending:

but if I log in manually in Remote Desktop and start UiPath assistant, the process runs again.

My question is:
How can I set up the Robot so that when I start a process from orchestrator, the remote desktop automatically establishes the connection, start UiPath assistant and carries out the processes?

@amel237

please follow these steps

  1. click start menu
  2. select the person icon
  3. select sign out

the point here is the vm should be running but user should be signed out…if you shutdown the vm is not available

and is the robot installed in service mode on the vm?

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.