Skip to content

Commit

Permalink
feat: Add support for new Cosmos DB capabilities (#3887)
Browse files Browse the repository at this point in the history
## Description

- Add support for new Cosmos DB features in the capabilities list

<!--
>Thank you for your contribution !
> Please include a summary of the change and which issue is fixed.
> Please also include the context.
> List any dependencies that are required for this change.

Fixes #123
Fixes #456
Closes #123
Closes #456
-->

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|
[![avm.res.document-db.database-account](https://github.com/sinedied/bicep-registry-modules/actions/workflows/avm.res.document-db.database-account.yml/badge.svg?branch=cosmosdb-features)](https://github.com/sinedied/bicep-registry-modules/actions/workflows/avm.res.document-db.database-account.yml)
|

## Type of Change

<!-- Use the checkboxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utilities (Non-module affecting
changes)
- [x] Azure Verified Module updates:
- [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [ ] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [x] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [ ] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [ ] Update to documentation

## Checklist

- [x] I'm sure there are no other open Pull Requests for the same
update/change
- [x] I have run `Set-AVMModule` locally to generate the supporting
module files.
- [x] My corresponding pipelines / checks run clean and green without
any errors or warnings

<!-- Please keep up to date with the contribution guide at
https://aka.ms/avm/contribute/bicep -->

---------

Co-authored-by: Bryan <[email protected]>
  • Loading branch information
sinedied and bryansan-msft authored Dec 5, 2024
1 parent 8f81768 commit ad64aec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions avm/res/document-db/database-account/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3527,7 +3527,10 @@ List of Cosmos DB capabilities for the account.
'DisableRateLimitingResponses'
'EnableCassandra'
'EnableGremlin'
'EnableMaterializedViews'
'EnableMongo'
'EnableNoSQLFullTextSearch'
'EnableNoSQLVectorSearch'
'EnableServerless'
'EnableTable'
]
Expand Down
3 changes: 3 additions & 0 deletions avm/res/document-db/database-account/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ param diagnosticSettings diagnosticSettingType
'EnableMongo'
'DisableRateLimitingResponses'
'EnableServerless'
'EnableNoSQLVectorSearch'
'EnableNoSQLFullTextSearch'
'EnableMaterializedViews'
])
@description('Optional. List of Cosmos DB capabilities for the account.')
param capabilitiesToAdd string[] = []
Expand Down
7 changes: 5 additions & 2 deletions avm/res/document-db/database-account/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.31.92.45157",
"templateHash": "1272677222480156701"
"templateHash": "15087724607037385937"
},
"name": "DocumentDB Database Accounts",
"description": "This module deploys a DocumentDB Database Account.",
Expand Down Expand Up @@ -1076,7 +1076,10 @@
"EnableGremlin",
"EnableMongo",
"DisableRateLimitingResponses",
"EnableServerless"
"EnableServerless",
"EnableNoSQLVectorSearch",
"EnableNoSQLFullTextSearch",
"EnableMaterializedViews"
],
"metadata": {
"description": "Optional. List of Cosmos DB capabilities for the account."
Expand Down
2 changes: 1 addition & 1 deletion avm/res/document-db/database-account/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://aka.ms/bicep-registry-module-version-file-schema#",
"version": "0.8",
"version": "0.9",
"pathFilters": [
"./main.json"
]
Expand Down

0 comments on commit ad64aec

Please sign in to comment.