Cant we view live execution of selenium scripts on windows -2022 Azure Hosted Machine?

Praveen Hudgi 1 Reputation point
2022-08-14T16:12:56.497+00:00

We are using agent "window-2022" machine for our selenium scripts execution .

But I want to view the live execution of selenium scripts on that agent machine ? Is there is any way to to view live execution ?

Azure Dedicated Host
Azure Dedicated Host
An Azure service that provides a dedicated physical server to host Azure virtual machines for Windows and Linux.
47 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,362 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,162 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. kobulloc-MSFT 23,341 Reputation points Microsoft Employee
    2022-08-15T14:45:52.193+00:00

    Hello, @Praveen Hudgi !

    How do I view live execution of Selenium/automation on an Azure virtual machine?
    Remote Desktop Protocol (RDP) allows you to connect to a VM and view the execution of automation, including Selenium, in real time on Windows (and there are remote desktop options for Linux as well).

    Windows:
    During creation of your VM, set your Inbound port rules: Public inbound ports should be Allow selected ports and Select inbound ports should be RDP (3389). If your VM has already been created, you'll need to enable the RDP port in the network security group (RDP). Your VM must also be running and have a public IP address.

    1. Go to the Azure portal to connect to a VM. Search for and select Virtual machines.
    2. Select the virtual machine from the list.
    3. At the beginning of the virtual machine page, select Connect.
    4. On the Connect to virtual machine page, select RDP, and then select the appropriate IP address and Port number. In most cases, the default IP address and port should be used. Select Download RDP File. If the VM has a just-in-time policy set, you first need to select the Request access button to request access before you can download the RDP file. For more information about the just-in-time policy, see Manage virtual machine access using the just in time policy.
    5. Open the downloaded RDP file and select Connect when prompted. You will get a warning that the .rdp file is from an unknown publisher. This is expected. In the Remote Desktop Connection window, select Connect to continue.
    6. In the Windows Security window, select More choices and then Use a different account. Enter the credentials for an account on the virtual machine and then select OK.
      Local account: This is usually the local account user name and password that you specified when you created the virtual machine. In this case, the domain is the name of the virtual machine and it is entered as vmname\username.
      Domain joined VM: If the VM belongs to a domain, enter the user name in the format Domain\Username. The account also needs to either be in the Administrators group or have been granted remote access privileges to the VM.
      Domain controller: If the VM is a domain controller, enter the user name and password of a domain administrator account for that domain.
    7. Select Yes to verify the identity of the virtual machine and finish logging on.

    231684-image.png

    231685-image.png

    0 comments No comments

  2. Praveen Hudgi 1 Reputation point
    2022-08-16T18:00:50.997+00:00

    Thank you for your answer @Anonymous , but I guess you miss understood my question I am asking about agent pool machine as shown in below screenshot .

    How I can connect to those agent pool machine ?

    231723-image.png
    231614-image.png