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.
Sukriti Sharma commented
When is the expected date of this release. We require this feature asap. We are trying to create bot service in Azure by using Azure-Cli in runbook.
Joshua Gunthner commented
My Org uses Azure Government for production and there are simply more supported functions within az cli than with AzureRM or Azure Powershell in Government. This is especially true for alerts.
"Get-AzureRmAlertRule" brings back only a small portion of the alert properties
"az monitor alert show" brings back everything you can set for an alert
right now the only functional metric alerts within Azure Government are classic alerts with newer metric alerts not being present for many resource types.
az cli fully supports these classic alerts and allows for automation of creation, modification, enable/disable, etc.
You cannot do as much with Azure Powershell or AzureRM in government. Many options simply don't exist.
+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.