首页 > 解决方案 > Active Directory Docker - Windows 身份验证模式

问题描述

如何从 Windows Docker 容器连接到 Azure Active Directory?我的问题:我必须连接到数据库(在某些服务器中),它只将访问作为 Windows 身份验证模式,但我的容器不在域中。

标签: c#azuredockerdocker-composedockerfile

解决方案


您需要为此配置 gMSA(组托管服务帐户)。请按顺序遵循以下指南:

  1. 为 Windows 容器创建 gMSA
  2. 将您的应用配置为使用 gMSA
  3. 使用 gMSA 运行容器
  4. 使用 gMSA 编排容器

推荐阅读