GCP Vertex AI“启用必要的 API”当已经启用时
我是 GCP Vertex AI 的新手,怀疑自己因缺乏经验而犯了错误,但谷歌搜索答案并没有给我带来任何有效的信息。
我在 AI Platform 中创建了一个 Jupyter Notebook,但想安排它在设定的时间段运行。所以我希望使用Vertex AI的执行功能。起初,当我尝试访问 Vertex 时,我无法这样做,因为 GCP 中尚未启用 API。然后,我的 IT 团队启用了 Vertex AI API,我现在可以使用 Vertex。这是一张显示它已启用的图片。 启用 API 图片
我将笔记本上传到 Vertex 中的 JupyterLab 实例,当我单击执行按钮,我收到一条 错误消息 说我需要“启用必要的 API”,专门针对 Vertex AI API。我不确定为什么要考虑它已经启用。我尝试单击“启用”,但它只是旋转啊旋转,然后我只能通过关闭或重新加载选项卡来摆脱它。
我想指出的另一件事是,以防设置问题,目前我的 “托管笔记本”选项卡显示“预览” “ 在工作台中。我开始认为这可能是一个指示器,表明需要启用一个单独的功能才能使用托管笔记本(我可以从中访问“执行”按钮)。当我单击“用户管理的笔记本”并从那里打开 JupyterLab 时,我没有“执行”按钮。
我正在使用的 GCP 帐户已启用结算功能。
谁能给我指出正确的方向,让“执行”按钮发挥作用?
I am new to GCP's Vertex AI and suspect I am running into an error from my lack of experience, but Googling the answer has brought me no fruitful information.
I created a Jupyter Notebook in AI Platform but wanted to schedule it to run at a set period of time. So I was hoping to use Vertex AI's Execute function. At first when I tried accessing Vertex I was unable to do so because the API had not been enabled in GCP. My IT team then enabled the Vertex AI API and I can now utilize Vertex. Here is a picture showing it is enabled. Enabled API Picture
I uploaded my notebook to a JupyterLab instance in Vertex, and when I click on the Execute button, I get an error message saying I need to "Enable necessary APIs", specifically for Vertex AI API. I'm not sure why this is considering it's already been enabled. I try to click Enable, but it just spins and spins, and then I can only get out of it by closing or reloading the tab.
One other thing I want to call out in case it's a settings issue is that currently my Managed Notebooks tab says "PREVIEW" in the Workbench. I started thinking maybe this was an indicator that there was a separate feature that needed to be enabled to use Managed Notebooks (which is where I can access the Execute button from). When I click on the User-Managed Notebooks and open JupyterLab from there, I don't have the Execute button.
The GCP account I'm using does have billing enabled.
Can anyone point me in the right direction to getting the Execute button to work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 @JamesS 的评论,通过在他的个人帐户上添加必要的权限解决了该问题,因为该帐户是在 OP 的
托管笔记本实例
上配置的帐户,其中的访问模式为仅限单用户< /代码>。
根据我尝试复制场景时的测试,当用户没有分配“Vertex AI 用户”角色时,“启用必要的 API”消息框将继续显示。根据我的测试,以下是尝试在
托管笔记本实例
上创建计划运行时所需的最低角色。将答案发布为社区 wiki,以造福可能遇到的社区未来这个用例。
请随意编辑此答案以获取更多信息。
Based on @JamesS comments, the issue was solved by adding necessary permissions on his individual account since it is the account configured on OP's
Managed Notebook Instance
in which has an access mode ofSingle user only
.Based on my testing when I tried to replicate the scenario, "Enable necessary APIs" message box will continue to show when the user has no "Vertex AI User" role assigned to it. And in conclusion of my testing, below are the minimum roles required when trying to create a Scheduled run on a
Managed Notebook Instance
.Posting the answer as community wiki for the benefit of the community that might encounter this use case in the future.
Feel free to edit this answer for additional information.