Azure服务总线订阅启用自动删除 Bicep

huangapple go评论71阅读模式
英文:

Azure service bus subscription enable auto delete bicep

问题

I am reading this doco: https://learn.microsoft.com/en-us/azure/templates/microsoft.servicebus/namespaces/topics/subscriptions?pivots=deployment-language-bicep and below is the list of editable specs of service bus subscription using 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'
  }
}

I am unable to find "Never auto delete" in the bicep specs above. The closest thing to it is "autoDeleteOnIdle," which is used in bicep to specify how long before deleting the message. But it seems "never auto delete" is not a configuration option in the code above. Do you have any ideas on how to set "never auto delete" in bicep for an Azure Service Bus Subscription? Thanks.

英文:

I am reading this doco https://learn.microsoft.com/en-us/azure/templates/microsoft.servicebus/namespaces/topics/subscriptions?pivots=deployment-language-bicep and below is the list of editable specs of service bus subscription using 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'
  }
}

I am unable to find "Never auto delete" on the bicep specs above. The closest thing to it is "autoDeleteOnIdle" which is a that we pass in bicep to let azure know how long before deleeting the message. But it seems "never auto delete" does not appear at the config above. Any ideas how to set "never auto delete" in bicep for azure service bus Subscription? Thanks.

Azure服务总线订阅启用自动删除 Bicep

答案1

得分: 3

从Azure门户,如果你勾选Never auto-delete,它会设置autoDeleteOnIdle如下:

autoDeleteOnIdle: 'P10675198DT2H48M5.477S'
英文:

From Azure portal, if you check Never auto-delete it will set the autoDeleteOnIdle like that:

autoDeleteOnIdle: 'P10675198DT2H48M5.477S'

huangapple
  • 本文由 发表于 2023年4月6日 22:19:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75950604.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定