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.

Message: Required parameter 'hyperVGeneration' is missing (null) while creating a Managed Disk image from blob storage

See original GitHub issue
  • Package Name: azure.mgmt.compute
  • Package Version: v2020_06_01
  • Operating System: ubuntu 18.04
  • Python Version: Python 3.7

Describe the bug Instead of creating the disk it throws Message: Required parameter 'hyperVGeneration' is missing (null). error.

To Reproduce Steps to reproduce the behavior:

  1. Run below code
compute_client = get_client_from_cli_profile(ComputeManagementClient)
async_creation = compute_client.images.create_or_update(
    '7AQVDL2J',
    'test',
    {
        'location': 'westeurope',
        'storage_profile': {
           'os_disk': {
              'os_type': 'Linux',
              'os_state': "Generalized",
              'blob_uri': 'https://bg09.blob.core.windows.net/vm-images/non-existent.vhd',
              'caching': "ReadWrite",
           }
        }
    }
) 

Expected behavior Disk should be created

Error

 Traceback (most recent call last):
  File "<stdin>", line 11, in <module>
  File "/usr/local/lib/python3.7/dist-packages/azure/mgmt/compute/v2020_06_01/operations/_images_operations.py", line 125, in create_or_update
    **operation_config
  File "/usr/local/lib/python3.7/dist-packages/azure/mgmt/compute/v2020_06_01/operations/_images_operations.py", line 81, in _create_or_update_initial
    raise exp
msrestazure.azure_exceptions.CloudError: Azure Error: InvalidParameter
Message: Required parameter 'hyperVGeneration' is missing (null).
Target: hyperVGeneration

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
msftbot[bot]commented, Jul 28, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv.

0reactions
iamvishnukscommented, Aug 5, 2020

async_creation = compute_client.images.create_or_update( rg_name, disk_name, { 'location': location, 'storage_profile': { 'os_disk': { 'os_type': 'Linux', 'os_state': "Generalized", 'blob_uri': uri, 'caching': "ReadWrite" } }, 'hyper_vgeneration': 'V1' } )

Added Hyper vgeneration version like this and issue got fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Required parameter 'hyperVGeneration' is missing (null) while ...
Message : Required parameter 'hyperVGeneration' is missing (null) while creating a Managed Disk image from blob storage ; Package Name: azure.mgmt ...
Read more >
Troubleshoot images in an Azure Compute Gallery
Creating a disk from an image version. Error Message, Cause, Mitigation. The value of parameter imageReference is invalid. You've tried to ...
Read more >
Installing a cluster on Azure with network customizations
In OpenShift Container Platform version 4.11, you can install a cluster with a customized network configuration on infrastructure that the installation ...
Read more >
azure-cli 2.23.0 - PyPI
Add error message for vm identity assign (#17685). Zone-redundant storage (ZRS) managed disks (#17754). az disk create : Trusted launch (#17775). az disk...
Read more >
Chapter 5. Installing on Azure OpenShift Container Platform 4.8
Record the values of the tenantId and id parameters from the previous output. You need these values during OpenShift Container Platform installation. Create...
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