local-exec to run az cli commands to execute bash script on azure linux vm code example
Example: az command to execute bash scripts on vms
az vm run-command invoke -g MyResourceGroup -n MyVm --command-id RunShellScript --scripts 'echo $1 $2' --parameters hello world