Gurpal Bassali
Gurpal Bassali

Reputation: 1

I am seeing my azure service bus queue getting deleted automatically

I have been attempting to create Azure service bus queue on azure portal but the queue is automatically disappearing fro portal after few hours of use.

I am creating queue manually through azure portal account. Have sufficient funds in the account. The service bus currently on Azure is in Preview mode.

I am only attempting to publish/subscribe a message from queue through the code.

Upvotes: 0

Views: 1765

Answers (2)

Gurpal Bassali
Gurpal Bassali

Reputation: 1

It appears that queue was getting recycled overnight by some nightly process at azure due to lack of some usage indication at Microsoft azure. After I configured the SAS key information at the queue level and also left a message in queue overnight I don't see the queue getting recycled any more.

Thanks to Sean Feldman for providing useful information which helped me through the process.

Upvotes: 0

Sean Feldman
Sean Feldman

Reputation: 25994

Queue could be deleted as a result of

  1. Custom code that performs namespace management operations and deletes the entity.
  2. AutoDeleteOnIdle is enabled with a relatively short timespan, causing entity to be removed if it sees no action.

I suspect AutoDeleteOnIdle is set to a relatively low value. By default, it's TimeSpan.MaxValue and should not cause this issue.

Upvotes: 2

Related Questions