azureml-sdk-for-r icon indicating copy to clipboard operation
azureml-sdk-for-r copied to clipboard

get_workspace() is prompting for interactive authentication even if an 'auth' object is passed

Open lucazav opened this issue 4 years ago • 1 comments

I'm trying to get the reference to a ML workspace from a compute instance. I'm using the following code

auth <- interactive_login_authentication(tenant_id="<my-tenant-id>")

ws <- get_workspace("<ws-name>",
                    auth = auth,
                    subscription_id = "<subscription-id>",
                    resource_group = "<rg-name>")

I'm prompted for my authentication two times and at the end I'm getting the following error:

AuthenticationException: AuthenticationException: Message: Could not retrieve user token. Please run 'az login' InnerException More than one token matches the criteria. The result is ambiguous.

It's an unexpected behavior, as I used to get the ws reference in this way few months ago. Any help, please?

Thanks

lucazav avatar Oct 20 '20 13:10 lucazav

I am facing a similar issues. As far as I can see, azureml-sdk-for-r is unusable.

csetzkorn avatar May 11 '21 13:05 csetzkorn