Azure ML operations : workspace authentication error

Viewed 706

I need to connect with Azure ML Workspace during deployment over container instance.

ws = Workspace(subscription_id="your-sub-id",
              resource_group="your-resource-group-id",
              workspace_name="your-workspace-name"
              )

Interactive Authentication to the ML Workspace prompts to login and then fails with below error message.

AttributeError: 'BasicTokenAuthentication' object has no attribute 'get_token'

i have been following this Azure Authentication document.

Any help is much appreciated.

2 Answers

For me this was fixed by updating azureml-core from 1.13.0 to 1.14.0.

If this is an automated deployment, I recommend that you look into using ServicePrincipalAuthentication like the doc page that you link suggeests. In this manner, you can pass the client id and client secrets as environment variablse.

Related