Hi @Ananthu Subramanian ,
Can you provide little more context.
- Is your requirement to run a script (which installs an agent) remotely in set of VM's over different subscriptions?
- What is the agent about? Wanted to know it to see if there are any direct approaches to accomplish the requirement.
- What VM details are you getting and why?
- What is the reason to create webhook to another runbook?
If your requirement is to run a script (which installs an agent) remotely then may be follow one of the approaches explained here https://learn.microsoft.com/en-us/answers/questions/526820/azure-automation-running-power-shell-scripts-in-ru. Also, same runbook can be improved to work for multiple VM's across subscriptions using for loops.