Importing a Runbook already available in Azure Automation requires the use of -Force
in PowerShell. While this works for some, I get the following error for others:
Import-AzureRmAutomationRunbook : BadRequest: Update runbook with definition of different runbook kind is not allowed
Checked everything about the runbook type etc. and all seems OK. If I delete the runbook, then import and after that re-import (overwrite with -Force) then I no longer get above message.
But I need to be able to 'overwrite' the Runbooks to preserve the Webhooks.