diff --git a/modules/Microsoft.DocumentDB/databaseAccounts/deploy.bicep b/modules/Microsoft.DocumentDB/databaseAccounts/deploy.bicep index 40b98067e5..9b8685f293 100644 --- a/modules/Microsoft.DocumentDB/databaseAccounts/deploy.bicep +++ b/modules/Microsoft.DocumentDB/databaseAccounts/deploy.bicep @@ -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.') @@ -257,6 +260,7 @@ var databaseAccount_properties = union({ consistencyPolicy: consistencyPolicy[defaultConsistencyLevel] locations: databaseAccount_locations capabilities: capabilities + enableFreeTier: enableFreeTier backupPolicy: backupPolicy } : {}), (!empty(sqlDatabases) ? { // SQLDB properties diff --git a/modules/Microsoft.DocumentDB/databaseAccounts/readme.md b/modules/Microsoft.DocumentDB/databaseAccounts/readme.md index be167f75f2..9b7ef01a0f 100644 --- a/modules/Microsoft.DocumentDB/databaseAccounts/readme.md +++ b/modules/Microsoft.DocumentDB/databaseAccounts/readme.md @@ -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. |