Graphrag-accelerator error: Error assigning 'Azure Kubernetes Service RBAC Cluster Admin' role to deployer, exiting...

Leonid Sukharnikov 0 Reputation points
2025-05-08T02:35:27.14+00:00

I get an error after running bash deploy.sh -p deploy.parameters.json

OS: Windows 11

I have an owner role. Not sure how I get the error below:

Run ID: ch1 was successful after 4m40s
Getting AKS credentials... RBAC service might reject creating role assignment without --assignee-principal-type in the future. Better to specify --assignee-principal-type m
anually.
(MissingSubscription) The request did not have a subscription or a valid tenant level resource provider.
Code: MissingSubscription
Message: The request did not have a subscription or a valid tenant level resource provider.
...

Error assigning 'Azure Kubernetes Service RBAC Cluster Admin' role to deployer, exiting...

close to the end of the deployment.

Also, is there a way to assign a needed role and start where the script stopped (got an error)? It's annoying to delete all the resources before my next run.

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

1 answer

Sort by: Most helpful
  1. Durga Reshma Malthi 4,165 Reputation points Microsoft External Staff Moderator
    2025-05-08T13:14:16.36+00:00

    Hi Leonid Sukharnikov

    Could you please follow the below steps to resolve this issue:

    1. Ensure that your Azure CLI is set to the correct subscription. Verify the subscription settings by running the command: az account show --output table If not, you can set the subscription manually: az account set --subscription <your-subscription-id>
    2. Confirm that your account has either the Owner or User Access Administrator roles for both the Azure Kubernetes Service (AKS) and the resource group.
    3. Azure now requires explicit principal types for role assignments. Please run the following command: az role assignment create --assignee --role "Azure Kubernetes Service RBAC Cluster Admin" --scope "/subscriptions//resourceGroups/" --assignee-principal-type User.
      Replace <your-user-id>, <your-subscription-id>, and <your-resource-group> with the appropriate values.
    4. Instead of deleting all resources and restarting, you can resume from where the script failed by manually assigning the required role and rerunning the script: bash deploy.sh -p deploy.parameters.json

    Additional References:

    https://learn.microsoft.com/en-us/azure/aks/manage-azure-rbac?tabs=azure-cli

    Hope this helps!

    Please Let me know if you have any queries.

    0 comments No comments

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.