You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
Steps to Reproduce
terraform apply
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
The error provided seems to be resulting from the Azure CLI command itself: ValueError: API version 2022-05-01 does not have operation group 'storage_accounts'. At a glance, I don't see any terraform/null provider specific syntax that would be causing your error.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform CLI and Provider Versions
Terraform v1.3.0
on linux_amd64
Terraform Configuration
Expected Behavior
To set network rule for storage account
Actual Behavior
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'
Steps to Reproduce
terraform apply
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: