skip to Main Content

Note: This is not a duplicate question despite the title seems like the similar ones.

I am trying to build a docker image to support an Azure Function in .NET 7.0 that works in .NET 6.0 by docker. I have had the following line to pull .NET 6.0

FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated6.0

I cannot find anything like the following line:

FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated7.0

How can I migrate my azure function to .NET 7.0 in docker?

2

Answers


  1. As per the docker hub official Site, they mentioned dotnet-isolated:4 is supported up to the dotnet-isolated6.0 version and updated on Jan 04, 2023.

    enter image description here

    Even in the Official MS Doc of Azure Functions, it is mentioned only .NET 7 Isolated is released for the Azure Portal Function App deployments.

    Yes @Arash, I can see the .NET 7 Isolated in Docker File from VS 2022 IDE after enabling the docker in it:

    enter image description here

    enter image description here

    Updated Answer:

    Is it possible that .NET 7.0 was released silently: docker pull mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated7.0

    I can find the .NET 7 release for the Docker Hub in .NET SDK Supported Versions of Docker Hub Site and when it comes to .NET Support for Azure Function Docker Context, I can see only dotnet-isolated6.0 version is supported from these references 1 & 2.

    I have also found the issue opened on .NET 7 RC2 Preview on Azure Functions-Isolated Mode in the GitHub Repository of Azure Functions dotnet worker issue #1119.

    Login or Signup to reply.
  2. After I updated the visual studio 2022 issue got resolved

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search