Can I create an Azure Batch pool with a custom image that requires image plan?

久未见 提交于 2021-02-11 15:26:46

问题


I have created an Azure Batch pool that is configured to allocate VMs from a custom VM image that I have created. The custom VM image is based on "PyTorch from NVIDIA" which requires an image plan.

When the pool tries to allocate nodes it fails on the following error:

Deployment allocation failed due to missing image plan information in the request. You need to create custom image based on first party image which does not require image plan.

It seems that it's possible to create Virtual Machine Scale Sets with an image plan as indicated by this link.
Is it possible to create an Azure Batch pool with a custom VM image that requires an image plan?
The error suggests that it's not possible but that seems very limiting and in contrast to VMSS in which it does seem possible.


回答1:


You can only use a first-party Azure Marketplace image supported by Batch as the base image for your managed image, refer to this.

If your custom VM image is generated from an Azure Marketplace image, you can select the correct Publisher/Offer/Sku for your custom image when you create a pool from a custom image in the portal.

Edit

I also can produce this issue when I use a generalized PyTorch from NVIDIA VM as the base image. As the document stated, it's impossible to use a third-party image as the base image to create a pool at the moment.

Some VM images in the Azure Marketplace have an additional license and purchase terms that you must accept and provide purchase plan parameters before you can deploy them programmatically.

You can't use a third-party image that has additional license and purchase terms as your base image. For information about these Marketplace images, see the guidance for Linux or Windows VMs.



来源:https://stackoverflow.com/questions/59371794/can-i-create-an-azure-batch-pool-with-a-custom-image-that-requires-image-plan

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!