Open akumar-99 opened 1 year ago
If I understand correctly, CLI is parsing the value from runtime majorVersions or minorVersions. https://github.com/Azure/azure-cli/blob/56d778e6ff2f6032ea47eb63727fa1308a390d76/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L3166-L3173 https://github.com/Azure/azure-cli/blob/56d778e6ff2f6032ea47eb63727fa1308a390d76/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L3314-L3365 which is hard coded in Azure CLI.
Hi @akumar-99. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.
Something from my personal notes will help.
PHP
siteConfig.linuxFxVersion
and linuxFxVersion
from .getConfiguration() returns the correct valuesiteConfig.phpVersion
and phpVersion
from .getConfiguration() return the incorrect values (null and "") respectivelyaz webapp list-runtimes
does not show supportsiteConfig.linuxFxVersion
or linuxFxVersion
from .getConfiguration() or siteConfig.phpVersion
or phpVersion
from .getConfiguration()
Python
siteConfig.linuxFxVersion
and linuxFxVersion
from .getConfiguration() returns the correct valuesiteConfig.pythonVersion
and pythonVersion
from .getConfiguration() return the incorrect values (null and "") respectivelyaz webapp list-runtimes
does not show supportsiteConfig.linuxFxVersion
or linuxFxVersion
from .getConfiguration() or siteConfig.pythonVersion
or pythonVersion
from .getConfiguration()
Node
siteConfig.linuxFxVersion
and linuxFxVersion
from .getConfiguration() returns the correct valuesiteConfig.nodeVersion
and nodeVersion
from .getConfiguration() return the incorrect values (null and "") Java
siteConfig.linuxFxVersion
and linuxFxVersion
from .getConfiguration() returns the correct valuesiteConfig.javaVersion
and javaVersion
from .getConfiguration() return the incorrect values (null and "") javaVersion
and javaContainer
and javaContainerVersion
from .getConfiguration() gives me the right correct valuessiteConfig.windowsFxVersion
and windowsFxVersion
from .getConfiguration() returns incorrect valuesiteConfig.javaVersion
and siteConfig.javaContainer
and siteConfig.javaContainerVersion
from .getConfiguration() return incorrect valuesGo
siteConfig.linuxFxVersion
and linuxFxVersion
from .getConfiguration() returns the correct value.NET (Also includes ASPNET for windows)
siteConfig.linuxFxVersion
and linuxFxVersion
from .getConfiguration() returns the correct valuesiteConfig.netFrameworkVersion
and netFrameworkVersion
from .getConfiguration() return the incorrect values ("v4.6" and "")siteConfig.netFrameworkVersion
always returns "v4.6" irrespective of stack and versions configurednetFrameworkVersion
from .getConfiguration() gives me the right value when .NET stack is configured but when a web app is configured with different stack, it still returns an arbitrary value.Ruby
@qiaozha So according to this then https://github.com/Azure/azure-cli/blob/56d778e6ff2f6032ea47eb63727fa1308a390d76/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L3165 the null and "" values are by design?
Please elaborate further on major, minor versions parsing.
do you see any majorVersions or minorVersions informations when using client.provider.listWebAppStacks() apis ? I can not tell from your earlier screenshot.
No, there are no fields related to majorVersions or minorVersions in the outputs.
I have used appServiceClient.webApps.list()
and appServiceClient.webApps.getConfiguration(resourceGroupName,webAppName)
and neither has these two fields.
My issue might be the same, i have 2 app services, one runs on linux another one runs on windows . The properties.siteConfig.WindowsFxVersion --- for the app service which runs on windows OS returns null value , not sure what is wrong , but correctly populated for the app service which runs on linux OS
can someone send me insights on this , please
@qiaozha can you send some insights on my issue, thx ..
Describe the bug
I have a Web App running on Code - Python 3.10 runtime but when I see the value on UI JSON or fetch using CLI or JS SDK or REST API,
pythonVersion
comes as null whereas it should have been3.10
butlinuxFxVersion
reports the right value which also matches with the list produced from CLI commandaz webapp list-runtimes
.To Reproduce Steps to reproduce the behavior:
az webapp
CLI command.Expected behavior According to stack configuration, appropriate runtime variable should return value instead of null.
Screenshots Web App Stack Runtime Configuration on Configuration Page
Web App Stack Runtime Configuration on Overview Page
UI JSON
Additional context Add any other context about the problem here.