Skip to content

Commit 3cb24fd

Browse files
authored
update API versions for Cosmos DB tests (#35)
1 parent d6d07b3 commit 3cb24fd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/policy-integration-tests/cosmos-db/main.bad.bicep‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var namePrefix = globalConfig.namePrefix
1414

1515
// define template specific variables
1616
var serviceShort = 'cos3'
17-
resource cosmosDb 'Microsoft.DocumentDB/databaseAccounts@2023-03-15' = {
17+
resource cosmosDb 'Microsoft.DocumentDB/databaseAccounts@2026-04-01-preview' = {
1818
kind: 'GlobalDocumentDB'
1919
name: '${namePrefix}${serviceShort}01'
2020
location: location

‎tests/policy-integration-tests/cosmos-db/main.good.bicep‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var namePrefix = globalConfig.namePrefix
1414

1515
// define template specific variables
1616
var serviceShort = 'cos2'
17-
resource cosmosDb 'Microsoft.DocumentDB/databaseAccounts@2025-11-01-preview' = {
17+
resource cosmosDb 'Microsoft.DocumentDB/databaseAccounts@2026-04-01-preview' = {
1818
kind: 'GlobalDocumentDB'
1919
name: '${namePrefix}${serviceShort}01'
2020
location: location

‎tests/policy-integration-tests/cosmos-db/main.test.bicep‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource vnet 'Microsoft.Network/virtualNetworks@2025-05-01' existing = {
2929
resource peSubnet 'subnets' existing = { name: peSubnetName }
3030
}
3131

32-
resource cosmosDb 'Microsoft.DocumentDB/databaseAccounts@2025-11-01-preview' = {
32+
resource cosmosDb 'Microsoft.DocumentDB/databaseAccounts@2026-04-01-preview' = {
3333
kind: 'GlobalDocumentDB'
3434
name: '${namePrefix}${serviceShort}01'
3535
location: location

0 commit comments

Comments
 (0)