blackchoey / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
0 stars 0 forks source link

The error message of "az apic environment show" when searching for non-existent env is inaccurate. #31

Open alisa-1020 opened 5 months ago

alisa-1020 commented 5 months ago

Describe the bug

image

Related command

az apic environment show -g alisatestapi -s alisatestservice2 --environment-id alisaenv

Errors

image

Issue script & Debug output

when to get a exist env is ok ,when to get a non-exist env the error message is image

Expected behavior

environment not found or none 404

Environment Summary

azure-cli 2.57.0 *

core 2.57.0 * telemetry 1.1.0

Extensions: apic-extension 1.0.0b5 azure-devops 0.26.0

Dependencies: msal 1.26.0 azure-mgmt-resource 23.1.0b2

Additional context

No response

Annefch commented 5 months ago

Register a non-exist env will also report this error image

blackchoey commented 5 months ago

Reported to service team.