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:
- 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:
- Created 3 years ago
- Comments:6
Top 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 >
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
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv.
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.