-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
"ManagedIdentityCredential: Unexpected content type "text/html"" error during AzureMachineLearningFileSystem function call #34936
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
Thanks for reaching out. Could you help to clarify the questions? e.g. you want to know more about the failure "Unexpected content type "text/html"" or you want azureml-fsspec to allow specifying credential object? |
Hi @Wor0001. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue. |
Thanks for the quick reply. It would be great if I could tell AzureMachineLearningFileSystem to skip the managed identity credential check, like I can by doing the "exclude_managed_identity_credential=True" arg with DefaultAzureCredential. Or to be able to pass a credential to AzureMachineLearningFileSystem to use specifically. I just want to avoid the error from the managed identity credential check. Is there way to do that? |
Thanks for the clarification. azureml-fsspec package is not monitored in this repo. Please open a ticket for the machine learning team. |
Hi @Wor0001. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Hi @Wor0001, since you haven’t asked that we |
Describe the bug
When executing a function of an instance of AzureMachineLearningFileSystem (such as .ls()) that is initialized to point to an AML datastore, DefaultAzureCredential fails when attempting to authenticate with the ManagedIdentityCredential, with the reason "Unexpected content type "text/html"". Screenshot of full error message below.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
DefaultAzureCredential attempts to authenticate with ManagedIdentityCredential, fails (because I'm running in VS Code on a local machine), and it continues attempting other authentication methods (eventually landing on CLICredential, which works).
Screenshots
Additional context
With this same setup, any time I use DefaultAzureCredential, I have to include the arg "exclude_managed_identity_credential=True", otherwise this same failure with the ManagedIdentityCredential will cause an error. This works for things like MLClient, where one can give it a credential to use when instantiating. To use an MLClient, for example, I could create a DefaultAzureCredential with "exclude_managed_identity_credential=True", then pass that credential into MLClient when initializing it. If I don't do this, I will get the same error when trying to do anything with the MLClient that required authentication. I'm also on USGovCloud.
The text was updated successfully, but these errors were encountered: