Workflow Runbook abount AKS

wang jialu 51 Reputation points
2021-05-27T05:41:38.067+00:00

I find stop use command : az aks stop --name aks-name --resource-group resource-group-name,
but the command isn't use in PowerShell Workflow Runbook,I can't find the command in moduel, So we can't use PowerShell Workflow Runbook do a StopStartAKS code?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,197 questions
0 comments No comments
{count} votes

Accepted answer
  1. tbgangav-MSFT 10,421 Reputation points
    2021-05-27T07:01:37.907+00:00

    Hi @wang jialu ,

    Looks like currently there is no cmdlet to stop cluster using Az Ps as these are the Az Aks cmdlets that are currently supported. If interested, you may raise feature request here to add Az Ps cmdlet to stop cluster. In general, Azure feature team would check feasibility of a feature request, prioritize against existing feature backlog, add in roadmap as appropriate and would announce and/or update the related Azure document once a feature request is addressed.

    Until then, as a workaround, you might leverage this REST API for the same and then use this REST API in PowerShell runbook with the help of Invoke-RestMethod cmdlet.


0 additional answers

Sort by: Most helpful