Get message ID in Azure queue

azure

Solution

Only way you could get the message id is `by getting the message`. So you would have to fetch messages from the queue using `GetMessage` or `GetMessages` method. However there's no guarantee that you will get the message you just created as `GetMessages` can only return up to 32 visible messages from the top of the queue.

Problem

Is there a way to get the message ID after insert it in a queue Azure ? ``` CloudStorageAccount storageAccount = CloudStorageAccount.parse(storageConnectionString); CloudQueueClient queueClient = storageAccount.createCloudQueueClient(); CloudQueue queue = queueClient.getQueueReference("myqueue"); queue.createIfNotExist(); CloudQueueMessage message = new CloudQueueMessage("Hello, World"); queue.addMessage(message); // Get message ID here ? ```

Original source