How to roll out latest .net framework on Azure VM?

▼魔方 西西 提交于 2021-02-10 07:13:04

问题


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.


回答1:


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

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).

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).




回答2:


There is not currently a way in the Azure portal to deploy/upgrade .NET Framework in a VM. If this was something you were going to be doing a bunch I think you should use PowerShell Desired State Configuration (to install/update .NET Framework) in an Azure Resource Manager (ARM Template). This is a good walk through for what that process would look like.



来源:https://stackoverflow.com/questions/47983737/how-to-roll-out-latest-net-framework-on-azure-vm

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