I need to run kubectl commands in Azure Automation Runbook. I tried installing it from PowerShellGallery but the deployment failed with error :
"Unable to process template language expressions for resource '/subscriptions/XXX/resourceGroups/XXX/providers/Microsoft.Automation/automationAccounts/XXX/runbooks/install-kubectl' at line '17' and column '5'. 'The language expression property 'Version' doesn't exist, available properties are 'Name, Uri, Type, Description'"
I didn't find it in module gallery either.
Is there any way to run kubectl in Azure Automation runbook or any other way then kubectl to get nodes and assign roles in cluster using PowerShell.