Azure / azure-cli

Azure Command-Line Interface
MIT License
3.91k stars 2.87k forks source link

Running az resource list command gives invalid status error #25218

Open Alfurquan opened 1 year ago

Alfurquan commented 1 year ago

I am running this command via subprocess in python: az resource list --name ARCEE-W22-S22 --resource-group arcee-e2e-tests --resource-type Microsoft.HybridCompute/machines On running this command, I am getting this error - Operation returned an invalid status 'Request-URI Too Long'. The error occurs randomly and is causing our python code to break.

Even running the command in a powershell terminal throws the same error. The error occurs on random intervals and is not consistent.

To Reproduce Run the command many times on a terminal az resource list --name ARCEE-W22-S22 --resource-group arcee-e2e-tests --resource-type Microsoft.HybridCompute/machines Expected behavior Should return an array of resources

Environment summary Windows 10 OS az cli 2.44.1 python 3.8.10

Attached a screenshot of the error

az_cli_error
yonzhan commented 1 year ago

@zhoxing-ms for awareness

Alfurquan commented 1 year ago

@yonzhan Can you please update on this and provide a fix as our azure devops pipelines are failing due to this

zhoxing-ms commented 1 year ago

@Alfurquan Could you please send the debug log (add --debug parameter) to me by email? My email address is Zhou.Xing@microsoft.com, thanks~