I assume you mean Elastic Database Jobs Agent rather than "elastic pool agent"?
At this time, Elastic Data base Jobs cannot run against SQL Server in an Azure VM so you'd need to consider other options - either Azure Automation or using SQL Agent on the instance of SQL Server in the Azure VM.
I would suggest that the simplest approach would be using SQL Agent unless there are other dependencies, in which case Azure Automation may be the best approach.