Azure function not visible in azure portal after upgrading to .net 8 Isolated process model

945 Views Asked by At

We have recently upgraded our function projects in .net core api app to .net 8 Isolated model. A new timer trigger function has been added in one of the function projects which runs perfectly fine locally but when deployed in portal via azure devops build/release pipeline this new function is not visible. When I publish this project via visual studio, the function does appear and this propertyWEBSITE_RUN_FROM_PACKAGE is set to 1. However we don't want to run this using packages and set this property as we had to make a number of changes to the project build and release pipeline to accomodate zip deploy. And more than that why shall we switch to zip deploy when using .net 8 Isolated process model. My app settings in azure look like below

WEBSITE_RUN_FROM_PACKAGE enter image description here

One of the project files look this

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <TargetFramework>net8.0</TargetFramework>
        <AzureFunctionsVersion>v4</AzureFunctionsVersion>
        <OutputType>Exe</OutputType>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>enable</Nullable>
        <LangVersion>10</LangVersion>
        <ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
    </PropertyGroup>
    <ItemGroup>
    -------------
    ------------

The new function is not appearing in this list

enter image description here

2

There are 2 best solutions below

1
guidozam On

I found this issue on GitHub and long story short it could be that .NET 8 is still not fully rolled out in your region, can you try deploying to another region?

If that's your case in the end of the GitHub issue is referenced another issue where they keep track of the regions that are experiencing problems.

0
Adrian Smith On

I was having the same issue. I found my devops pipeline was archiving the bin/Release folder but after the .net 8 change over it needed to be archiving the bin/Release/net8.0 folder. After I changed that the devops pipeline would deploy and I would see the updated functions in Azure.