From 7615dc3dfeb87c2edf6e00b345709ee0c174361a Mon Sep 17 00:00:00 2001 From: Mikhail Shilkov Date: Tue, 24 Sep 2019 15:47:23 +0200 Subject: [PATCH] Add consistency parameters to work around the bug if TF --- azure-ts-cosmosapp-component/cosmosApp.ts | 2 ++ azure-ts-serverless-url-shortener-global/index.ts | 2 ++ 2 files changed, 4 insertions(+) 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, }, });