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:
- Assign the Required Role: You need to assign the
Contributor
role or a custom role with theMicrosoft.KubernetesConfiguration/register/action
permission to your account. You can do this through the Azure portal or using Azure CLI.- Azure Portal:
- Navigate to your subscription in the Azure portal.
- Select "Access control (IAM)".
- Click on "Add" and then "Add role assignment".
- Select the
Contributor
role or a custom role with the required permission. - Assign the role to your account.
- Azure CLI:
az role assignment create --assignee <your-account-id> --role Contributor --scope /subscriptions/<your-subscription-id>
- 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
- 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