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

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

Open
lucazav opened this issue Oct 20, 2020 · 1 comment

Comments

@lucazav
Copy link

lucazav commented Oct 20, 2020

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

@csetzkorn
Copy link

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

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

2 participants