How can I send messages to a topic using Azure managed identity in java? Right now im using the connectionString to send the message to the topic.
ServiceBusSenderClient senderClient = new ServiceBusClientBuilder()
.connectionString(connectionString)
.sender()
.topicName(topicName)
.buildClient();
In the Azure SDK for java, i could only find this example, which is for service bus queue
ServiceBusSenderAsyncClient sender = new ServiceBusClientBuilder()
.credential("<<fully-qualified-namespace>>", credential)
.sender()
.queueName("<<queue-name>>")
.buildAsyncClient();