Open Juliavol opened 1 year ago
Hi @Juliavol,
2.48.1 is not the latest Azure CLI(2.50.0).
Please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.
Thank you for opening this issue, we will look into it.
This also unavailable in the UI
@Juliavol I have checked with the latest version (2.50.0) and I am not seeing any issues. Can you please update your az version using az upgrade
and try again.
@SaurabhSharma-MSFT updated to 2.50.0:
azure-cli 2.50.0
core 2.50.0
telemetry 1.0.8
Extensions:
storage-preview 0.8.4
Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2
Python location '/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/bin/python'
Extensions directory '/Users/julia.s/.azure/cliextensions'
Python (Darwin) 3.10.12 (main, Jun 20 2023, 19:43:52) [Clang 14.0.3 (clang-1403.0.22.14.1)]
Legal docs and information: aka.ms/AzureCliLegal
Sorry, still the same:
The command failed with an unexpected error. Here is the traceback:
'_AAZUndefinedType' object is not iterable
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 663, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 710, in _run_job
result = list(result)
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/aaz/_paging.py", line 49, in __next__
return next(self._page_iterator)
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/aaz/_paging.py", line 29, in __next__
return iter(result)
TypeError: '_AAZUndefinedType' object is not iterable
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
Keep in mind that I am running on mac and AZ was installed with homebrew.
@Juliavol Ok. got it. I am redirecting this to service team to further investigate. Thanks.
Hey @Juliavol , this bug is fixed now
you can try the command. if the list is empty it will throw the empty array instead of above error
Describe the bug
I am working on az-cli version 2.48.1, trying to list all the georecovery pairings my namespaces have, and getting a 'NoneType' object is not iterable error.
Related command
az eventhubs georecovery-alias list --resource-group --namespace-name
Errors
Issue script & Debug output
Expected behavior
provide me with a list of pairings and their metadata
Environment Summary
azure-cli 2.48.1 *
core 2.48.1 * telemetry 1.0.8
Extensions: storage-preview 0.8.4
Dependencies: msal 1.20.0 azure-mgmt-resource 22.0.0
Python location '/opt/homebrew/Cellar/azure-cli/2.48.1/libexec/bin/python' Extensions directory '/Users/julia.s/.azure/cliextensions'
Python (Darwin) 3.10.11 (main, Apr 7 2023, 07:24:53) [Clang 14.0.0 (clang-1400.0.29.202)]
Additional context
No response