0

I have a .sh file stored on my azure Linux VM. I want to create a webhook that executes this script. I found that I first need to create a runbook for this. Until now I tried to create a powershell runbook and tried to execute my .sh file with 'Invoke-AzureRmVMRunCommand'. It says that it doesn't recognize the term Invoke-AzureRmVMRunCommand.

Do you have any idea how I can solve this?

Cheers!

jww
  • 97,681
  • 90
  • 411
  • 885
Siem Peters
  • 193
  • 1
  • 12
  • Since Stack Overflow hides the Close reason from you: *Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: [How to create a Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve).* – jww Aug 08 '18 at 20:27
  • @Siem Peters Is there is any update from your side about the answer below ? – Jayendran Aug 14 '18 at 11:16

1 Answers1

0

About the Error

doesn't recognize the term Invoke-AzureRmVMRunCommand

Which comes if you don't install the AzureRm.Compute module in Azure Automation

You could install any modules by referring this doc

Jayendran
  • 9,638
  • 8
  • 60
  • 103