Hi there, I’m trying to get a runbook setup that runs on one of my Azure VMs, which I’ve configured as a polling tentacle worker. The runbook is very simple, we just want to run a Azure powershell script, and that’s it.
We’ve created an Azure Service Principal account that corresponds to our azure subscription. Since our script uses the Az powershell module’s, I’ve enabled “Use azure tools pre-installed on the worker”. I’ve verified that both Az (the powershell modules) and az (the Azure CLI) are installed and work from a powershell session on the Azure VM in question.
When I run my runbook, before the script starts executing we get an error saying that it couldn’t find ‘az’, despite my verification that that command is installed.
Context : Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext
May 6th 2020 14:53:30
Failed to authenticate with Azure CLI
May 6th 2020 14:53:30
The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Does Octopus need to have a PATH or similar configured in order to use az? Or is it something else that I’m missing. Feel free to let me know if you need any more info.