I am trying to update an Azure Compute Gallery version but it's not working properly. The process I am following is as follows:
- Deploy the old version from the Compute Gallery to a new VM and start.
- 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.
- 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.)
- Reboot etc. Test connectivity to the application - all good.
- The fun starts here... run sysprep (sysprep.exe /oobe /generalize /mode:vm /shutdown)
- System shuts down
- 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
- Save Compute Gallery version
- Attempt to test - from Compute Gallery deploy as new VM
- 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