Compute Engine で Windows Server VM インスタンスを作成する

Google Cloud コンソールを使用して Windows Server 仮想マシン(VM)インスタンスを作成する方法について説明します。


このタスクを Google Cloud コンソールで直接行う際の順を追ったガイダンスについては、[ガイドを表示] をクリックしてください。

ガイドを表示


料金

  • Windows Server イメージはプレミアム イメージであり、使用すると追加料金が発生します。

  • Windows Server VM は無料トライアルに含まれていません。

始める前に

  1. 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.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  3. Make sure that billing is enabled for your Google Cloud project.

  4. 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

    1. In the Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. 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.

    4. 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

    1. In the Google Cloud console, go to the IAM page.

      [IAM] に移動
    2. プロジェクトを選択します。
    3. [ アクセスを許可] をクリックします。
    4. [新しいプリンシパル] フィールドに、ユーザー ID を入力します。 これは通常、Google アカウントのメールアドレスです。

    5. [ロールを選択] リストでロールを選択します。
    6. 追加のロールを付与するには、 [別のロールを追加] をクリックして各ロールを追加します。
    7. [保存] をクリックします。
  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  6. Make sure that billing is enabled for your Google Cloud project.

  7. 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

    1. In the Google Cloud console, go to the IAM page.

      Go to IAM
    2. Select the project.
    3. 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.

    4. 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

    1. In the Google Cloud console, go to the IAM page.

      [IAM] に移動
    2. プロジェクトを選択します。
    3. [ アクセスを許可] をクリックします。
    4. [新しいプリンシパル] フィールドに、ユーザー ID を入力します。 これは通常、Google アカウントのメールアドレスです。

    5. [ロールを選択] リストでロールを選択します。
    6. 追加のロールを付与するには、 [別のロールを追加] をクリックして各ロールを追加します。
    7. [保存] をクリックします。
  8. Compute Engine API を有効にします。

    Compute Engine API を有効にする

  9. ローカルマシンで Windows を使用していない場合は、Chrome リモート デスクトップなどの RDP クライアントをインストールします。

Windows Server VM インスタンスを作成する

  1. In the Google Cloud console, go to the Create an instance page.

    Go to Create an instance

  2. In the Boot disk section, click Change to begin configuring your boot disk.
  3. [Public images] タブで、[OS] リストから [Windows Server] を選択します。
  4. [バージョン] リストから [Windows Server 2019 Datacenter] を選択します。
  5. [選択] をクリックします。
  6. [ファイアウォール] で、 [HTTP トラフィックを許可する] を選択します。
  7. VM を作成するには、[作成] をクリックします。

VM インスタンスが起動するまで、しばらくお待ちください。VM インスタンスの準備が整うと、[VM インスタンス] ページに緑色のステータス アイコン付きで表示されます。

VM インスタンスに接続する

  1. Google Cloud コンソールで、[VM インスタンス] ページに移動します。

    [VM インスタンス] に移動

  2. [名前] 列で、VM インスタンスの名前をクリックします。

  3. [リモート アクセス] セクションで、[Windows パスワードを設定] をクリックします。

  4. ユーザー名を指定して [設定] をクリックし、その Windows Server VM の新しいパスワードを生成します。VM にログインできるように、ユーザー名とパスワードを保存しておきます。

  5. VM に Chrome リモート デスクトップ サービスをインストールします。

  6. 選択したグラフィカル ツールまたはコマンドライン ツールを使用して VM インスタンスに接続します。

クリーンアップ

このページで使用したリソースについて、 Google Cloud アカウントに課金されないようにするには、次の手順を実施します。

  1. Google Cloud コンソールで、[VM インスタンス] ページに移動します。

    [VM インスタンス] に移動

  2. 作成した VM インスタンスの名前をクリックします。

  3. VM インスタンスの詳細ページの上部にある [削除] をクリックします。

次のステップ