-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Stack Trace for az storage account create
#30127
Comments
Thank you for opening this issue, we will look into it. |
Here are some similar issues that might help you. Please check if they can solve your problem. |
this looks the same as #23990 |
By the way Im in the Azure Shell in Azure, and I keep getting this error: (SubscriptionNotFound) Subscription xxxxxxxxxxxxxxxx was not found. same thing.. very strange. |
I encounter the same error when running: core 2.65.0 Extensions: Dependencies: However, on my MacBook, where I am still using azure-cli 2.62.0, I do not encounter any errors when running the same command. |
I have updated azure-cli to 2.65.0 on my MacBook running Sequoia and a script I have used for while started failing with same error reported here. Many command related to "storage account" seems to fail, no even the "help" can be used. Example: % az storage account create --help About Azure-cli: % az --version core 2.65.0 Dependencies: Python location '/opt/homebrew/Cellar/azure-cli/2.65.0_1/libexec/bin/python' Python (Darwin) 3.12.7 (main, Oct 1 2024, 02:05:46) [Clang 16.0.0 (clang-1600.0.26.3)] Legal docs and information: aka.ms/AzureCliLegal Your CLI is up-to-date. Thanks! |
@calvinhzy Ive actually uninstalled Azure CI, verified it was uninstalled, and reinstalled it, I cant execute pip show azure-multiapi-storage By the way, I got the same error with the In-Browser Azure Command. If it doesn't work there, I doubt it works anywhere. |
Can you try the suggestion in #29904 (comment) to install setuptools, will fix the sdk azure-multiapi-storage-python to remove dependency with setuptools |
Installing setuptools fixes the problem for me on macOS with Azure CLI installed by Homebrew.
|
#30138 (comment) |
@rjollos Thanks, you suggestion worked for me. I have other homebrew: And it took me some extra effort (and brew doctor feedback) to get "setuptools" installed, but once done (still with errors) "azure-cli storage account" works. |
From my perspective, it could be caused by: #30148 |
This help, regardless of it install setuptools with error. |
I ran in this problem as well and had the luxury of a Macbook with hardly any data on it. So I could try out a few suggestions mentioned here. This is what I did to finally solve my issue:
|
It seems an update fixed it. I run brew update and brew upgrade, what updates azure-cli. Now my storage account comments work again. |
Caused by Homebrew/homebrew-core#192912. Already fixed in homebrew. Related PR: |
Describe the bug
Unable to create a simple Blob Storage in my Subscription when Im the owner / tenant
azure-cli 2.65.0
Related command
az storage account create --resource-group terraform-state-rg --name tfstate-MindMap-8192c793 --sku Standard_LRS --encryption-services blob
Errors
The command failed with an unexpected error. Here is the traceback:
'NoneType' object is not iterable
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 564, in execute
self.commands_loader.load_arguments(command)
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/core/init.py", line 527, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/command_modules/storage/init.py", line 42, in load_arguments
load_arguments(self, command)
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/command_modules/storage/_params.py", line 758, in load_arguments
get_permission_help_string(t_account_permissions)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/command_modules/storage/_validators.py", line 871, in get_permission_help_string
return ' '.join(['({}){}'.format(x[0], x[1:]) for x in allowed_values])
^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
Issue script & Debug output
(azure-cli-env) psenger@Philips-MacBook-Pro ~ % az storage account create --resource-group terraform-state-rg --name tfstate-MindMap-8192c793 --sku Standard_LRS --encryption-services blob
The command failed with an unexpected error. Here is the traceback:
'NoneType' object is not iterable
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/core/commands/init.py", line 564, in execute
self.commands_loader.load_arguments(command)
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/core/init.py", line 527, in load_arguments
loader.load_arguments(command) # this adds entries to the argument registries
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/command_modules/storage/init.py", line 42, in load_arguments
load_arguments(self, command)
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/command_modules/storage/_params.py", line 758, in load_arguments
get_permission_help_string(t_account_permissions)),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/lib/python3.12/site-packages/azure/cli/command_modules/storage/_validators.py", line 871, in get_permission_help_string
return ' '.join(['({}){}'.format(x[0], x[1:]) for x in allowed_values])
^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
(azure-cli-env) psenger@Philips-MacBook-Pro ~ %
Expected behavior
a blob created
Environment Summary
azure-cli 2.65.0
core 2.65.0
telemetry 1.1.0
Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.65.0/libexec/bin/python'
Extensions directory '/Users/psenger/.azure/cliextensions'
Python (Darwin) 3.12.7 (main, Oct 1 2024, 02:05:46) [Clang 16.0.0 (clang-1600.0.26.3)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
Im on a mac...
The text was updated successfully, but these errors were encountered: