Connect to eventhub using Managed service identity (MSI) from Azure synapse analytics using pyspark spark streaming

Sunil Yadav 0 Reputation points
2024-09-26T05:45:48.2766667+00:00

I am trying to write data to Azure Event Hubs from an Azure Synapse Analytics notebook in PySpark using Managed Service Identity (MSI). Could you please provide step-by-step guidance on how to achieve this, along with the necessary code?

Please note, I have successfully connected using the SAS key previously.

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
635 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,903 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sunil Yadav 0 Reputation points
    2024-09-27T14:04:08.7333333+00:00

    @phemanth we have to read data from event-hub by using spark-streaming Like spark.readStream.option

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.