How is it possible to create a blob (vhd) of the second generation in Azure

29 views
Skip to first unread message

Slipchenko Aleksandr

unread,
Oct 25, 2023, 8:40:45 AM10/25/23
to Packer
Good day

How is it possible to create a blob (vhd) of the second generation using "type": "azure-arm"

how to use
       "os_type": "Linux",
       "image_publisher": "Canonical",
       "image_offer": "0001-com-ubuntu-server-focal",
       "image_sku": "20_04-lts-gen2",

When adjusting the grip
       "capture_container_name": "{{user `main_container `}}",
       "capture_name_prefix": "{{user `blob_prefix_name`}}_{{user `blob_prefix_os`}}",

I get an error

==> azure-arm.Ubuntu basic : ERROR: -> DeploymentFailed : At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.
==> azure-arm.Ubuntu basic : ERROR: -> OperationNotAllowed : The specified platform image is not supported for creating a Virtual Machine with unmanaged disks. Please refer to the disallowed VM disk types at https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages/get#vmdisktypes.

If you create an image, it is created normally, but you need to get a blob (vhd)

Please tell me where to look and how to decide.

Thank you.
Reply all
Reply to author
Forward
0 new messages