Add consistency parameters to work around the bug if TF
MODIFY
azure-ts-cosmosapp-component/cosmosApp.ts
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);

MODIFY
azure-ts-serverless-url-shortener-global/index.ts
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,
},
});

Add consistency parameters to work around the bug if TF (#405)