[.Net] APM agents installation automation

We are trying to automate the install of APM Agent specially for windows with .net agent and linux servers with the Java option in the Terrraform image.

Does any one have any idea on and has already been achieved this .

Please suggest.

Thanks
Avneesh