Forum Discussion
planetwilson
Sep 13, 2021Brass Contributor
Azure Image Builder & Windows 11
Has anyone managed to get an image build working with AIB and Windows 11? The image I get doesn't seem to work correctly, I can't get a bootable VM from it. There are a number of errors but Packer is...
Adrián García Martinez
Oct 11, 2021Copper Contributor
I think I misunderstood the workaround myself, so I am going to retry now and will let you know if this works or not too...
https://github.com/danielsollondon/azvmimagebuilder/issues/57#issuecomment-684935782
planetwilson, did you try to distribute to a VHD and then as a post deployment task get the VHD captured as a version to SIG?
https://github.com/danielsollondon/azvmimagebuilder/issues/57#issuecomment-684935782
planetwilson, did you try to distribute to a VHD and then as a post deployment task get the VHD captured as a version to SIG?
Adrián García Martinez
Oct 12, 2021Copper Contributor
I can confirm that it works. Its a bit cumbersome but once scripted it's the same...
You have to use a managed image as the source to your vm in the template, then distribute to a VHD ; this is an option within the template, just make sure not to delete the resource group as the VHD will be stored in the VHDS container of the temporary resource group storage account.
Once that is complete, create a managed image out of that VHD and then publish it to the SIG.
VMs deployed from that image version work perfectly fine.
At least we do not need to wait for MSFT to release this feature! Let me know if its not clear and I will be happy to help you.
- Mikael LisshagenDec 13, 2022Copper ContributorThis is working native now. Just follow This guide. https://learn.microsoft.com/sv-se/azure/dev-box/how-to-customize-devbox-azure-image-builder