Google Cloud コンソールを使用してインスタンスを作成する
Google Cloud コンソールを使用して Gemini Enterprise Agent Platform Workbench インスタンスを作成し、JupyterLab を開く方法について説明します。このページでは、インスタンスの停止、起動、リセット、削除の方法についても説明します。
始める前に
- Google Cloud アカウントにログインします。 Google Cloudを初めて使用する場合は、 アカウントを作成して、実際のシナリオでの Google プロダクトのパフォーマンスを評価してください。新規のお客様には、ワークロードの実行、テスト、デプロイができる無料クレジット $300 分を差し上げます。
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Notebooks API.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Notebooks API.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.
必要なロール
Agent Platform Workbench インスタンスの作成と管理に必要な権限を取得するには、プロジェクトに対するノートブック管理者 (roles/notebooks.admin)IAM ロールを付与するよう管理者に依頼してください。ロールの付与については、プロジェクト、フォルダ、組織に対するアクセス権の管理をご覧ください。
インスタンスを作成する
Google Cloud コンソールで [インスタンス] ページに移動します。
[新規作成] をクリックします。
[名前] に「
my-instance」と入力します。[作成] をクリックします。
このドキュメントに記載されているタスクの完了後、作成したリソースを削除すると、それ以上の請求は発生しません。詳細については、クリーンアップをご覧ください。
JupyterLab を開く
インスタンスを作成すると、Agent Platform Workbench が自動的にインスタンスを起動します。インスタンスのプロビジョニング中は、[JupyterLab を開く] リンクは最初は無効になっています。インスタンスのステータスがアクティブになるまで待ちます。
インスタンスを使用する準備ができたら、インスタンス名の横にある [JupyterLab を開く] をクリックします。
Agent Platform Workbench インスタンスで JupyterLab が開きます。
新しいノートブック ファイルを開く
JupyterLab で、[File] > [New] > [Notebook] の順に選択します。
[Select kernel] ダイアログで [Python 3] を選択し、[Select] をクリックします。
新しいノートブック ファイルが開きます。
インスタンスを停止する
Google Cloud コンソールで [インスタンス] ページに移動します。
停止するインスタンスを選択します。
[停止] をクリックします。
インスタンスを起動する
Google Cloud コンソールで [インスタンス] ページに移動します。
起動するインスタンスを選択します。
[起動] をクリックします。
インスタンスをリセットする
インスタンスをリセットすると、インスタンスのメモリの内容が強制的にワイプされ、インスタンスは初期状態にリセットされます。インスタンスのリセットの仕組みについては、リセット オペレーションをご覧ください。
Google Cloud コンソールで [インスタンス] ページに移動します。
リセットするインスタンスを選択します。
[ リセット] をクリックし、[リセット] をクリックして確定します。
クリーンアップ
このページで使用したリソースについて、 Google Cloud アカウントに課金されないようにするには、次の手順を実施します。
Agent Platform Workbench インスタンスの学習用に新しいプロジェクトを作成し、そのプロジェクトが不要になった場合は、そのプロジェクトを削除します。
既存の Google Cloud プロジェクトを使用した場合は、作成したリソースを削除して、アカウントに課金されないようにします。
Google Cloud コンソールで [インスタンス] ページに移動します。
削除するインスタンスが含まれている行を選択します。
[削除] をクリックします。(ウィンドウのサイズによっては、 オプション メニューに [削除] ボタンが表示される場合があります)。
[確認] をクリックして確定します。
次のステップ
- Agent Platform Workbench インスタンスの概要を読む。
- ノートブックを使用して Gemini Enterprise Agent Platform や他の Google Cloud サービスを使い始めるには、Agent Platform ノートブックのチュートリアルをご覧ください。
リセット] をクリックし、[リセット] をクリックして確定します。