Skip to content

Commit d305af9

Browse files
Update Bicep modules to use latest API versions
- Updated cognitive services account API version from 2025-04-01-preview to 2024-04-01-preview. - Updated telemetry resource API version from 2024-03-01 to 2025-04-01 in cognitive services and compute modules. - Updated Key Vault API versions from 2024-11-01 to 2026-02-01 across multiple modules. - Updated virtual machine extension API version from 2022-11-01 to 2025-11-01. - Updated document DB database account API version from 2024-11-15 to 2025-10-15. - Updated machine learning services workspace API version from 2022-10-01 to 2025-12-01. - Updated private DNS zone API version from 2020-06-01 to 2024-06-01. - Updated storage account blob service container API version from 2024-03-01 to 2025-04-01.
1 parent 75294d5 commit d305af9

22 files changed

Lines changed: 192 additions & 237 deletions

File tree

extensions/teams/infra/azure.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ param webAppName string = resourceBaseName
3030
param location string = resourceGroup().location
3131

3232
// Compute resources for your Web App
33-
resource serverfarm 'Microsoft.Web/serverfarms@2021-02-01' = {
33+
resource serverfarm 'Microsoft.Web/serverfarms@2024-04-01' = {
3434
kind: 'app'
3535
location: location
3636
name: serverfarmsName
@@ -40,7 +40,7 @@ resource serverfarm 'Microsoft.Web/serverfarms@2021-02-01' = {
4040
}
4141

4242
// Web App that hosts your bot
43-
resource webApp 'Microsoft.Web/sites@2021-02-01' = {
43+
resource webApp 'Microsoft.Web/sites@2024-04-01' = {
4444
kind: 'app'
4545
location: location
4646
name: webAppName

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ var replicaLocation = replicaRegionPairs[location]
424424
// ============== //
425425

426426
#disable-next-line no-deployments-resources
427-
resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) {
427+
resource avmTelemetry 'Microsoft.Resources/deployments@2025-04-01' = if (enableTelemetry) {
428428
name: '46d3xbcp.ptn.sa-chatwithyourdata.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
429429
properties: {
430430
mode: 'Incremental'
@@ -1078,7 +1078,7 @@ module speechService 'modules/core/ai/cognitiveservices.bicep' = {
10781078
dependsOn: enablePrivateNetworking ? avmPrivateDnsZones : []
10791079
}
10801080

1081-
resource search 'Microsoft.Search/searchServices@2024-06-01-preview' = if (databaseType == 'CosmosDB') {
1081+
resource search 'Microsoft.Search/searchServices@2025-05-01' = if (databaseType == 'CosmosDB') {
10821082
name: azureAISearchName
10831083
location: location
10841084
sku: {

infra/main.json

Lines changed: 136 additions & 181 deletions
Large diffs are not rendered by default.

infra/modules/cognitive-services/account/cognitive-services.bicep

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ param restore bool = false
121121
param restrictOutboundNetworkAccess bool = true
122122

123123
@description('Optional. The storage accounts for this resource.')
124-
param userOwnedStorage resourceInput<'Microsoft.CognitiveServices/accounts@2025-04-01-preview'>.properties.userOwnedStorage?
124+
param userOwnedStorage resourceInput<'Microsoft.CognitiveServices/accounts@2024-04-01-preview'>.properties.userOwnedStorage?
125125

126126
import { managedIdentityAllType } from 'br/public:avm/utl/types/avm-common-types:0.7.0'
127127
@description('Optional. The managed identity definition for this resource.')
@@ -281,7 +281,7 @@ var formattedRoleAssignments = [
281281
]
282282

283283
#disable-next-line no-deployments-resources
284-
resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) {
284+
resource avmTelemetry 'Microsoft.Resources/deployments@2025-04-01' = if (enableTelemetry) {
285285
name: '46d3xbcp.res.cognitiveservices-account.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
286286
properties: {
287287
mode: 'Incremental'
@@ -299,7 +299,7 @@ resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableT
299299
}
300300
}
301301

302-
resource cMKKeyVault 'Microsoft.KeyVault/vaults@2024-11-01' existing = if (!empty(customerManagedKey.?keyVaultResourceId)) {
302+
resource cMKKeyVault 'Microsoft.KeyVault/vaults@2026-02-01' existing = if (!empty(customerManagedKey.?keyVaultResourceId)) {
303303
name: last(split(customerManagedKey.?keyVaultResourceId!, '/'))
304304
scope: resourceGroup(
305305
split(customerManagedKey.?keyVaultResourceId!, '/')[2],
@@ -319,7 +319,7 @@ resource cMKUserAssignedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentiti
319319
)
320320
}
321321

322-
resource cognitiveService 'Microsoft.CognitiveServices/accounts@2025-06-01' = {
322+
resource cognitiveService 'Microsoft.CognitiveServices/accounts@2024-04-01-preview' = {
323323
name: name
324324
kind: kind
325325
identity: identity
@@ -379,7 +379,7 @@ resource cognitiveService 'Microsoft.CognitiveServices/accounts@2025-06-01' = {
379379
}
380380

381381
@batchSize(1)
382-
resource cognitiveService_deployments 'Microsoft.CognitiveServices/accounts/deployments@2025-06-01' = [
382+
resource cognitiveService_deployments 'Microsoft.CognitiveServices/accounts/deployments@2024-04-01-preview' = [
383383
for (deployment, index) in (deployments ?? []): {
384384
parent: cognitiveService
385385
name: deployment.?name ?? '${name}-deployments'
@@ -409,7 +409,7 @@ resource cognitiveService_lock 'Microsoft.Authorization/locks@2020-05-01' = if (
409409
scope: cognitiveService
410410
}
411411

412-
resource cognitiveService_commitmentPlans 'Microsoft.CognitiveServices/accounts/commitmentPlans@2025-06-01' = [
412+
resource cognitiveService_commitmentPlans 'Microsoft.CognitiveServices/accounts/commitmentPlans@2024-04-01-preview' = [
413413
for plan in (commitmentPlans ?? []): {
414414
parent: cognitiveService
415415
name: '${plan.hostingModel}-${plan.planType}'

infra/modules/compute/virtual-machine/extension/extension.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ param enableAutomaticUpgrade bool
4141
@description('Optional. Tags of the resource.')
4242
param tags object?
4343

44-
resource virtualMachine 'Microsoft.Compute/virtualMachines@2022-11-01' existing = {
44+
resource virtualMachine 'Microsoft.Compute/virtualMachines@2025-11-01' existing = {
4545
name: virtualMachineName
4646
}
4747

48-
resource extension 'Microsoft.Compute/virtualMachines/extensions@2022-11-01' = {
48+
resource extension 'Microsoft.Compute/virtualMachines/extensions@2025-11-01' = {
4949
name: name
5050
parent: virtualMachine
5151
location: location

infra/modules/compute/virtual-machine/virtual-machine.bicep

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ var formattedRoleAssignments = [
398398
]
399399

400400
#disable-next-line no-deployments-resources
401-
resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) {
401+
resource avmTelemetry 'Microsoft.Resources/deployments@2025-04-01' = if (enableTelemetry) {
402402
name: '46d3xbcp.res.compute-virtualmachine.${replace('0.15.0', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
403403
properties: {
404404
mode: 'Incremental'
@@ -439,7 +439,7 @@ module vm_nic 'nic-configuration/nic-configuration.bicep' = [
439439
}
440440
]
441441

442-
resource managedDataDisks 'Microsoft.Compute/disks@2024-03-02' = [
442+
resource managedDataDisks 'Microsoft.Compute/disks@2025-01-02' = [
443443
for (dataDisk, index) in dataDisks ?? []: if (empty(dataDisk.managedDisk.?id)) {
444444
location: location
445445
name: dataDisk.?name ?? '${name}-disk-data-${padLeft((index + 1), 2, '0')}'
@@ -459,7 +459,7 @@ resource managedDataDisks 'Microsoft.Compute/disks@2024-03-02' = [
459459
}
460460
]
461461

462-
resource vm 'Microsoft.Compute/virtualMachines@2024-07-01' = {
462+
resource vm 'Microsoft.Compute/virtualMachines@2025-11-01' = {
463463
name: name
464464
location: location
465465
identity: identity
@@ -601,7 +601,7 @@ resource vm 'Microsoft.Compute/virtualMachines@2024-07-01' = {
601601
]
602602
}
603603

604-
resource vm_configurationAssignment 'Microsoft.Maintenance/configurationAssignments@2023-04-01' = if (!empty(maintenanceConfigurationResourceId)) {
604+
resource vm_configurationAssignment 'Microsoft.Maintenance/configurationAssignments@2024-02-01-preview' = if (!empty(maintenanceConfigurationResourceId)) {
605605
name: '${vm.name}assignment'
606606
location: location
607607
properties: {
@@ -659,7 +659,7 @@ module vm_azureGuestConfigurationExtension 'extension/extension.bicep' = if (ext
659659
}
660660
}
661661

662-
resource AzureWindowsBaseline 'Microsoft.GuestConfiguration/guestConfigurationAssignments@2020-06-25' = if (!empty(guestConfiguration)) {
662+
resource AzureWindowsBaseline 'Microsoft.GuestConfiguration/guestConfigurationAssignments@2024-04-05' = if (!empty(guestConfiguration)) {
663663
name: guestConfiguration.?name ?? 'AzureWindowsBaseline'
664664
scope: vm
665665
dependsOn: [

infra/modules/core/host/appservice.bicep

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ param vnetRouteAllEnabled bool = false
6262
param scmSiteAlsoStopped bool = false
6363

6464
@description('Optional. The site config object. The defaults are set to the following values: alwaysOn: true, minTlsVersion: \'1.2\', ftpsState: \'FtpsOnly\'.')
65-
param siteConfig resourceInput<'Microsoft.Web/sites@2024-04-01'>.properties.siteConfig = {
65+
param siteConfig object = {
6666
alwaysOn: true
6767
minTlsVersion: '1.2'
6868
ftpsState: 'FtpsOnly'
@@ -72,7 +72,7 @@ param siteConfig resourceInput<'Microsoft.Web/sites@2024-04-01'>.properties.site
7272
param configs appSettingsConfigType[]?
7373

7474
@description('Optional. The Function App configuration object.')
75-
param functionAppConfig resourceInput<'Microsoft.Web/sites@2024-04-01'>.properties.functionAppConfig?
75+
param functionAppConfig object?
7676

7777
import { privateEndpointSingleServiceType } from 'br/public:avm/utl/types/avm-common-types:0.7.0'
7878
@description('Optional. Configuration details for private endpoints. For security reasons, it is recommended to use private endpoints whenever possible.')
@@ -105,7 +105,7 @@ Optional. This composes with ClientCertEnabled setting.
105105
param clientCertMode string = 'Optional'
106106

107107
@description('Optional. If specified during app creation, the app is cloned from a source app.')
108-
param cloningInfo resourceInput<'Microsoft.Web/sites@2024-04-01'>.properties.cloningInfo?
108+
param cloningInfo object?
109109

110110
@description('Optional. Size of the function container.')
111111
param containerSize int?
@@ -117,7 +117,7 @@ param dailyMemoryTimeQuota int?
117117
param enabled bool = true
118118

119119
@description('Optional. Hostname SSL states are used to manage the SSL bindings for app\'s hostnames.')
120-
param hostNameSslStates resourceInput<'Microsoft.Web/sites@2024-04-01'>.properties.hostNameSslStates?
120+
param hostNameSslStates array?
121121

122122
@description('Optional. Hyper-V sandbox.')
123123
param hyperV bool = false
@@ -143,7 +143,7 @@ param publicNetworkAccess string?
143143
param e2eEncryptionEnabled bool?
144144

145145
@description('Optional. Property to configure various DNS related settings for a site.')
146-
param dnsConfiguration resourceInput<'Microsoft.Web/sites@2024-04-01'>.properties.dnsConfiguration?
146+
param dnsConfiguration object?
147147

148148
@description('Optional. Specifies the scope of uniqueness for the default hostname during resource creation.')
149149
@allowed([

infra/modules/core/host/web-sites.config.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2024-01-01' existing
7070
scope: resourceGroup(split(storageAccountResourceId!, '/')[2], split(storageAccountResourceId!, '/')[4])
7171
}
7272

73-
resource app 'Microsoft.Web/sites@2023-12-01' existing = {
73+
resource app 'Microsoft.Web/sites@2024-04-01' existing = {
7474
name: appName
7575
}
7676

infra/modules/document-db/database-account/database-account.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param name string
88
param location string = resourceGroup().location
99

1010
@description('Optional. Tags for the resource.')
11-
param tags resourceInput<'Microsoft.DocumentDB/databaseAccounts@2024-11-15'>.tags?
11+
param tags resourceInput<'Microsoft.DocumentDB/databaseAccounts@2025-10-15'>.tags?
1212

1313
import { managedIdentityAllType } from 'br/public:avm/utl/types/avm-common-types:0.7.0'
1414
@description('Optional. The managed identity definition for this resource.')
@@ -166,7 +166,7 @@ var identity = !empty(managedIdentities)
166166
: null
167167

168168
#disable-next-line no-deployments-resources
169-
resource avmTelemetry 'Microsoft.Resources/deployments@2024-07-01' = if (enableTelemetry) {
169+
resource avmTelemetry 'Microsoft.Resources/deployments@2025-04-01' = if (enableTelemetry) {
170170
name: '46d3xbcp.res.documentdb-databaseaccount.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'
171171
properties: {
172172
mode: 'Incremental'
@@ -184,7 +184,7 @@ resource avmTelemetry 'Microsoft.Resources/deployments@2024-07-01' = if (enableT
184184
}
185185
}
186186

187-
resource databaseAccount 'Microsoft.DocumentDB/databaseAccounts@2024-11-15' = {
187+
resource databaseAccount 'Microsoft.DocumentDB/databaseAccounts@2025-10-15' = {
188188
name: name
189189
location: location
190190
tags: tags

infra/modules/document-db/database-account/sql-database/container/container.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ var containerResourceParams = union(
7878
: {}
7979
)
8080

81-
resource databaseAccount 'Microsoft.DocumentDB/databaseAccounts@2024-11-15' existing = {
81+
resource databaseAccount 'Microsoft.DocumentDB/databaseAccounts@2025-10-15' existing = {
8282
name: databaseAccountName
8383

8484
resource sqlDatabase 'sqlDatabases@2024-11-15' existing = {
8585
name: sqlDatabaseName
8686
}
8787
}
8888

89-
resource container 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers@2024-11-15' = {
89+
resource container 'Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers@2025-10-15' = {
9090
name: name
9191
parent: databaseAccount::sqlDatabase
9292
tags: tags

0 commit comments

Comments
 (0)