Unable to generate MSI token from Synapse while writing data to ServiceBus and EventHub

Ravi Shankar Gupta 0 Reputation points Microsoft Employee
2025-03-21T09:02:50.2433333+00:00

As per doc https://learn.microsoft.com/en-us/azure/synapse-analytics/spark/microsoft-spark-utilities?pivots=programming-language-scala

only the services for which Audience is available in list are allowed to generate a token using MsSparkUtils credential service. But there are other services like ServiceBus and EventHub for which there is no mention in documentation on how to generate MSI token using spark scala jar.

I am really trying to find a resolution for this.

Without this MSI cant be used to authenticate these services.

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.
5,306 questions
{count} votes

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.