title: Azure Automation - Renew Certificate of RunAsAccount
body: <p>I'm trying to automate the renewal of the RunAsAccount's certificate. In the portal there's that simple button which allows you to renew the account's certificate. However, this is not appropriate in a business case.</p>
  
  <p>I found some solutions to update that certificate with PowerShell but they do all depend on execution from a local machine and I need something that can be done within a runbook for example.</p>
  
  <p>What I already tried was basically creating a new self-signed certificate in the env:temp-variable, afterwards importing that certificate in the New-AzureRmAutomationCertificate function. Unfortunately this seems not to work.</p>
  
  <p>Appreciate any thoughts or hints on that!</p>