如何在Azure VM上推出最新的.net框架? [英] How to roll out latest .net framework on Azure VM?

查看:41
本文介绍了如何在Azure VM上推出最新的.net框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用azure门户创建了Azure VM(Windows Server 2016).它已经安装了.net 4.6.2.现在,我要在其上推出最新的.net框架(4.7/4.7.1).一种选择是下载所需的框架并将其安装在VM上.我确信应该有其他更好的方法,可以使用Azure门户或ARM模板在Azure VM上推出.net框架.请为我提供适用于该选项的选项.

I created a Azure VM (windows sever 2016) using azure portal. It has .net 4.6.2 installed on it. Now I want to roll out latest available .net framework (4.7/ 4.7.1) on it. One option is to download required framework and install it on the VM. I am sure there should be some other better way to roll out .net framework on Azure VMs using Azure portal or ARM template. Please help me with the option available for the same.

推荐答案

就像另一个答案所说,您可以使用Azure Powershell DSCextensión,但是还有其他方法可以实现这一目标.

Like the other answer says, you could use Azure Powershell DSC extensión, but there other ways to achieve that.

通常,您不需要特定应用程序\框架的最新版本.您想要针对您的应用\代码测试过的版本(非常静态).您可以创建一个VM,安装所需的所有内容并捕获它.您将获得一个映像,并可以从该映像中部署VM的副本.打包程序可以自动执行该过程(因此,如果要更新某些内容,则不必手动构建\重新捕获).

Usually you dont want the latest versión of the specific app\framework. You want the versión you've tested your app\code against (so its pretty static). You could créate a VM, install all the stuff you need and capture it. You will get an image and from that image you can deploy copies of the VM. That process can be automated with packer (so you dont have to build\recapture manually when\if you want to update something).

另一种选择是使用Azure VM脚本扩展,这比进入Powershell DSC容易得多.

Another options is using Azure VM Script Extensión, which is a lot easier than diving into Powershell DSC.

此外,有时您可以在图库中找到与您的需求相对应的图像(但我怀疑这次是这种情况).

Also, sometimes you could find an image in the gallery that corresponds to your needs (but I doubt that it is the case this time).

这篇关于如何在Azure VM上推出最新的.net框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆