Skip to content

Commit

Permalink
[Modules] MongoDB: Removed throughput if database is deployed serverl…
Browse files Browse the repository at this point in the history
…ess (#1571)

* fix(mongodb):  Removed throughput if database is deployed serverless

* fix(mongodb):  Added thoughput ternary to collections
  • Loading branch information
itpropro authored Jun 25, 2022
1 parent f05f0aa commit cbbffbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ resource collection 'Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/coll
parent: databaseAccount::mongodbDatabase
properties: {
options: {
throughput: throughput
throughput: contains(databaseAccount.properties.capabilities, 'EnableServerless') ? null : throughput
}
resource: {
id: name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resource mongodbDatabase 'Microsoft.DocumentDB/databaseAccounts/mongodbDatabases
id: name
}
options: {
throughput: throughput
throughput: contains(databaseAccount.properties.capabilities, 'EnableServerless') ? null : throughput
}
}
}
Expand Down

0 comments on commit cbbffbb

Please sign in to comment.