question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az disk grant-access fails with APIVersion 2020-06-30 not available

See original GitHub issue

This 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MartinPotiercommented, Nov 16, 2020

Ran today:

$ az disk grant-access -n <name> -g <group> --access-level Read --duration-in-seconds 86400
{- Finished ..
  "accessSas": "https://md-cj0nvzhst1hw.blob.core.windows.net/mv4xbjcbn3t1/abcd?sv=2018-03-28&sr=b&si=xxxxx&sig=xxxxx"
}

Apparently succeeded.

az version:

{
  "azure-cli": "2.11.1",
  "azure-cli-core": "2.11.1",
  "azure-cli-telemetry": "1.0.5",
  "extensions": {}
}
0reactions
qwordycommented, Nov 17, 2020

Glad to know that!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found