Search code examples
azureazure-machine-learning-service

Azure ML operations : workspace authentication error


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.


Solution

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