you can use Set-AzVMExtension PowerShell to deploy this extension
Use the command to deploy the Network Watcher Agent virtual machine extension to an existing virtual machine:
Set-AzVMExtension
and you can follow this link to install Windows Azure Agent
https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/agent-windows