在 Compute Engine 中建立 Windows Server VM 執行個體
如要直接在 Google Cloud 控制台按照逐步指南操作,請按一下「Guide me」(逐步引導):
定價
事前準備
- 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.
前往「IAM」頁面 - 選取專案。
- 按一下「授予存取權」 。
-
在「New principals」(新增主體) 欄位中,輸入您的使用者 ID。 這通常是 Google 帳戶的電子郵件地址。
- 在「Select a role」(選取角色) 清單中,選取角色。
- 如要授予其他角色,請按一下 「新增其他角色」,然後新增每個其他角色。
- 按一下 [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.
前往「IAM」頁面 - 選取專案。
- 按一下「授予存取權」 。
-
在「New principals」(新增主體) 欄位中,輸入您的使用者 ID。 這通常是 Google 帳戶的電子郵件地址。
- 在「Select a role」(選取角色) 清單中,選取角色。
- 如要授予其他角色,請按一下 「新增其他角色」,然後新增每個其他角色。
- 按一下 [Save]。
-
啟用 Compute Engine API。
- 如果您的本機電腦並非使用 Windows,請安裝遠端桌面協定用戶端,例如 Chrome 遠端桌面。
建立 Windows Server VM 執行個體
- 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.
- 在「Public images」分頁上,從「Operating system」(作業系統) 清單中選擇「Windows Server」。
- 從「版本」清單中選擇 Windows Server 2019 Datacenter。
- 按一下 [Select] (選取)。
- 在「Firewall」(防火牆) 區段中,選取 「Allow HTTP traffic」(允許 HTTP 流量)。
- 如要建立 VM,請按一下「建立」。
啟動 VM 執行個體會花費一些時間。VM 執行個體準備就緒後,就會列在「VM 執行個體」頁面中,並顯示綠色的狀態圖示。
連線至 VM 執行個體
前往 Google Cloud 控制台的「VM instances」(VM 執行個體) 頁面。
在「Name」(名稱) 欄下方,按一下 VM 執行個體名稱。
在「遠端存取」部分下方,按一下「設定 Windows 密碼」。
指定使用者名稱,然後點選「Set」(設定),即可產生此 Windows Server VM 的新密碼。請儲存使用者名稱與密碼,以便登入 VM。
在 VM 上安裝 Chrome 遠端桌面服務。
清除所用資源
如要避免系統向您的 Google Cloud 帳戶收取本頁所用資源的費用,請按照下列步驟操作。
前往 Google Cloud 控制台的「VM instances」(VM 執行個體) 頁面。
按一下您建立的 VM 執行個體名稱。
在 VM 執行個體詳細資料頁面的頂端,按一下「刪除」。