Thursday, June 1, 2017

Install .NET Framework 3.5 on Azure VM

Older applications often require .NET Framework 3.5. The images available in the Azure Gallery of Windows Server 2012 and Windows Server 2016 don't include this piece of software which can be quite frustrating at times. Typically in order to install this piece of software you need to mount the iso or image of the operating system and add the role using the image as source.

Luckily Microsoft have decided to include the source files in the gallery images. The files are located in the following location c:\windows\sxs\.

Now how do i install .NET Framework 3.5?

Well there are a few options, the simplest is through Add or Remove Roles or through PowerShell. In this article I will demonstrate how to install it using PowerShell.

The command to run in PowerShell is:

Install-WindowsFeature Net-Framework-Core -source c:\windows\sxs

The steps:

1. Open PowerShell in the administrative context

Open PowerShell and run the command

2. Watch the installation progress. (takes approx. 30 seconds)

Track the progress
 3. Installation feedback confirms the success.

.NET Framework 3.5 install completed