How to determine the installed .NET version in Azure App Services

Published 04-01-2019 04:46 PM 9,221 Views
Microsoft
First published on MSDN on Nov 02, 2016

We have had a few questions about this so I figured I would create a quick blog covering how to determine the installed .NET version in Azure App Services (Azure Web Apps, Azure Mobile Apps etc…).

The quickest way to do this is to open the Kudu console for your Azure App Service.  You can do this from the portal or by using the URL of your Azure App Service.

Portal

Open your Azure App Service and go to Advanced Tools and click Go:

URL

Use the URL for your app service and insert .scm before the azurewebsites.net portion.  For example if you url is  https://jsanderstest.azurewebsite.net  the Kudu endpoint is https://jsanderstest.scm.azurewebsites.net

Debug console command to get the .NET version

Go to Debug console, CMD:

Easy Way

Navigate to the .NETFramework folder like this:  cd "\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework"  and you will see the installed versions:

Alternate way

Type the following in the CMD window:

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full"

Take note of the Release entry (in this case 0x60636) and convert this from hex to decimal using something like the built in Windows Calculator.  Then look this up here: https://msdn.microsoft.com/en-us/library/hh925568%28v=vs.110%29.aspx

In this case 0x60636 converts to 394806 which in above article is this:

On all other OS versions: 394806

.NET Framework 4.6.2

Let me know if this was useful to you by dropping me a note!

2 Comments
Occasional Visitor

Just what I needed - thanks!

New Contributor

How about making the VS tooling warn if you aren't trying to deploy a supported version.

%3CLINGO-SUB%20id%3D%22lingo-sub-1049797%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20determine%20the%20installed%20.NET%20version%20in%20Azure%20App%20Services%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1049797%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20what%20I%20needed%20-%20thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1130745%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20determine%20the%20installed%20.NET%20version%20in%20Azure%20App%20Services%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1130745%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20about%20making%20the%20VS%20tooling%20warn%20if%20you%20aren't%20trying%20to%20deploy%20a%20supported%20version.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-392342%22%20slang%3D%22en-US%22%3EHow%20to%20determine%20the%20installed%20.NET%20version%20in%20Azure%20App%20Services%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392342%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20MSDN%20on%20Nov%2002%2C%202016%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EWe%20have%20had%20a%20few%20questions%20about%20this%20so%20I%20figured%20I%20would%20create%20a%20quick%20blog%20covering%20how%20to%20determine%20the%20installed%20.NET%20version%20in%20Azure%20App%20Services%20(Azure%20Web%20Apps%2C%20Azure%20Mobile%20Apps%20etc%E2%80%A6).%3C%2FP%3E%0A%20%20%3CP%3EThe%20quickest%20way%20to%20do%20this%20is%20to%20open%20the%20Kudu%20console%20for%20your%20Azure%20App%20Service.%26nbsp%3B%20You%20can%20do%20this%20from%20the%20portal%20or%20by%20using%20the%20URL%20of%20your%20Azure%20App%20Service.%3C%2FP%3E%0A%20%20%3CH2%20id%3D%22toc-hId-1733391254%22%20id%3D%22toc-hId-1681584581%22%3EPortal%3C%2FH2%3E%0A%20%20%3CP%3EOpen%20your%20Azure%20App%20Service%20and%20go%20to%20Advanced%20Tools%20and%20click%20Go%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F100978i1629E9FD749AA8B8%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CH2%20id%3D%22toc-hId--818765707%22%20id%3D%22toc-hId--870572380%22%3EURL%3C%2FH2%3E%0A%20%20%3CP%3EUse%20the%20URL%20for%20your%20app%20service%20and%20insert%20.scm%20before%20the%20azurewebsites.net%20portion.%26nbsp%3B%20For%20example%20if%20you%20url%20is%26nbsp%3B%20%3CA%20href%3D%22https%3A%2F%2Fjsanderstest.azurewebsite.net%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fjsanderstest.azurewebsite.net%26nbsp%3B%3C%2FA%3E%20the%20Kudu%20endpoint%20is%20%3CA%20href%3D%22https%3A%2F%2Fjsanderstest.scm.azurewebsites.net%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fjsanderstest.scm.azurewebsites.net%3C%2FA%3E%3C%2FP%3E%0A%20%20%3CH2%20id%3D%22toc-hId-924044628%22%20id%3D%22toc-hId-872237955%22%3EDebug%20console%20command%20to%20get%20the%20.NET%20version%3C%2FH2%3E%0A%20%20%3CP%3EGo%20to%20Debug%20console%2C%20CMD%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F100979iA1A27AD63B9F18C9%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CH2%20id%3D%22toc-hId--1628112333%22%20id%3D%22toc-hId--1679919006%22%3EEasy%20Way%3C%2FH2%3E%0A%20%20%3CP%3ENavigate%20to%20the%20.NETFramework%20folder%20like%20this%3A%26nbsp%3B%20cd%20%22%5CProgram%20Files%20(x86)%5CReference%20Assemblies%5CMicrosoft%5CFramework%5C.NETFramework%22%26nbsp%3B%20and%20you%20will%20see%20the%20installed%20versions%3A%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F100980i3EA0509C3A927D3B%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3E%3C%2FP%3E%0A%20%20%3CH3%20id%3D%22toc-hId--81815503%22%20id%3D%22toc-hId--133622176%22%3E%3C%2FH3%3E%0A%20%20%3CH2%20id%3D%22toc-hId-1857508337%22%20id%3D%22toc-hId-1805701664%22%3EAlternate%20way%3C%2FH2%3E%0A%20%20%3CP%3EType%20the%20following%20in%20the%20CMD%20window%3A%3C%2FP%3E%0A%20%20%3CP%3Ereg%20query%20%22HKEY_LOCAL_MACHINE%5CSOFTWARE%5CMicrosoft%5CNET%20Framework%20Setup%5CNDP%5Cv4%5CFull%22%3C%2FP%3E%0A%20%20%3CP%3E%3C%2FP%3E%0A%20%20%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F100981i87C815EA0FC13CF6%22%20%2F%3E%3C%2FP%3E%0A%20%20%3CP%3E%3C%2FP%3E%0A%20%20%3CP%3ETake%20note%20of%20the%20Release%20entry%20(in%20this%20case%200x60636)%20and%20convert%20this%20from%20hex%20to%20decimal%20using%20something%20like%20the%20built%20in%20Windows%20Calculator.%26nbsp%3B%20Then%20look%20this%20up%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fhh925568%2528v%3Dvs.110%2529.aspx%22%20title%3D%22https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fhh925568%2528v%3Dvs.110%2529.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%20https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fhh925568%2528v%3Dvs.110%2529.aspx%3C%2FA%3E%3C%2FP%3E%0A%20%20%3CP%3EIn%20this%20case%200x60636%20converts%20to%20394806%20which%20in%20above%20article%20is%20this%3A%3C%2FP%3E%0A%20%20%3CP%3EOn%20all%20other%20OS%20versions%3A%20394806%3C%2FP%3E%0A%20%20%3CP%3E.NET%20Framework%204.6.2%3C%2FP%3E%0A%20%20%3CP%3E%3C%2FP%3E%0A%20%20%3CP%3ELet%20me%20know%20if%20this%20was%20useful%20to%20you%20by%20dropping%20me%20a%20note!%3C%2FP%3E%0A%20%0A%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-392342%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20Nov%2002%2C%202016%20We%20have%20had%20a%20few%20questions%20about%20this%20so%20I%20figured%20I%20would%20create%20a%20quick%20blog%20covering%20how%20to%20determine%20the%20installed%20.%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-392342%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20App%20Service%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Aug 24 2020 12:35 PM
Updated by: