I have created a workspace in our azure environment and try to run this code:
library(azuremlsdk)
ws <- get_workspace(
name = "someworkspace",
subscription_id = "si1",
resource_group ="rg1"
)
Some interactive authenticator opens in my browser, which I think is intended behaviour as I have no tenantdid. However, I get this:
Performing interactive authentication. Please follow the instructions on the terminal.
Note, we have launched a browser for you to login. For old experience with device code, use "az login --use-device-code"
You have logged in. Now let us find all the subscriptions to which you have access...
Interactive authentication successfully completed.
Performing interactive authentication. Please follow the instructions on the terminal.
Note, we have launched a browser for you to login. For old experience with device code, use "az login --use-device-code"
You have logged in. Now let us find all the subscriptions to which you have access...
Interactive authentication successfully completed.
AuthenticationException: AuthenticationException:
Message: Could not retrieve user token. Please run 'az login'
InnerException It is required that you pass in a value for the "algorithms" argument when calling decode().
ErrorResponse
{
"error": {
"code": "UserError",
"inner_error": {
"code": "Authentication"
},
"message": "Could not retrieve user token. Please run 'az login'"
}
}
I also tried:
az login
This works fine. So for me all this is very confusing!
So I tried the same in Python and had a similar error and came across this:
https://github.com/Azure/azure-sdk-for-python/issues/16035
Downgrading:
PyJWT
helped. The bizarre world of open source and its web of interdependencies!