Azure / Azure/azure-functions-host
Azure Function versions mess
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 36
Description
I created a new Azure Functions App. After creating the function app I checked that it is using the latest 2.x runtime:

Then I created a new Azure Function in Visual Studio (latest version) with the latest SDK from NuGet and didn't change anything. I searched everything which might indicate a runtime version but nothing in the Azure Function source code seems to have a hard reference to version 1.x.
However, when I download the publish profile from Azure and then use it from within Visual Studio to publish the function I get this prompt:

When I click Yes then it downgrades my Function app to 1.x. When I click No then the deployment fails.
Shouldn't serverless be easy? Don't worry about what's running on the server. Just write your code and ship it? What happened to that?
Why is Azure such a clusterfuck?
Contributor guide
Research direction
Reproduce the deployment using the Azure Functions App, Visual Studio, the latest NuGet SDK, and the downloaded publish profile. Start by comparing the app's 2.x runtime setting with the publish prompt and deployment result; done means publishing succeeds without downgrading the app to 1.x.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100