Azure AD 与 Azure DevOps 同步

标签 azure azure-devops azure-active-directory

我已成功将我的 Azure DevOps 组织与我的 Azure AD 租户连接起来。身份验证工作正常(只有我的租户中的用户可以登录),但我在 Azure DevOps 级别上看不到 Azure AD 中的任何组(就像我完成连接后 5 天),所以我的问题是如何处理Azure Ad 和 Azure DevOps 之间同步吗?我的目标是在 Azure AD 上建立一个组(我将在其中添加负责开发运营工作的人员),并将该组添加到 Azure DevOps。

如果您提供有关如何解决此问题的任何帮助或指示,我将非常感激。

最佳答案

这听起来与我遇到的问题非常熟悉,我在 this stack overflow question 上发布了类似的答案。 .

基本上,您无法以 guest 用户身份查看/搜索 Azure AD 用户或组 - 您是此 Azure AD 中的 guest 用户吗?

如果您是访客用户,您需要将自己转换为成员(member)而不是访客。

我的解决方案是

  • 下载 AzureAD powershell 模块
    • 安装模块 AzureAD
  • 连接到我的 AzureAD 实例
    • Connect-AzureAD -TenantId [您的租户 ID]
  • 更新用户
    • Set-AzureADUser -ObjectId [用户对象 ID] -UserType 成员

一旦我注销并再次登录(清除我的cookie) - tadaa!我可以在 DevOps 组织的添加屏幕中看到我的所有 Azure AD 组/用户。

关于Azure AD 与 Azure DevOps 同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55691095/

相关文章:

redirect - 为什么基本的 Umbraco 站点取代了我的 Azure 站点作为启动站点?

Azure KeyVault : SPN KeyVault Access Denied

powershell - 如何使用 powershell 通过单个用户名/密码提示对 AzureRM 和 AzureAD 进行身份验证

c# - Azure 云服务的多个 HTTPS 端点

python - python 中的 Azure WebJobs

azure - Terraform Azure AD Web 应用程序不会将客户端 ID 和密码传递到 Key Vault

azure-active-directory - Ocelot 与 Azure Active Directory 身份验证 .Net Core 3.1 集成

azure-active-directory - 如何使用 ms graph api 仅列出 AAD 中的安全组?

azure - 通过 DevOps Pipeline 将 Docker 镜像上传到 ACR

azure - 自托管构建代理无法连接到 Azure DevOps Services,无法建立 SSL 连接