az functionapp list runtimes does not return desired information for Windows #28298
Labels
Auto-Assign
Auto assign by bot
Functions
az functionapp
Service Attention
This issue is responsible by Azure service team.
Related command
az functionapp list-runtimes --os "windows" --query "[?runtime == 'dotnet-isolated']"
The specific parameters are an example. there to illustrate the point.
Is your feature request related to a problem? Please describe.
The output of the above command today is as follows:
This has a few issues. First, it does not describe required information. Contrast with the same command, but with "linux" instead of "windows". You will see
linux_fx_version
in the response, which can be used for configuring the app. However, other settings may be required in Windows, and for "dotnet-isolated" here, I'm primarily looking for the value ofnetFrameworkVersion
. This will inform a lateraz functionapp config set
. I happen to know the format of this (e.g., "v8.0"), but someone who did not might encounter an issue on the next step of a common operation.Perhaps more critically, these are not surfacing end-of-support dates which are present in the backing Stacks API. The tool should provide users with this information so that they do not select a version that is nearing or out of support.
Tangentially, it's also weird that .NET Framework 4.8 comes back as ".4.8" with that extra leading '.' which is not present in the underlying Stacks API.
Describe the solution you'd like
I can see from the code that something has been attempted around this before:
azure-cli/src/azure-cli/azure/cli/command_modules/appservice/custom.py
Lines 3337 to 3344 in 8816586
Granted, those names have been normalized to be more python-ic rather than reflecting what they look like in the API or the CLI (also true of
linux_fx_version
). Regardless, none of the requisite values make it through. The code comment about getting support from the API is valid, but the information is definitely present in property bags which could simply be surfaced. See the following from the Stacks API:siteConfigPropertiesDictionary
,appSettingsDictionary
,endOfLifeDate
Describe alternatives you've considered
A user would otherwise need prior external knowledge of the properties and formats needed to configure the app properly for the stack should they be performing any upgrade operations. They would need to know the end of support dates from another source.
The text was updated successfully, but these errors were encountered: