`az` commands hang or are extremely slow

Luis Chaves Rodriguez 10 Reputation points
2025-01-14T09:13:28.98+00:00

My az CLI is extremely slow. As an example just running az functionapp list -g RESOURCEGROUP took 3:30 minutes to return 1 item. az login --use-device-code took roughly 10 minutes in total. I am connected to an Azure VPN. The login command took so long I thought it wasn't working altogether.

Any help understanding this issue will be appreciated!


My previous issue was going to be:

I am unable to connect to Azure via the CLI where before I was able to. I've deleted my locally stored credentials and when I run either az login or az login --use-device-code the command just hands indefinitely. I've also ran both of these commands with the --debug flag and haven't been able to do anything. I have also attempted the solution suggested in this GitHub Issue comment.

I have also reviewed the following GitHub Issues to no avail:

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,419 questions
{count} vote

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 17,111 Reputation points
    2025-01-15T16:02:30.2+00:00

    Hi @Luis Chaves Rodriguez There is a newer version of Azure CLI, 2.68.0 released a couple of days ago. Can you please try upgrading your version to the latest using the command az upgrade and let us know if you still encounter the same issue


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.