Reputation: 1175
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.
Upvotes: 1
Views: 746
Reputation: 29736
From Azure portal, if you check Never auto-delete
it will set the autoDeleteOnIdle
like that:
autoDeleteOnIdle: 'P10675198DT2H48M5.477S'
Upvotes: 3