azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

Show warning message for runtimes reaching end-of-life during publish

Open MadhuraBharadwaj-MSFT opened this issue 11 months ago • 4 comments

Description

Action: Deploying to an Existing Function App Condition Behavior Warning message.
Command: func azure functionapp publish 'MyFunctionApp' Functions version and/or stack version is out of support Show warning message. "Upgrade to Functions/Stack version as <stack/functions runtime version> has reached end-of-life on and is no longer supported. Learn more: aka.ms/FunctionsStackUpgrade"
Command: func azure functionapp publish 'MyFunctionApp' Functions version and/or stack version will be out of support in less than 6 months Show warning message. "Use Functions/Stack version as <stack/functions runtime version> will reach end-of-life on and will no longer be supported. Learn more: aka.ms/FunctionsStackUpgrade"

Current Behavior: Running command func azure functionapp publish <MyFunctionApp> to deploy to a Node.js 18 App (as an example) does not warn the user of its upcoming EOL.

Image

Image

Acceptance Criteria: Work item can be marked 'Completed' when we have implemented, tested and deployed the logic to show the above mentioned warning message when a user runs the command func azure functionapp publish <MyFunctionApp>, where <MyFunctionApp> is configured with a stack runtime version that has a) reached its end-of-life date, or b) will reach its end-of-life date in <6months.

Additional information:

  1. Getting current stack version information: See this

For Linux:

All stacks - get app runtime version from linux_fx_version (from site config)

For Windows:

Node: WEBSITE_NODE_DEFAULT_VERSION (from app setting) .NET: netFrameworkVersion (from site config) Java: javaVersion (from site config) PowerShell: powerShellVersion (from site config)

  1. Compare against EOL dates in StacksAPI: See this

MadhuraBharadwaj-MSFT avatar Jan 27 '25 05:01 MadhuraBharadwaj-MSFT

Reaching out to @MadhuraBharadwaj-MSFT to make sure we have the information needed to triage and assign this issue.

fabiocav avatar Feb 19 '25 01:02 fabiocav

One of the questions in addition to what I'm gathering:

@MadhuraBharadwaj-MSFT , can you share the exact verbiage you want for the two conditions mentioned above? The one in the screenshot doesn't seem accurate (the date returned by the stacks API is the EOL date, instead of deprecation), so I want to make sure I have the one you would like to use.

Thanks!

fabiocav avatar Feb 19 '25 01:02 fabiocav

@fabiocav - we want to use the date returned by StacksAPI ie., the EOL date. The verbiage is in the table below

Action: Deploying to an Existing Function App Condition Behavior Warning message.
Command: func azure functionapp publish 'MyFunctionApp' Functions version and/or stack version is out of support Show warning message. "Upgrade to <'Functions'/language runtime> <latest available functions/stack version> as <current functions/stack runtime version> has reached end-of-life on and is no longer supported. Learn more: aka.ms/FunctionsStackUpgrade"
Command: func azure functionapp publish 'MyFunctionApp' Functions version and/or stack version will be out of support in less than 6 months Show warning message. "Use <'Functions'/language runtime> <latest available functions/stack version> as <current functions/stack runtime version> will reach end-of-life on and will no longer be supported. Learn more: aka.ms/FunctionsStackUpgrade"

Example 1: Publish action on a Node.js 18 App which is approaching end of life in April 2025 should show this warning message, " Upgrade to Node.js 22 as Node.js 18 will reach end-of-life on April 30 2025 and will no longer be supported. Learn more: aka.ms/FunctionsStackUpgrade"

Example 2: Publish action on a Python 3.8 App which has reached end of life in October 2024 should show this warning message, " Upgrade to Python 3.11 as Python 3.8 has reached end-of-life on October 07 2024 and is no longer supported. Learn more: aka.ms/FunctionsStackUpgrade"

Here's a link to the Core Tools API reference for this command: https://learn.microsoft.com/en-us/azure/azure-functions/functions-core-tools-reference?tabs=v2#func-azure-functionapp-publish

MadhuraBharadwaj-MSFT avatar Feb 19 '25 20:02 MadhuraBharadwaj-MSFT

Hi @umangsriv @fabiocav following up to check when this change can be released. Could you please share an ETA if possible? Thank you!

MadhuraBharadwaj-MSFT avatar Aug 25 '25 20:08 MadhuraBharadwaj-MSFT