-
Notifications
You must be signed in to change notification settings - Fork 17
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
kedro azureml run
does not work on an AzureML compute instance
#45
Comments
We're falling back to InteractiveCredentials here: kedro-azureml/kedro_azureml/client.py Line 31 in 94f3419
We'll be happy to accept a PR that will perform an optional fallback to DeviceCodeCredential https://learn.microsoft.com/en-us/python/api/azure-identity/azure.identity.devicecodecredential?view=azure-python
As per Microsoft's documentation, our default - which is
|
Thanks for the response. I might have some time to play around with this later this week. I will then try to see if this fixes the issue if so I will make a PR. |
Looking forward to it! :) |
Ok, I did a deep dive into the problem, and I found the issue. AzureML compute instance set by default the try:
credential = DefaultAzureCredential()
# Check if given credential can get token successfully.
credential.get_token("https://management.azure.com/.default")
except Exception:
# Fall back to InteractiveBrowserCredential in case DefaultAzureCredential not work
credential = InteractiveBrowserCredential() We will always fall back to the So, I believe the best course of account would be to check if you are on an AzureML compute instance, and if this is the case, tell What do you think @marrrcin ? I have create a PR with proposed solution |
fixed by: #47 |
I cannot get the getting started guide in the docs to work on an AzureML compute instance.
I have authenticated using:
azure login --use-device-code
.When I run the command
kedro azureml run
I get the following error:So it starts to redirect me to an interactive login, but this does not work on a compute instance since the redirection port is not accessible.
The text was updated successfully, but these errors were encountered: