Until recently, .NET Core updates were not automatically installed on Server Operating Systems. Starting from this month, this has changed and monthly updates can be automatically rolled out on your servers as an opt-in feature.
How to opt in?
To opt in for automatic updates, you need to set one or more registry keys on the server:
.NET Version | Registry Key | Name | Value |
Allow All .NET Updates | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NET] | "AllowAUOnServerOS" | dword:00000001 |
Allow .NET 6.0 Updates | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NET\6.0] | "AllowAUOnServerOS" | dword:00000001 |
Allow .NET 5.0 Updates | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NET\5.0] | "AllowAUOnServerOS" | dword:00000001 |
Allow .NET 3.1 Updates | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NET\3.1] | "AllowAUOnServerOS" | dword:00000001 |
More information can be found in the related announcement; https://devblogs.microsoft.com/dotnet/server-operating-systems-auto-updates/