我正在尝试使用 Azure 容器注册表中的 Docker 镜像作为 Azure Batch 中的任务。在 Docker CLI 中,我可以使用 Active Directory 服务主体的凭据对 ACR 进行身份验证,按照 ACR 文档,将应用程序 ID 作为用户名,将 key 作为密码。
当我尝试使用 Web 门户在新池 VM 容器注册表设置中手动输入这些凭据时,我在提交时收到以下错误:
The value provided for one of the properties in the request body is invalid.
The maximum length of user name that can be specified on a containerRegistry is 20
如果我使用 AzureRm.Batch Powershell 模块 cmdlet,则会创建池,但 containerRegistry 和 containerImages 属性为 null。
此 AD SP 身份验证方法是否可以与 Azure Batch VM 容器注册配置一起使用?我需要使用特定的 SDK 来完成此任务吗?
最佳答案
关于powershell - Azure Batch 容器配置中的 Azure 容器注册表的 AD 服务主体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48215670/