upload/azure: set hyperv generation
This is a required parameter in the new armcompute sdk.
This commit is contained in:
parent
adc07299a8
commit
edadbb3470
1 changed files with 1 additions and 0 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue