Skip to content

Commit

Permalink
Add consistency parameters to work around the bug if TF (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailshilkov authored Sep 24, 2019
1 parent 0ebca88 commit f02e333
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions azure-ts-cosmosapp-component/cosmosApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ export class CosmosApp extends pulumi.ComponentResource {
offerType: "Standard",
consistencyPolicy: {
consistencyLevel: "Session",
maxIntervalInSeconds: 300,
maxStalenessPrefix: 100000,
},
enableMultipleWriteLocations: args.enableMultiMaster,
}, parentOpts);
Expand Down
2 changes: 2 additions & 0 deletions azure-ts-serverless-url-shortener-global/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const account = new azure.cosmosdb.Account("UrlStore", {
offerType: "Standard",
consistencyPolicy: {
consistencyLevel: "Session",
maxIntervalInSeconds: 300,
maxStalenessPrefix: 100000,
},
});

Expand Down

0 comments on commit f02e333

Please sign in to comment.