Forum Discussion
SriV
8 months agoMicrosoft Employee
Connecting to AML Workspace from Fabric Notebook
Hi, I am trying to authenticate to AML workspace from Fabric Notebook using DefaultAzureCredentials. While running the command, I am getting the below error saying failed to retrive token. I have...
- 8 months ago
Yes, there is a limitation. Fabric notebooks run inside a sandboxed env that does not support managed identity based auth to external azure services such as azure ML. DefaultAzureCredential will not work because the fabric runtime does not expose a MI, even if you grant permissions on the ML workspace. That is why the token retrieval fails.
Right now, the only reliable approach is to authenticate using a service principal (client id and secret or certificate). MSI from Fabric to AML is not supported at this time.