az cli support in runbooks
az command cannot be found when using in a runbook
Thank you for the feedback. The product team is aware of this need and will consider it if resourcing allows.
+1 I too have CosmosDB scripts that should be in an automation like setting and PS doesn't deliver the same functionality (eg. dealing with RU/s).
Casey Phillips commented
Trying to setup a run book today to do some simple shell scripting today and ran into this issue. Pretty shocked the CLI is not supported in runbooks yet.
Tim Webster commented
In general it seems that Azure CLI is ahead of Powershell with feature implementation. That is, you can do stuff in Azure CLI that you can't in Powershell. This is reason enough to add support.
Felix Obermeyer commented
Same here. Would be great to get the support for CLI in runbooks
First comment I saw on this goes back about a year.
I bet the Cloudshell team and Automation team could pull this together in a matter of weeks.
PLEASE get this working....
Zia ul haque Siddiqui commented
Any idea when it is going to support?
Because i want to run some scripts using "az vm run-command invoke" command. but i cant run.
same command if i try to run using powershell it is not allowing me specify my commands directly instead asking save as .ps1 and refer it.. but not giving option of UNC path.
Strongly Agree. Since we can't use crontab in CloudShell, az cli support in runbook would be a great solution to manage Azure resources.