Create a Windows Server VM instance in Compute Engine
To follow step-by-step guidance for this task directly in the Google Cloud console, click Guide me:
Pricing
Windows Server images are premium images, and using them results in additional charges.
Windows Server VMs are not included with the Free Trial.
Before you begin
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Make sure that you have the following role or roles on the project: Compute Instance Admin (v1), Compute Security Admin, Service Account User, Service Usage Admin
Check for the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
-
In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
- For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.
Grant the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
- Click Grant access.
-
In the New principals field, enter your user identifier. This is typically the email address for a Google Account.
- In the Select a role list, select a role.
- To grant additional roles, click Add another role and add each additional role.
- Click Save.
-
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
Make sure that you have the following role or roles on the project: Compute Instance Admin (v1), Compute Security Admin, Service Account User, Service Usage Admin
Check for the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
-
In the Principal column, find all rows that identify you or a group that you're included in. To learn which groups you're included in, contact your administrator.
- For all rows that specify or include you, check the Role column to see whether the list of roles includes the required roles.
Grant the roles
-
In the Google Cloud console, go to the IAM page.
Go to IAM - Select the project.
- Click Grant access.
-
In the New principals field, enter your user identifier. This is typically the email address for a Google Account.
- In the Select a role list, select a role.
- To grant additional roles, click Add another role and add each additional role.
- Click Save.
-
Enable the Compute Engine API.
- If you aren't using Windows on your local machine, install an RDP client such as Chrome Remote Desktop.
Create a Windows Server VM instance
- In the Google Cloud console, go to the Create an instance page.
- In the Boot disk section, click Change to begin configuring your boot disk.
- On the Public images tab, choose Windows Server from the Operating system list.
- Choose Windows Server 2019 Datacenter from the Version list.
- Click Select.
- In the Firewall section, select Allow HTTP traffic.
- To create the VM, click Create.
Allow a short time for the VM instance to start. After the VM instance is ready, it is listed on the VM instances page with a green status icon.
Connect to the VM instance
In the Google Cloud console, go to the VM instances page.
Under the Name column, click the name of your VM instance.
Under the Remote access section, click Set Windows password.
Specify a username, then click Set to generate a new password for this Windows Server VM. Save the username and password so you can log into the VM.
Install the Chrome Remote Desktop service on your VM.
Connect to your VM instance using your choice of graphical or command line tools.
Clean up
To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps.
In the Google Cloud console, go to the VM instances page.
Click the name of the VM instance you created.
At the top of the VM instance's details page, click Delete.