Azure Function Migration
Azure Function Migration
Runtime Version
Classificatio
n:
Controlled [Customer Name] Page 1
Table of Contents
1. INTRODUCTION.......................................................................3
2. DOT NET VERSIONS COMPATIBLITY........................................4
3. MIGRATION FROM 3.X TO 4.X..................................................5
3.1 .csproj file.........................................................................5
3.2 local.settings.json file........................................................6
3.3 Upgrade Function App in Azure..........................................6
3.4 Breaking changes between 3.x and 4.x..............................6
4. MIGRATION FROM 1.X TO 3.X....................................................7
4.1 .csproj file.........................................................................7
4.2 local.settings.json file........................................................8
4.3 Class Name Changes..........................................................8
4.4 Upgrade function app in azure...........................................8
Classificatio
n:
Controlled [Customer Name] Page 2
1. INTRODUCTION
Classificatio
n:
Controlled [Customer Name] Page 3
2. DOT NET VERSIONS COMPATIBLITY
As per the above table Dot Net 6 has the long-term support. So
Considered Dot Net 6 for the Migration Documentation. Referred Link
Classificatio
n:
Controlled [Customer Name] Page 4
3.MIGRATION FROM 3.X TO 4.X
For the documentation, we have considered only Dot Net (C#) Azure
function migration from version 3.x to 4.x. For Other Languages please
refer this Microsoft Documentation.
The following example is a .csproj project file that uses .NET Core 3.1 on
version 3.x
1. Right click on the function, and select properties then select General,
we can find the Target framework dropdown , pick the .Net6
Or
Classificatio
n:
Controlled [Customer Name] Page 5
After update the .csproj xml file should look like below.
Need to upgrade the runtime of the function app host in Azure to version 4.x
before you publish your migrated project. The runtime version used by the
Functions host is controlled by the FUNCTIONS_EXTENSION_VERSION
application setting.
Classificatio
n:
Controlled [Customer Name] Page 6
4. MIGRATION FROM 1.X TO 3.X
For the documentation, we have considered only Dot Net (C#) Azure
function migration from version 1.x to 3.x because first we are
planning to migrate to 3.x and after testing can be migrated to 4.x.
Directly also we can migrate 1.x to 4.x, please refer this Microsoft
documentation.
Classificatio
n:
Controlled [Customer Name] Page 7
After update the .csproj xml file should look like below.
Classificatio
n:
Controlled [Customer Name] Page 8