Reputation: 99
I am trying to create a windows azure service bus queue with a maximum size of 20GB.
My understanding is that the maximum allowed size is 80GB, but I am not able to create a queue larger than 5GB if I use the "Custom Create" button or 16GB if I use the "Quick Create" button on Azure's portal.
I've also tried to do this pragmatically as follow:
if (!namespaceManager.QueueExists(queueName))
{
var queueDescription = new QueueDescription(queueName)
{
MaxSizeInMegabytes = 20480,
DefaultMessageTimeToLive = new TimeSpan(0, 1, 0, 0)
};
namespaceManager.CreateQueue(queueDescription);
}
But the following exception was thrown:
The remote server returned an error: (400) Bad Request. SubCode=40000.
The specified value 20480 is invalid.
The property MaxSizeInMegabytes, must be one of the following values:
1024;2048;3072;4096;5120
Any ideas on how to create a service bus queue with a max size of 20GB?
Upvotes: 2
Views: 4040
Reputation: 30903
It is pretty clear from the error message what are the possible options for a Service Bus Queue.
It can also clearly be seen from the official documentation on Service Bus Quotas and Limits. Besides, the size cannot be changed once the queue has been created!
UPDATE
After technically proving, creating a partitioned queue with Max Size of 5G gives actually a Queue with max size of 80G. Undocumented and unexpected, but that is the result:
Upvotes: 1