Can't Deploy Sample App. Get error do not have "Azure Kubernetes Service RBAC Writer"

B.Y 0 Reputation points
2025-02-26T15:34:29.3+00:00

I already have the role specified in the error added in my resource group and added in the cluster itself. But the error persists? What am I missing?

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,293 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 19,681 Reputation points MVP
    2025-02-26T17:32:49.9833333+00:00

    Hi B.Y

    You can create the Azure Kubernetes Service RBAC Writer role assignments scoped to a specific namespace within the cluster using the following command and setting the scope to the desired namespace.

    az role assignment create --role "Azure Kubernetes Service RBAC Writer" --assignee <AAD-ENTITY-ID> --scope $AKS_ID/namespaces/<namespace-name>

    Try the deployment after the role has been assigned successfully.

    Hope this helps.


    --please don't forget to upvote and Accept as answer if the reply is helpful--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.