Even though my development starting point was a template exported from the Azure Portal, the spec was not up to date. I used a newer API version for the workflow and did not specify a kind
. The syntax validated and the deployment succeeded.
[RESOLVED] Exported ARM Template - AutomationTask missing ManagedBy

I created several automation tasks to schedule starting & stopping a virtual machine on a scheduled basis (every weekday). I want to use these as the basis to automate a new deployment. I exported the automation tasks to a template. However, when I try to deploy it to a new resource group with a newly created VM, the deployment of any of the automation tasks fails. The error message is:
ManagedBy must be provided if resource kind is 'AutomationTask'.
I can surmise where the ManagedBy property needs to be specified in the template. But I don't know what the value needs to be. I was not able to find any information that pinned this down for me.
Any guidance is greatly appreciated.
1 answer
Sort by: Most helpful
-
Michael Ingraham 11 Reputation points
2022-06-28T15:07:00.447+00:00