Azure compute gallery sysprep issues

om flag

I am trying to update an Azure Compute Gallery version but it's not working properly. The process I am following is as follows:

  1. Deploy the old version from the Compute Gallery to a new VM and start.
  2. Use RDP to login to VM and patch. The OS is Windows Server 2019. Its an application server with a single drive so basically IIS and third party application.
  3. VM is patched using Windows Update and updates are applied for .net updates. Basic security settings are tightened up (TLS1.0 and 1.1 disabled etc.)
  4. Reboot etc. Test connectivity to the application - all good.
  5. The fun starts here... run sysprep (sysprep.exe /oobe /generalize /mode:vm /shutdown)
  6. System shuts down
  7. Note the disk used in the VM and add a version in the Compute Gallery which points to the disk of the VM I just patched
  8. Save Compute Gallery version
  9. Attempt to test - from Compute Gallery deploy as new VM
  10. The deploy never finishes. In the Azure console it sits at Creating indefinitely

This is driving me crazy. I have tried variations of the sysprep command line. I have tried different sized Azure servers. I have tested to see if there are any patches that are stuck in pending but nothing.

Does anyone have any ideas please? Ganners

om flag

I think I have worked this one out myself.

I'd created a new Compute Gallery for the stuff I was creating and I'd inadvertently used a Windows v1 image definition rather than v2. It turns out the difference is all around UEFI compatibility/emulation. Created a new v2 gallery and image and hey presto it all works!

I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.