azure - 如何将现有 AKS 添加到 AAD?

标签 azure azure-active-directory azure-container-service azure-aks

前几天Azure在how to create an AKS cluster with RBAC and AAD上发布了一个描述。我已经有一个 AKS。如何将现有 AKS 添加到 AAD?

最佳答案

如果我去https://resources.azure.com并检查使用 Azure Active Directory (AAD) RBAC 创建的 AKS 群集,我可以看到与此类集成相关的这些属性:

"enableRBAC": true

"aadProfile": {
  "clientAppID": "7ee598bb-0000-0000-0000-83692e2d717e",
  "serverAppID": "7ee598bb-0000-0000-0000-83692e2d717e",
  "tenantID": "72f988bf-0000-0000-0000-2d7cd011db47"
}

如果我然后转到 https://resources.azure.com并尝试将我拥有的另一个 AKS 集群中的属性 enableRBAC 更改为 true,该集群不是使用 AAD 集成创建的,但我收到此错误:

{ "code": "InternalOperationError", "message": "An error has occurred in subscription 12a6d3bd-xxxx-xxxx-accf-0c984bed2311, resourceGroup: aks request: existing ManagedCluster has properties.enableRBAC false. update to true is not supported." }

因此,目前看来无法向现有集群添加 AAD 支持 - 您需要重新创建具有 AAD 支持的集群。

关于azure - 如何将现有 AKS 添加到 AAD?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50968703/

相关文章:

python-3.x - 如何将数据从 Azure ML(笔记本)传输到存储容器

azure - Github -> 另一个进程使用的 Azure 部署 dll

azure - 使用 Azure AD 帐户登录 Windows 10 时的多重身份验证

azure - Remove-AzureRmRouteConfig 不能像 Get-AzureRmRouteConfig 那样与 where-object 一起使用

python - 尝试使用 python 从 azure 函数触发 url,错误提示 "without a $return binding returned a non-None value"

azure - 通过 Graph API 读取 Azure AD 用户的日历需要什么权限

azure - 在 Azure 中创建 Kubernetes 集群失败

Azure AD Graph API 目录架构扩展

azure - 是否可以在发生事件时自动将所有用户从 Azure Active Directory 转移到另一个域数据库?

azure - 无法从 Pod 内使用 cidr 10.0.x.0/24 与网络中的计算机(k8s 集群外部)进行通信