Azure / Azure/azure-functions-host

Azure Function versions mess

Open
#4,074 1 comment 0 reactions 0 assignees View on GitHub
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:

![image](https://user-images.githubusercontent.com/4580714/52623237-c881af80-2ea3-11e9-8e97-72158801830a.png)

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:

![image](https://user-images.githubusercontent.com/4580714/52623257-d20b1780-2ea3-11e9-8732-cde42938852c.png)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.