Search code examples
powershellazureautomationhybridrunbook

ARMClient.exe not working in azure powershell workflow (hydrid)


I am trying to execute the ARMClient.exe from my Azure Powershell Workflow runbook on Hydrid worker. Its throwing me the folloing error:

Cannot find the 'ARMClient.exe' command. If this command is defined as a workflow, ensure it is defined before the workflow that calls it. If it is a command intended to run directly within Windows PowerShell (or is not available on this system), place it in an InlineScript: 'InlineScript { ARMClient.exe }'

I have followed https://azure.microsoft.com/en-in/blog/leveraging-the-oms-search-api-in-an-azure-automation-runbook/ post step by step.

Can anyone help me resolve this error.

Thanks in Advance!


Solution

  • I restarted the Hybrid worker VM, and it started to recognize the command ARMClient.exe from azure runbook!

    Silly of me, I should have restarted the VM before posting the question here :(