Hello @cosmosmaster ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you are running "az network nic ip-config update" Azure CLI command but it is executing very slowly and you would like to know if there is a way to get executed quickly.
Operations in Azure can take a noticeable amount of time. Azure CLI waits until the command has finished to accept other commands or finished the operation successfully. Few Azure CLI commands offer a --no-wait parameter which allows the console to accept new commands without interrupting the removal.
Refer : https://learn.microsoft.com/en-us/cli/azure/use-cli-effectively?tabs=bash%2Cbash2#asynchronous-operations
However, the "az network nic ip-config update" doesn't offer a --no-wait parameter.
Also, I checked this command in my lab and it executed under a minute.
If I check the execution time for this command, it is showing as 2061ms which is 0.034 mins.
If the command is taking longer than 2061ms for you, I would request you to test with other commands and check the execution time of Azure CLI. Check the version of Azure CLI you are running and report a bug in GitHub.
Below is a similar bug reported which is caused due to latest setuptools, and it could be related to your issue:
https://github.com/Azure/azure-cli/issues/23177
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.