Before you create the image, run GCESysprep on the instance to prepare it for the image creation process.
This process stops the instance. If you cannot stop your instance, you can skip the GCESysprep process and create the image while risking the integrity of the image.
-
Log in to your Windows instance and open PowerShell or Command Prompt as an administrator.
-
Use GCESysprep to prepare your system for duplication. This command shuts down the instance and closes the remote desktop connection.
After you prepare your instance, create the image.
-
Go to the Create a new image page in the GCP Console.
-
Specify the image Name.
-
Choose a Source disk with a Windows operating system from which you want to create an image.
-
Specify the location to store the image. Choose an image location from the Based on source disk location (default) drop-down menu.
-
Specify the properties for your image.
-
Click Create.
Hope it helps!!
If you need to know more about Google Cloud, We recommend joining GCP Certification course today.
Thanks!