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

az cli webapp list not returning the netFrameworkVersion #28319

Closed
ilmax opened this issue Feb 7, 2024 · 6 comments
Closed

az cli webapp list not returning the netFrameworkVersion #28319

ilmax opened this issue Feb 7, 2024 · 6 comments
Assignees
Labels
app-service-general Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Web Apps az webapp

Comments

@ilmax
Copy link

ilmax commented Feb 7, 2024

Describe the bug

I'm unable to have an overview of the current framework version for all the webapps in a given subscription. The script below always return null for such property. It works correctly when I use az webapp show -n {name} -g {rg} --query "[name, siteConfig.netFrameworkVersion]"

Related command

az webapp list --query "[].{name:name, version:siteConfig.netFrameworkVersion}"

Errors

N/A

Issue script & Debug output

N/A

Expected behavior

Return name and dotnet version of the website

Environment Summary

azure-cli                         2.57.0

core                              2.57.0
telemetry                          1.1.0

Extensions:
application-insights              0.1.19
automation                         0.2.1
azure-devops                      0.26.0
datafactory                        0.7.0
ssh                                2.0.2

Dependencies:
msal                              1.26.0
azure-mgmt-resource             23.1.0b2

Additional context

No response

@ilmax ilmax added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Feb 7, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Web Apps az webapp Service Attention This issue is responsible by Azure service team. Auto-Assign Auto assign by bot app-service-general labels Feb 7, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 7, 2024

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

@kimjamia
Copy link

This also applies to functionapp, e.g. az functionapp list --query "[].[name,siteConfig.linuxFxVersion,siteConfig.netFrameworkVersion]" --output table. The column for netFrameworkVersion is empty while az functionapp show -n xyz --query "siteConfig.netFrameworkVersion" --output table shows the value.

@ilmax
Copy link
Author

ilmax commented Jun 19, 2024

@yonzhan hello there, any news here? We're approaching the 6 months mark and this is still broken

@masoodishaq
Copy link

any update on this. having same issue.

@npiasecki
Copy link

Apparently for performance reasons siteConfig is not returned in the list call, even though the most useful properties are there. Given that the linked bug is from 2022, I don't think it will ever be fixed.

For example, I wanted to know if any apps were still using TLS 1.0. In Bash, I finally got it with this mess, which basically gets a list of webapps and then calls show on each one of them individually to get access to the siteConfig.

az webapp list --query '[].id' -o tsv | xargs | xargs -I{} bash -c "az webapp show --ids {} --query '[].{Name:name,ResourceGroup:resourceGroup,Tls:siteConfig.minTlsVersion}'"

Hope this helps.

@seligj95
Copy link
Contributor

Closing this issue as the explanation provided by #21548 is still the case. We will keep this in the backlog and continue to monitor to see if we can update this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-service-general Auto-Assign Auto assign by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Web Apps az webapp
Projects
None yet
Development

No branches or pull requests

6 participants