machine-learning-apps / ml-template-azure

Template for getting started with automated ML Ops on Azure Machine Learning
MIT License
126 stars 87 forks source link

Issue in "Connect/create Machine Learning Workspace step" #17

Open RajdeepBiswas opened 2 years ago

RajdeepBiswas commented 2 years ago

Error Details:

get_workspace error using subscription_id=xxx, resource_group_name=mlops-ga-rg , workspace_name=mlops-ga-ws Message: "error_details": "error": "code": "AuthorizationFailed", "message": "The client 'xxx' with object id 'xxx' does not have authorization to perform action 'Microsoft.MachineLearningServices/workspaces/read' over scope '/subscriptions//resourceGroups/mlops-ga-rg /providers/Microsoft.MachineLearningServices/workspaces/mlops-ga-ws' or the scope is invalid. If access was recently granted, please refresh your credentials."


***,
"status_code": 403,
"url": "https://management.azure.com/subscriptions/***/resourceGroups/mlops-ga-rg%20/providers/Microsoft.MachineLearningServices/workspaces/mlops-ga-ws?api-version=2020-01-01"

InnerException None
ErrorResponse 

The object id that is getting shown here does not match the sp I created

Double checked the permission of the sp and the value of the secret in github repo

Any ideas?

marvinbuss commented 2 years ago

Hi @RajdeepBiswas, Can you please check whether your Service Principle was configure as described here: https://github.com/machine-learning-apps/ml-template-azure#3-setting-up-the-required-secrets