Azure 服务总线队列 - 自动删除消息

Azure Service Bus Queue - auto delete messages

是否可以在服务总线中创建队列并指定在发布消息时自动删除它?

根据您的描述,您希望发送消息并自动删除消息。假设你想要的可以用TTL实现。

当您使用逻辑应用程序发送消息时,有一个选项生存时间,勾选doc。描述是

This is the duration, in ticks, that a message is valid. The duration starts from when the message is sent to the Service Bus.

您也可以在队列属性下的门户中设置队列 TTL。