Azure / azure-cli

Azure Command-Line Interface
MIT License
3.92k stars 2.89k forks source link

Invalid .NET version #28376

Open qphan613 opened 5 months ago

qphan613 commented 5 months ago

Describe the bug

.NET framework version value in "az functionapp config set" generates warning/error

Related command

az functionapp config set

Errors

Invalid version: for runtime dotnet-isolated and os windows. Supported versions for runtime dotnet-isolated and os windows are: ['.4.8', '8', '7', '6']. Run 'az functionapp list-runtimes' for more details on supported runtimes.

Issue script & Debug output

az functionapp config set name "appname" --resource-group "groupname" --slot "slot" --net-framework-version v7.0

Expected behavior

It should not produce any error because I've tried using "7.0", "7", "v7" and "v7.0" and they all produce the same message. The warning is displayed even when the command used the correct net-framework-version value.

Environment Summary

azure-cli 2.57.0

core 2.57.0 telemetry 1.1.0

Extensions: ai-examples 0.2.5 ml 2.22.0 ssh 2.0.2

Dependencies: msal 1.26.0 azure-mgmt-resource 23.1.0b2

Additional context

This warning occurs when we run our ADO pipeline, thus causing the pipeline to fail. This was a new issue since nothing is changed on our pipeline since the last successful run. I think the issue is within the _FunctionAppStackRuntimeHelper which is recently added through this - https://github.com/Azure/azure-cli/blame/87dec2c86a39da9cc056697a92a234da86c97646/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L409

yonzhan commented 5 months ago

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

microsoft-github-policy-service[bot] commented 5 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.

ulluoink commented 2 months ago

@yonzhan anything new here?