Forum Discussion

going_grey's avatar
going_grey
Frequent Visitor
5 months ago
Solved

Streaming Spark Job - KQL Authentication

Hi   I want to stream data into a KQL database using a Streaming Spark Job. My initial plan was to retrieve a service principal secret from a key vault using:   notebookutils.credentials.getSecr...
  • v-veshwara-msft's avatar
    v-veshwara-msft
    4 months ago

    Hi going_grey ,

     

    Thanks for pointing that out, you’re correct.

    Even with the SDK approach, a credential is still required to authenticate to Key Vault, so it does not remove the need to securely store and pass a secret.

     

    Because of this, there seems to be isn’t a fully secure or secretless pattern available today for this scenario in Spark streaming with KQL, and this is a current limitation rather than a configuration issue.

     

    For production scenarios, approaches where authentication is handled outside Spark (for example using Fabric Data Pipeline or Eventstream) tend to be more reliable with the current capabilities.

     

    Hope this helps. Please reach out for further assistance.
    Thank you.