Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misleading error for deprecated stack versions in Functions #30477

Open
mattchenderson opened this issue Dec 6, 2024 · 1 comment
Open

Misleading error for deprecated stack versions in Functions #30477

mattchenderson opened this issue Dec 6, 2024 · 1 comment
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. Functions az functionapp Service Attention This issue is responsible by Azure service team.

Comments

@mattchenderson
Copy link

Describe the bug

The error message provided when attempting to create a function app is inaccurate and misleading. It should be updated to provide a true statement.

Related command

az functionapp create

Errors

dotnet-isolated has reached EOL on 2024-11-12 and is no longer supported. https://azure.microsoft.com/en-us/updates/dotnet6support/

Issue script & Debug output

az group create -n $groupName -l $location -o none
az storage account create --sku Standard_LRS -l $location -g $groupName -n $storageName --kind StorageV2 -o none
az functionapp create -g $groupName -n $appName -s $storageName --consumption-plan-location $location --functions-version 4 --runtime dotnet-isolated --runtime-version 6

Expected behavior

The issue is that the above message implies that support has ended for the stack ("dotnet-isolated") and not the specific version of the stack (here, .NET 6). Newer versions like .NET 9 are of course perfectly fine to pick at the time of this issue being opened.

Instead, the CLI should specify that the given version has reached end of support. The support state should also be spelled out (not using an acronym) and use active voice. There should also be a call to action. I would expect something more like:

Support ended for version "6" of stack "dotnet-isolated" on 2024-11-12. Please use a supported version instead. For additional information, see https://azure.microsoft.com/en-us/updates/dotnet6support/.

Environment Summary

azure-cli 2.67.0

core 2.67.0
telemetry 1.1.0

Extensions:
resource-graph 2.1.0

Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\mahender.azure\cliextensions'

Python (Windows) 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 02:44:45) [MSC v.1941 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

It stands out to me that the link provided in the error message is for the Web Apps end-of-support announcement. It's valid to point at that, but it makes me think that the behavior here is at least partially being driven by the App Service commands. The link itself does not show up in the Stacks API, and I haven't looked to see if it is somehow constructed in the CLI, but I suspect that's where it comes from.

@mattchenderson mattchenderson added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 6, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 6, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group labels Dec 6, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added Functions az functionapp Service Attention This issue is responsible by Azure service team. labels Dec 6, 2024
@yonzhan yonzhan removed Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Storage az storage ARM az resource/group/lock/tag/deployment/policy/managementapp/account management-group labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. Functions az functionapp Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

9 participants