简体   繁体   中英

Create runbook to execute bash script

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM