title: Running Kubectl in Azure Automation Account runbook
body: <p>I need to run kubectl commands in Azure Automation Runbook. I tried installing it from <a href="https://www.powershellgallery.com/packages/install-kubectl/1.7" rel="nofollow noreferrer">PowerShellGallery</a> but the deployment failed with error :</p>
  
  <p><strong>"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'"</strong></p>
  
  <p>I didn't find it in module gallery either.</p>
  
  <p>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.</p>