在本地运行的身份验证码头 - Azure
我已经在Azure AML上启用了身份,并且可以通过VSCODE在本地运行代码时访问AML工作区,因为当前会话已通过当前会话进行身份验证,
当我构建 az登录时,该代码在代码后经过身份验证。我试图使用AML工作区的代码中的Docker映像使用:
ws = Workspace.from_config('config.json')
但是由于Docker将在本地运行,因此无法通过Azure进行身份验证,因此无法访问工作空间。
是否有任何方法可以在运行Docker或其他方式时传递某种令牌,以便Azure可以验证我本地运行的Docker?
I have managed identity enabled on azure AML and can access the AML workspace when running the code locally via vscode as it is authenticated by the current session which is authenticated when code is run after az login
When I build the docker image inside the code I am trying to get AML workspace using:
ws = Workspace.from_config('config.json')
But as the docker will run locally, it can't be authenticated by azure and thus can't access the workspace.
Is there any way to pass some kind of token while running the docker or some other way so that the azure can authenticate my locally running docker?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要使用本地运行码头登录到Azure,可以使用以下命令。
您可以使用Azure Service主体和Docker Login登录无需交互(通常在脚本或连续集成方案)。
azure - -client-id xx -client-secret yy -tenant-id zz
参考: https://docs.docker.com/cloud/aci-integration/
For login into azure using local running docker , you can use the below command.
you can log in without interaction (typically in scripts or continuous integration scenarios), using an Azure Service Principal, with docker login.
azure --client-id xx --client-secret yy --tenant-id zz
Reference : https://docs.docker.com/cloud/aci-integration/