Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth failure when running az ommand on newly provisioned compute instance in AzureML #29

Open
KBaroni opened this issue Sep 29, 2023 · 0 comments

Comments

@KBaroni
Copy link

KBaroni commented Sep 29, 2023

Ran into the auth error below when running this az command from a newly provisioned compute instance terminal:
(azureml_py38) azureuser@mlops1:~/cloudfiles/code/Users//mslearn-mlops/src$ az ml job create --file job.yml --workspace-name --resource-group

It does not appear to be a permissions issue since I am the owner of the workspace, the resource provider Microsoft.MachineLearningServices is registered, and the default datastore credentials use account key which were updated and saved to the data store.

This is the error:
Error with code: (AuthorizationFailed) The client < >' with object id '< >' does not have authorization to perform action 'Microsoft.MachineLearningServices/workspaces/datastores/read' over scope '/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/resourceGroups//providers/Microsoft.MachineLearningServices/workspaces//datastores/workspaceblobstore' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed

I can confirm there is a work-around which is to run the following sequence in full on the compute instance terminal:
11 az extension list
12 az extension remove -n azure-cli-ml
13 az extension remove -n ml
14 az extension add -n ml
15 az ml -h
16 az upgrade
17 az extension update -n ml
18 run_id=$(az ml job create -f jobs/single-step/scikit-learn/iris/job.yml --query name -o tsv)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant