Is it possible to run this two commands as a PowerShell cmdlet?
az aks stop --name myAKSCluster --resource-group myResourceGroup
az aks start --name myAKSCluster --resource-group myResourceGroup
I cannot find the PowerShell equivalent here: https://learn.microsoft.com/en-us/powershell/module/az.aks/?view=azps-6.2.1
The reason why I'm asking this:
- I would like to run those commands within an Azure Automation runbook, so therefore I need the PowerShell cmdlets. Or is there any other way to run azure cli from a runbook?
Thanks for your help