What's the installation path for exe on azure VM

Vamshi 1 Reputation point
2022-08-16T21:07:32.013+00:00

Hey

I am installing a .exe on windows 19 agent on azure portal using below command.

$(System.ArtifactsDirectory)\drop\latest.exe /S /v/qn | Wait-Process -Name latest.exe

I would like to know where the installed files are located for the installation

Thanks
Vamshi

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,926 Reputation points
    2022-08-17T15:02:04.973+00:00

    Hello,

    Locate the C:\WindowsAzure folder. If you see the GuestAgent folder that displays the version number, that means that Azure VM Agent was installed on the VM. You can also look for the installed package. If Azure VM Agent is installed on the VM, the package will be saved in the following location: C:\windows\OEM\GuestAgent\VMAgentPackage.zip.

    You can run the following PowerShell command to check whether VM Agent has been deployed to the VM:

    Get-AzVM -ResourceGroupName "RGNAME" -Name "VMNAME" -DisplayHint expand

    In the output, locate the ProvisionVMAgent property, and check whether the value is set to True. If it is, this means that the agent is installed on the VM.

    Reference: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows-azure-guest-agent

    ----------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.