How to send message to Azure event hub with amqp in python
问题 Anyone knows how to send a message to Azure event hub with amqp in python? I need to send the message with partition key(not the partition id). Thanks very much. 回答1: According to the section Use of partition keys of the offical document Partitioned queues and topics , as below, you can send a message with partition key via set the PartitionKey property of the message. PartitionKey : If a message has the BrokeredMessage.PartitionKey property but not the BrokeredMessage.SessionId property set,