In Azure, when I send a batch of messages to a queue, there arrives all in one message. I followed the instructions and example of the Azure Service Bus REST API documentation.
The curl call is something like this:
curl -X POST "https://{myServiceNamespace}.servicebus.windows.net/{name_of_my_queue}/messages" -v \
-H "Authorization: Bearer {my_token}" \
-H "Content-Type: application/vnd.microsoft.servicebus.json;" \
-d '[{"Body":"This is the first message","BrokerProperties":{"Label":"M1","TimeToLiveTimeSpan":"0.00:00:40"}},{"Body":"This is the second message","BrokerProperties":{"Label":"M2"},"UserProperties":{"Priority":"Low"}},{"Body":"This is the third message","BrokerProperties":{"Label":"M3"},"UserProperties":{"Priority":"Medium","Customer":"ABC"}}]'
The message arrives all in one:
Later, I tried some possible fixes, like change TimeToLiveTimeSpan property to TimeToLive, like indicates the documentation, but all were unsuccessful.
I suspect that the endpoint or the JSON structure must be different, but the documentation does not allow to know.
Someone knows why?
