[RESOLVED] Exported ARM Template - AutomationTask missing ManagedBy

Michael Ingraham 11 Reputation points

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.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,707 questions
Azure Lab Services
Azure Lab Services
An Azure service that is used to set up labs for classrooms, trials, development and testing, and other scenarios.
268 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Ingraham 11 Reputation points

    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.

    1 person found this answer helpful.