英文:
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.
答案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'
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论