Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable rbac and aad on existing aks

I have created Azure Kubernetes Cluster, However RBAC and AKS-managed Azure Active Directory are disabled, i want to enable both, but unable to do so

Environment : Azure AKS Cluster v1.19.11

enter image description here

I have tried command to enable rbac & aad

$  az aks update -g  k8s-azwe-rg-01 -n k8s-azwe-aks-01 --enable-azure-rbac
Cannot specify "--enable-azure-rbac" if managed AAD is not enabled

$ az aks update -g k8s-azwe-rg-01 -n k8s-azwe-aks-01 --enable-aad --aad-admin-group-object-ids 4b-58-0c-7a --aad-tenant-id e-ece23-19d66-9d4
(RBACNotEnabledForAAD) RBAC must be enabled for AAD to be enabled.


$  az aks update -g  k8s-azwe-rg-01 -n k8s-azwe-aks-01 --enable-aad --enable-azure-rbac
(RBACNotEnabledForAAD) RBAC must be enabled for AAD to be enabled.
Code: RBACNotEnabledForAAD
Message: RBAC must be enabled for AAD to be enabled.

like image 829
Satyam Pandey Avatar asked Oct 20 '25 05:10

Satyam Pandey


1 Answers

RBAC can only be enabled during cluster creation, you cannot enable it after the aks cluster is formed.

like image 55
zposloncec Avatar answered Oct 21 '25 20:10

zposloncec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!