Azure / Azure/azure-functions-core-tools

Publishing a function app changes LinuxFxVersion

Open
#3,571 10 comments 3 reactions 0 assignees View on GitHub
Pending-Release Triaged
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
4d 20h
Merged PRs (30d)
14

Description

Hi,
I'm publishing a linux function app that uses .NET 8 with the isolated runtime using the following command:
```
func azure functionapp publish my_function_app --build local
```
When I do this, I get the log message `Updating 'linuxFxVersion' to 'DOTNET-ISOLATED|6.0'.`, and sure enough if I check the function app on Azure, it's .NET version has been changed to 6, which then prevents the newly deployed app from starting up.

Is this a bug? If not, is there a way to not have the `func` command change settings?

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `func azure functionapp publish my_function_app --build local` with a Linux .NET 8 isolated function app and inspect when the command updates `linuxFxVersion`. Compare the deployed setting before and after publishing. Done means the publish flow preserves the app's configured runtime or provides a documented way to prevent this change.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.