powershell - Azure Batch 容器配置中的 Azure 容器注册表的 AD 服务主体?

标签 powershell azure azure-active-directory azure-batch azure-container-registry

我正在尝试使用 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/

相关文章:

powershell - 获取格式化的通用日期/时间

powershell - Win-PS2EXE-尊重生成的可执行文件的位置

azure - 当AppService计划自动扩展时,HostedService是否会自动扩展?

azure - 为什么我的具有自动交换功能的 Azure WebApp 默认情况下会与预览交换?

使用 powershell 进行 Multi-Tenancy 和个人帐户的 Azure AD 应用程序注册

azure - 使用 Azure AD 的 API 后端 (.NET Core) 中的身份验证基础知识

azure - 在VPN外部使用Azure自动登录

rest - Office365 Outlook REST API 不返回所有邮件

powershell - 无法使用 powershell 脚本在 Windows 8 上下载 zip 文件

c# - Windows Azure 移动服务数据获取已完成