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: API version 2022-05-01 does not have operation group │ 'storage_accounts' #26945

Open
bpriyas92 opened this issue Jul 20, 2023 · 2 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. feature-request Storage az storage
Milestone

Comments

@bpriyas92
Copy link

Describe the bug

Unable to execute terraform null_resource with az command to set network rule for storage account

Related command

az storage account network-rule add --resource-id ${azurerm_machine_learning_workspace.ws.id} --tenant-id ${data.azurerm_client_config.current.tenant_id} -g ${local.datastores[count.index].storage_resource_group_name} --account-name ${local.datastores[count.index].storage_name}

Errors

│ Error: local-exec provisioner error

│ with null_resource.storage_resource_instance[0],
│ on main.tf line 169, in resource "null_resource" "storage_resource_instance":
│ 169: provisioner "local-exec" {

│ Error running command 'az storage account network-rule add --resource-id': exit status
│ 1. Output: ERROR: The command failed with an unexpected error. Here is the
│ traceback:
│ ERROR: API version 2022-05-01 does not have operation group
│ 'storage_accounts'
│ Traceback (most recent call last):
│ File "/home/nub2kor/.local/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
│ cmd_result = self.invocation.execute(args)
│ File "/home/nub2kor/.local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 663, in execute
│ raise ex
│ File "/home/nub2kor/.local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
│ results.append(self._run_job(expanded_arg, cmd_copy))
│ File "/home/nub2kor/.local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
│ result = cmd_copy(params)
│ File "/home/nub2kor/.local/lib/python3.8/site-packages/azure/cli/core/commands/init.py", line 333, in call
│ return self.handler(*args, **kwargs)
│ File "/home/nub2kor/.local/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 112, in handler
│ client = self.client_factory(self.cli_ctx, command_args) if self.client_factory else None
│ File "/home/nub2kor/.local/lib/python3.8/site-packages/azure/cli/command_modules/storage/_client_factory.py", line 138, in cf_sa
│ return storage_client_factory(cli_ctx).storage_accounts
│ File "/home/nub2kor/.local/lib/python3.8/site-packages/azure/mgmt/storage/_storage_management_client.py", line 832, in storage_accounts
│ raise ValueError("API version {} does not have operation group 'storage_accounts'".format(api_version))
│ ValueError: API version 2022-05-01 does not have operation group
│ 'storage_accounts'
│ To open an issue, please run: 'az feedback'

Issue script & Debug output

NA

Expected behavior

NA

Environment Summary

azure-cli 2.40.0

core 2.40.0
telemetry 1.0.8

Extensions:
ml 2.8.0
account 0.2.5

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional context

No response

@bpriyas92 bpriyas92 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jul 20, 2023
@azure-client-tools-bot-prd
Copy link

Hi @bpriyas92,

2.40.0 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.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Jul 20, 2023
@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Storage az storage labels Jul 20, 2023
@ghost ghost added this to the Backlog milestone Jul 20, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 20, 2023

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

@ghost ghost assigned evelyn-ys and calvinhzy Jul 20, 2023
@ghost ghost added Auto-Assign Auto assign by bot 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 Jul 20, 2023
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Jul 20, 2023
@yonzhan yonzhan added feature-request and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Aug 8, 2023
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. feature-request Storage az storage
Projects
None yet
Development

No branches or pull requests

4 participants