【发布时间】:2015-02-25 10:48:19
【问题描述】:
我正在尝试创建一个最大大小为 20GB 的 Windows azure 服务总线队列。
我的理解是允许的最大大小为 80GB,但如果我使用“自定义创建”按钮,则无法创建大于 5GB 的队列,如果使用 Azure 门户上的“快速创建”按钮,则无法创建大于 16GB 的队列。
我也尝试过如下务实的做法:
if (!namespaceManager.QueueExists(queueName))
{
var queueDescription = new QueueDescription(queueName)
{
MaxSizeInMegabytes = 20480,
DefaultMessageTimeToLive = new TimeSpan(0, 1, 0, 0)
};
namespaceManager.CreateQueue(queueDescription);
}
但是抛出了以下异常:
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
关于如何创建最大大小为 20GB 的服务总线队列的任何想法?
【问题讨论】:
标签: azure service azureservicebus