question

wangjialu-9374 avatar image
0 Votes"
wangjialu-9374 asked wangjialu-9374 commented

Workflow Runbook abount AKS

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

tbgangav-MSFT avatar image
0 Votes"
tbgangav-MSFT answered wangjialu-9374 commented

Hi @wangjialu-9374,

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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@tbgangav-MSFT,thank you very much,God bless you

0 Votes 0 ·