diff --git a/azure-ts-cosmosapp-component/cosmosApp.ts b/azure-ts-cosmosapp-component/cosmosApp.ts index 23892b42f..542fa17d6 100644 --- a/azure-ts-cosmosapp-component/cosmosApp.ts +++ b/azure-ts-cosmosapp-component/cosmosApp.ts @@ -55,6 +55,8 @@ export class CosmosApp extends pulumi.ComponentResource { offerType: "Standard", consistencyPolicy: { consistencyLevel: "Session", + maxIntervalInSeconds: 300, + maxStalenessPrefix: 100000, }, enableMultipleWriteLocations: args.enableMultiMaster, }, parentOpts); diff --git a/azure-ts-serverless-url-shortener-global/index.ts b/azure-ts-serverless-url-shortener-global/index.ts index 2f27a3b23..d1b67773a 100644 --- a/azure-ts-serverless-url-shortener-global/index.ts +++ b/azure-ts-serverless-url-shortener-global/index.ts @@ -23,6 +23,8 @@ const account = new azure.cosmosdb.Account("UrlStore", { offerType: "Standard", consistencyPolicy: { consistencyLevel: "Session", + maxIntervalInSeconds: 300, + maxStalenessPrefix: 100000, }, });