如何在 Azure Batch 池中添加现有 VM?

How do I add existing VM in Azure Batch pool?

我们在 Azure 中有一个基于 Windows 2012 的 VM,我们想将此 VM 添加到 Azure Batch 服务的池中。这背后的原因是我们已经在此 VM 上安装了一个许可的应用程序。此应用程序提供安装向导,我不确定是否可以使用批处理池的 application package 功能安装此类应用程序。

有人可以请教

  1. 如何在批处理服务池的计算节点上安装这个基于安装向导的应用程序?
  2. 如果第一个不可能,那么我该如何使用我们已经安装了这个应用程序的现有虚拟机?

由于我们只是在做 PoC,所以我们在一个批处理服务池中只使用 1 个 VM 就可以了。

您将无法使用应用程序包功能来安装向导驱动的安装程序。应用程序包可以被认为是 .zip 文件等价物,在创建计算节点时会自动解压。

  1. How do I install this installation wizard based application on an compute node of batch service pool?

如果您的安装向导提供静默或静默安装选项,您可以使用池的启动任务进行安装。

  1. If 1st is not possible then how do I use existing VM in which we have already installed this application?

您可以使用 VNet 功能将 VM 加入池中。但是,直接调度到此 VM 将不起作用,因为它不是由 Batch 创建的,并且非 Batch VM 上没有调度代理。