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--