only enable ttl
@@ -54,7 +54,7 @@ resource cosmosDb 'Microsoft.DocumentDB/databaseAccounts@2021-04-15' = {
// Based on https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/time-to-live,
// if defaultTtl is not set, the item will never expire and also ttl is not enabled at all so
// ttl set on a per item basis will not be honored.
- defaultTtl: 86400 // 1 day
+ defaultTtl: -1 // only enable ttl
}
}
}
