Hello @JA
Thanks for reaching out to us. I have seen a similar issue posted here, the reason for the issue is caused by using pip to install Azure CLI. Please check on below solution for this issue and let me know if that works for you or not. - https://github.com/Azure/azure-cli/issues/23821
The reason for this issue is https://aka.ms/InstallAzureCLIDeb installs Azure CLI DEB package at /opt/az, but your Azure CLI was installed with pip judging by the installation location: /usr/local/lib/python3.8/site-packages/azure/cli
We recommend installing the Azure CLI DEB package, but if you have to use pip, we recommend installing to a virtual environment. See #20476 (comment) - https://github.com/Azure/azure-cli/issues/20476#issuecomment-1007131837.
Please be aware that installing from pip is not officially supported.
I hope this helps.
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the conmunity, thanks a lot.