az disk grant-access fails with APIVersion 2020-06-30 not available
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az disk grant-access
Errors:
APIVersion 2020-06-30 is not available
Traceback (most recent call last):
python3.7/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
six.reraise(*sys.exc_info())
...
cli/command_modules/vm/custom.py, ln 387, in grant_disk_access
access_level=access_level)
cli/command_modules/vm/custom.py, ln 170, in _grant_access
op = client.disks if is_disk else client.snapshots
azure/mgmt/compute/_compute_management_client.py, ln 312, in disks
raise NotImplementedError("APIVersion {} is not available".format(api_version))
NotImplementedError: APIVersion 2020-06-30 is not available
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 disk grant-access -n {} -g {} --access-level {} --duration-in-seconds {}
Expected Behavior
Environment Summary
Linux-5.9.1-x86_64-with-glibc2.2.5
Python 3.7.9
Installer: PIP
azure-cli 2.12.1 *
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
az snapshot not using the latest API version 2022-03-02 #23895
Message: Minimum api-version of 2022-03-02 required to create snapshots on ultra or premiumV2 disks.
Read more >Disks - Grant Access - REST API (Azure Compute)
The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for...
Read more >for-upload / az disk grant-access --access-level Write - Stack ...
I meet the same issue before some time. I used many many ways to test it. At last, I found if we upload...
Read more >PermissionSet | Metadata API Developer Guide
Represents a set of permissions that's used to grant more access to one or more users without changing their profile or reassigning profiles....
Read more >azure-cli: az webapp commands failing: API version 2022-03 ...
az webapp list. The command failed with an unexpected error. Here is the traceback: API version 2022-03-01 does not have operation group 'web_apps'...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ran today:
Apparently succeeded.
az version:
Glad to know that!