Deploy Azure Machine Learning extension on AKS is failed.

Lai Yin Bo (NCS) 0 Reputation points
2025-03-12T01:00:22.35+00:00

Execute below command, then get error.I don't know how to make my account has "Microsoft.KubernetesConfiguration/register/action" permission.

az provider register --namespace Microsoft.KubernetesConfiguration
Message: The client 'xxxxxxx' with object id 'xxxxxxxx' does not have authorization to perform action 'Microsoft.KubernetesConfiguration/register/action' over scope '/subscriptions/xxxxxxx' or the scope is invalid. If access was recently granted, please refresh your credentials.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,177 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vikram Singh 2,390 Reputation points Microsoft Employee
    2025-03-12T04:52:55.1766667+00:00

    Hi Lai Yin Bo (NCS),

    Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.

    The error message indicates that your account does not have the necessary permissions to perform the Microsoft.KubernetesConfiguration/register/action operation. To resolve this issue, here are the steps you can follow:

    1. Assign the Required Role: You need to assign the Contributor role or a custom role with the Microsoft.KubernetesConfiguration/register/action permission to your account. You can do this through the Azure portal or using Azure CLI.
      • Azure Portal:
      1. Navigate to your subscription in the Azure portal.
      2. Select "Access control (IAM)".
      3. Click on "Add" and then "Add role assignment".
      4. Select the Contributor role or a custom role with the required permission.
      5. Assign the role to your account.
      • Azure CLI: az role assignment create --assignee <your-account-id> --role Contributor --scope /subscriptions/<your-subscription-id>
    2. Refresh Your Credentials: After assigning the role, you need to refresh your credentials to ensure the changes take effect. You can do this by logging out and logging back in to the Azure CLI:
         az logout
         az
      
    3. Register the Provider: Once you have the necessary permissions, you can register the Microsoft.KubernetesConfiguration provider:
         az provider register --namespace Microsoft.KubernetesConfiguration
      

    I hope this is helpful! Do let me know if you are still the facing the issue.

    For more info, please refer to: Deploy Azure Machine Learning extension on Kubernetes cluster - Azure Machine Learning | Microsoft Learn

    If the reply was helpful, please don't forget to upvote and/or Accept the answer, this can be beneficial to other community members.

    Thanks

    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.