Azure 服务总线订阅启用自动删除二头肌

问题描述 投票:0回答:1

我正在阅读这个 doco https://learn.microsoft.com/en-us/azure/templates/microsoft.servicebus/namespaces/topics/subscriptions?pivots=deployment-language-bicep 下面是可编辑列表使用 bicep 的服务总线订阅规范

resource symbolicname 'Microsoft.ServiceBus/namespaces/topics/subscriptions@2022-10-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    autoDeleteOnIdle: 'string'
    clientAffineProperties: {
      clientId: 'string'
      isDurable: bool
      isShared: bool
    }
    deadLetteringOnFilterEvaluationExceptions: bool
    deadLetteringOnMessageExpiration: bool
    defaultMessageTimeToLive: 'string'
    duplicateDetectionHistoryTimeWindow: 'string'
    enableBatchedOperations: bool
    forwardDeadLetteredMessagesTo: 'string'
    forwardTo: 'string'
    isClientAffine: bool
    lockDuration: 'string'
    maxDeliveryCount: int
    requiresSession: bool
    status: 'string'
  }
}

我无法在上面的二头肌规格中找到“从不自动删除”。最接近它的是“autoDeleteOnIdle”,这是我们在 bicep 中传递的,让 azure 知道在删除消息之前需要多长时间。但似乎“从不自动删除”并没有出现在上面的配置中。有什么想法可以在 bicep 中为 azure 服务总线订阅设置“从不自动删除”吗?谢谢。

azure azureservicebus azure-resource-manager azure-bicep
1个回答
0
投票

在 Azure 门户中,如果您选中

Never auto-delete
,它将像这样设置
autoDeleteOnIdle

autoDeleteOnIdle: 'P10675198DT2H48M5.477S'
© www.soinside.com 2019 - 2024. All rights reserved.