A short post this time to give you a tip to solve an ongoing bug with Azure CLI v 2.26.0 in CloudShell.
Background
This bug is present while running the command az acr build on Cloud Shell, you will obtain the following error message:
This is caused by a bug in Azure CLI v2.26.0 and fixed in CLI v2.26.1
Solution
So, a workaround that I found is to downgrade Azure CLI to V2.25.0 on Cloud Shell, how to do that?, let me show you:
Within the Cloud Shell session, run the following commands:
pip install azure-cli==2.25.0 –force-reinstall azure-cli
I hope this helps