upload/azure: set hyperv generation

This is a required parameter in the new armcompute sdk.
This commit is contained in:
Sanne Raymaekers 2024-01-10 18:01:48 +01:00
parent adc07299a8
commit edadbb3470

View file

@ -163,6 +163,7 @@ func (ac Client) RegisterImage(ctx context.Context, subscriptionID, resourceGrou
imageFuture, err := c.BeginCreateOrUpdate(ctx, resourceGroup, imageName, armcompute.Image{
Properties: &armcompute.ImageProperties{
HyperVGeneration: common.ToPtr(armcompute.HyperVGenerationTypesV1),
SourceVirtualMachine: nil,
StorageProfile: &armcompute.ImageStorageProfile{
OSDisk: &armcompute.ImageOSDisk{