Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error az cli using aws cloud shell #26536

Closed
iesodias opened this issue May 26, 2023 · 4 comments
Closed

Error az cli using aws cloud shell #26536

iesodias opened this issue May 26, 2023 · 4 comments
Assignees
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue Storage az storage
Milestone

Comments

@iesodias
Copy link

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az storage account create

Errors:

The command failed with an unexpected error. Here is the traceback:
'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/lib64/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 561, in execute
    self.commands_loader.load_arguments(command)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 516, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/__init__.py", line 31, in load_arguments
    load_arguments(self, command)
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_params.py", line 1713, in load_arguments
    help_str = 'Allowed values: {}. Can be combined'.format(get_permission_help_string(t_share_permissions))
  File "/usr/lib64/az/lib/python3.6/site-packages/azure/cli/command_modules/storage/_validators.py", line 862, in get_permission_help_string
    return ' '.join(['({}){}'.format(x[0], x[1:]) for x in allowed_values])
TypeError: 'NoneType' object is not iterable

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az storage account create --name {} --resource-group {} --location {} --sku {} --https-only --kind {}

Expected Behavior

Environment Summary

Linux-5.10.179-166.674.amzn2.x86_64-x86_64-with-glibc2.2.5, Amazon Linux 2
Python 3.7.16
Installer: RPM

azure-cli 2.38.0 *

Additional Context

@azure-client-tools-bot-prd
Copy link

Hi @iesodias,

2.38.0 is not the latest Azure CLI(2.49.0).

Please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label May 26, 2023
@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Storage az storage labels May 26, 2023
@azure-client-tools-bot-prd
Copy link

Hi @iesodias
Find similar issue #22235.

Issue title Storage commands failling on Fedora 35 when Python 3.6 is not present
Create time 2022-04-29
Comment number 7

Please confirm if this resolves your issue.
Kindly react a 👍 or 👎 to this comment so that we can improve this robot.

@ghost ghost added this to the Backlog milestone May 26, 2023
@ghost ghost assigned evelyn-ys May 26, 2023
@ghost ghost added the Auto-Assign Auto assign by bot label May 26, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented May 26, 2023

Thank you for opening this issue, we will look into it.

@ghost ghost added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 26, 2023
@calvinhzy
Copy link
Member

Please try to update CLI to the latest version or take a look at the above issue. Please let us know if those solutions don't solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Similar-Issue Storage az storage
Projects
None yet
Development

No branches or pull requests

4 participants