Skip to content

Running az resource list command gives invalid status error #25218

@Alfurquan

Description

@Alfurquan

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

Metadata

Metadata

Assignees

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions