azureml-sdk-for-r
azureml-sdk-for-r copied to clipboard
get_workspace() is prompting for interactive authentication even if an 'auth' object is passed
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
I am facing a similar issues. As far as I can see, azureml-sdk-for-r is unusable.