Forum Discussion

mehr_sa's avatar
mehr_sa
Regular Visitor
9 months ago
Solved

connect to Azure resources from a User Data Function

I have a standalone Python program that performs part of ETL, which anyone can run from their local computer. I need to integrate this program into the Fabric. I found that User Data Functions are su...
  • Ugk161610's avatar
    9 months ago

    Hi  mehr_sa  ,

    Yes, you can connect to Azure resources like Azure SQL Database and Azure Storage from a Fabric User Data Function (UDF).

    Inside your UDF, you can use Managed Identity or Service Principal authentication, similar to what you do in your standalone Python script. Here’s the approach:

    1. Enable Managed Identity for the Fabric workspace (if available in your tenant).

    2. Grant appropriate permissions to that identity — for example: