3

I have followed Azure Batch ffmpeg tutorial and it works as expected. The problem that I have at this point is that my executable that i want to run as a batch is a dotnet core application and images that are available when creating a Pool do not have dot net core installed. In the task command line I need to run something like dotnet myApp.dll myParam but dotnet is not available.

How do I go about having an image that has dotnet core installed. Do I need to create a custom image? Is there a tutorial for doing that. I tried using Docker with dotnetcore runtime image at some point for running the same application locally and that seems to work. Do I need to export this image to Azure somehow? Or can I push the core installation into an image in another way?

Thanks.

tridy
  • 1,166
  • 1
  • 12
  • 21

1 Answers1

2

If I am understanding your issue correctly, the simplest solution I see would be create your own custom image to provision a batch pool. We have a document on achieving that here:

https://learn.microsoft.com/en-us/azure/batch/batch-custom-images

This way you can preconfigure an image that has all the needed programs and languages installed right away.

micahmckittrick
  • 1,476
  • 8
  • 11
  • Thanks for your answer. So creating a custom image will require to do it on a VM (and take a snapshot), instead of a Docker. I will give it a try. – tridy May 07 '19 at 07:17
  • Yes correct :) But it is as simple as that. And it should really save you time in the long run as well not having to install anything. If you hit any snags just let me know. – micahmckittrick May 07 '19 at 17:24
  • I think new self contained deployment option will eliminate the need for installing .net core runtime https://learn.microsoft.com/en-us/dotnet/core/deploying/#publish-self-contained – Sowmyan Soman Nov 21 '20 at 23:07