如何在 Azure Batch 中的计算节点上安装 .net 4.6.1

How to install .net 4.6.1 on compute node in azure batch

我坚持使用 .net 4.6.1 创建 azure 批处理池。

我浏览了os非常好的资源:

我发现有一种方法可以使用 .net 4.6.1 而无需在节点上手动安装。有一种编程方式可以使用最新的 .net 版本(.net 4.6.1)设置 Windows Ghost 图像,但我的节点是预先定义的。

我需要 .net 4.6.1,因为我们在 Azure 批处理节点上使用 运行 的数据工厂和自定义活动。我们在该节点上手动升级了 .net 版本,但 Microsoft 不保证状态会保留,我们注意到几次该节点已重置为原始状态。

我的问题是:

没有。他们说等server 2016在azure上发布的时候,就可以批量使用了。在那之前,将 4.6.1 安装为启动任务是您唯一的选择。他们还会在某个时候允许我们使用自定义图像,而不是他们预制的图像。

您仍然需要使用 StartTask 来安装 .NET 4.6.1。在您提到的第一个资源中,有一小段代码可以检查当前的 .NET 安装并在需要时安装 + 重新启动。

如果可能,请将应用程序的 .NET 版本降级到 4.5.2 以省去重新启动节点的麻烦。

2016-02-07 更新:

您现在可以在 Azure Batch 的云服务配置下部署 OS Family 5,这相当于 Windows Server 2016(如 Marketplace/VM 图片)。

上一个回答:

您问题的答案:

do you know if there is any way on azure portal to choose OS family set to Windows Server 2016 with installed .net 4.6.1 version already?

是的,您可以将 "Image Type" 更改为 Marketplace 和 select 2016-Datacenter 即 Windows Server 2016。

does anybody know when there will be any os with .net 4.6.1 available?

如上所述,它现在可用于 2016-Datacenter 下的 Marketplace (IaaS)。 Batch 团队目前正在努力支持 OS Family 5 作为云服务的来宾 OS。

or should I go with StartTask feature and try to install .net 4.6.1 manually? However, that option sounds like some workaround and not the correct solution.

您始终可以将其作为启动任务的一部分进行安装,并且被认为是适用于 Windows 服务器 < 2016 的计算节点的 Azure Batch 的正确解决方案。