Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Modules] DocumentDB - Add enable free tier tag to cosmos db properties #3128

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/Microsoft.DocumentDB/databaseAccounts/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ param defaultConsistencyLevel string = 'Session'
@description('Optional. Enable automatic failover for regions.')
param automaticFailover bool = true

@description('Optional. Flag to indicate whether Free Tier is enabled.')
param enableFreeTier bool = false

@minValue(10)
@maxValue(2147483647)
@description('Optional. Max stale requests. Required for BoundedStaleness. Valid ranges, Single Region: 10 to 1000000. Multi Region: 100000 to 1000000.')
Expand Down Expand Up @@ -257,6 +260,7 @@ var databaseAccount_properties = union({
consistencyPolicy: consistencyPolicy[defaultConsistencyLevel]
locations: databaseAccount_locations
capabilities: capabilities
enableFreeTier: enableFreeTier
backupPolicy: backupPolicy
} : {}), (!empty(sqlDatabases) ? {
// SQLDB properties
Expand Down
1 change: 1 addition & 0 deletions modules/Microsoft.DocumentDB/databaseAccounts/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ This module deploys a DocumentDB database account and its child resources.
| `diagnosticStorageAccountId` | string | `''` | | Resource ID of the diagnostic storage account. |
| `diagnosticWorkspaceId` | string | `''` | | Resource ID of the log analytics workspace. |
| `enableDefaultTelemetry` | bool | `True` | | Enable telemetry via a Globally Unique Identifier (GUID). |
| `enableFreeTier` | bool | `False` | | Flag to indicate whether Free Tier is enabled. |
| `gremlinDatabases` | _[gremlinDatabases](gremlinDatabases/readme.md)_ array | `[]` | | Gremlin Databases configurations. |
| `location` | string | `[resourceGroup().location]` | | Location for all resources. |
| `lock` | string | `''` | `['', CanNotDelete, ReadOnly]` | Specify the type of lock. |
Expand Down