Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cant create queue

For a test I created a free tier IoT Hub and basic service bus. But when I click on the "+ Queue" and fill out all the fields; setting name, size (1gb), message to to live (14 days, default), lock duration (30 seconds, default) and only "Enable partitioning" I get this errormessage when I click create:

The property 'AutoDeleteOnIdle' cannot be set when creating a Queue because the namespace 'x' is using 'Basic' tier.

I should be able to create queues, but not topics with this setup. Are one of the properties of the "Create queue" blade running with a different naming convention from "AutoDeleteOnIdle"?

like image 788
fUrious Avatar asked Oct 18 '22 10:10

fUrious


1 Answers

The property 'AutoDeleteOnIdle' cannot be set when creating a Queue because the namespace 'x' is using 'Basic' tier.

I could reproduce the issue with the following sample when I am using 'Basic' tier.

var namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString);

namespaceManager.CreateQueue(new QueueDescription("testqueue") {
    DefaultMessageTimeToLive = TimeSpan.FromDays(14),
    LockDuration = TimeSpan.FromSeconds(30),
    EnablePartitioning = true,
    AutoDeleteOnIdle = TimeSpan.FromMinutes(5) });
}

Exception

enter image description here

After I scale it to standard tier, the above code works fine. If possible, please try to scale to standard tier and check if you could create queue&specify the property AutoDeleteOnIdle.

enter image description here

like image 137
Fei Han Avatar answered Oct 20 '22 23:10

Fei Han