Search code examples
azurepowershellazure-batch

How to create Azure Batch service Application pool with custom image in .Net SDK or PowerShell or ARM Template


I am referring this article https://learn.microsoft.com/en-us/azure/batch/quick-create-portal

And I have my custom VHD file with me and i want to create application pool with custom VHD file (Nodes) through .Net SDK or PowerShell or ARM Template. I am able to create it from Azure portal

any examples ?


Solution

  • You can prepare a managed image from a VHD, from an Azure VM with managed disks, or from a VM snapshot. For Batch, we recommend creating a managed image from a VM with managed disks or a VM snapshot.

    With the test, it seems you just can make your custom VHD file into a managed image to create the batch backend pool as above. Also from the description of the parameter --image for the command az batch pool create.