Skip to content

Commit

Permalink
Bump Azure API versions
Browse files Browse the repository at this point in the history
  • Loading branch information
joergjo committed Nov 14, 2024
1 parent 64def7e commit 74341f3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions infra/modules/database.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-
name: migrationIdentityName
}

resource postgresServer 'Microsoft.DBforPostgreSQL/flexibleServers@2023-06-01-preview' = {
resource postgresServer 'Microsoft.DBforPostgreSQL/flexibleServers@2024-08-01' = {
name: serverName
location: location
sku: {
Expand Down Expand Up @@ -103,7 +103,7 @@ resource postgresServer 'Microsoft.DBforPostgreSQL/flexibleServers@2023-06-01-pr
}
}

resource postgresDatabase 'Microsoft.DBforPostgreSQL/flexibleServers/databases@2023-06-01-preview' = {
resource postgresDatabase 'Microsoft.DBforPostgreSQL/flexibleServers/databases@2024-08-01' = {
name: databaseName
parent: postgresServer
properties: {
Expand All @@ -112,7 +112,7 @@ resource postgresDatabase 'Microsoft.DBforPostgreSQL/flexibleServers/databases@2
}
}

resource postgresEntraIdAdmin 'Microsoft.DBforPostgreSQL/flexibleServers/administrators@2023-06-01-preview' = {
resource postgresEntraIdAdmin 'Microsoft.DBforPostgreSQL/flexibleServers/administrators@2024-08-01' = {
name: entraIdAdminObjectId
parent: postgresServer
properties: {
Expand All @@ -122,7 +122,7 @@ resource postgresEntraIdAdmin 'Microsoft.DBforPostgreSQL/flexibleServers/adminis
}
}

resource postgresMigrationIdentity 'Microsoft.DBforPostgreSQL/flexibleServers/administrators@2023-06-01-preview' = {
resource postgresMigrationIdentity 'Microsoft.DBforPostgreSQL/flexibleServers/administrators@2024-08-01' = {
name: migrationIdentityObjectId
parent: postgresServer
properties: {
Expand Down
10 changes: 5 additions & 5 deletions infra/modules/network.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var appNsgName = '${namePrefix}${uid}-app-nsg'
var postgresNsgName = '${namePrefix}${uid}-postgres-nsg'
var privateDnsZoneName = 'contosoads.postgres.database.azure.com'

resource vnet 'Microsoft.Network/virtualNetworks@2023-04-01' = {
resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' = {
name: vnetName
location: location
tags: tags
Expand Down Expand Up @@ -79,7 +79,7 @@ resource vnet 'Microsoft.Network/virtualNetworks@2023-04-01' = {
}
}

resource appNsg 'Microsoft.Network/networkSecurityGroups@2023-04-01' = {
resource appNsg 'Microsoft.Network/networkSecurityGroups@2023-11-01' = {
name: appNsgName
location: location
tags: tags
Expand Down Expand Up @@ -115,7 +115,7 @@ resource appNsg 'Microsoft.Network/networkSecurityGroups@2023-04-01' = {
}
}

resource postgresNsg 'Microsoft.Network/networkSecurityGroups@2023-04-01' = {
resource postgresNsg 'Microsoft.Network/networkSecurityGroups@2023-11-01' = {
name: postgresNsgName
location: location
tags: tags
Expand All @@ -139,13 +139,13 @@ resource postgresNsg 'Microsoft.Network/networkSecurityGroups@2023-04-01' = {
}
}

resource privateDnsZone 'Microsoft.Network/privateDnsZones@2020-06-01' = if (deployDnsZone) {
resource privateDnsZone 'Microsoft.Network/privateDnsZones@2024-06-01' = if (deployDnsZone) {
name: privateDnsZoneName
location: 'global'
tags: tags
}

resource privateDnsZoneLink 'Microsoft.Network/privateDnsZones/virtualNetworkLinks@2020-06-01' = if (deployDnsZone) {
resource privateDnsZoneLink 'Microsoft.Network/privateDnsZones/virtualNetworkLinks@2024-06-01' = if (deployDnsZone) {
parent: privateDnsZone
name: '${vnet.name}-link'
location: 'global'
Expand Down
12 changes: 6 additions & 6 deletions infra/modules/storage.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var storageAccountName = '${length(namePrefix) <= 11 ? namePrefix : substring(na
var blobDataContributorRoleId = subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ba92f5b4-2d11-453d-a403-e96b0029c9fe')
var queueDataContributorRoleId = subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '974c5e8b-45b9-4653-ba55-5f855dd0fb88')

resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = {
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {
name: storageAccountName
location: location
tags: tags
Expand All @@ -43,30 +43,30 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = {
}
}

resource blobService 'Microsoft.Storage/storageAccounts/blobServices@2023-04-01' = {
resource blobService 'Microsoft.Storage/storageAccounts/blobServices@2023-05-01' = {
name: 'default'
parent: storageAccount
}

resource imageContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2023-04-01' = {
resource imageContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2023-05-01' = {
name: imageContainerName
parent: blobService
properties: {
publicAccess: 'Blob'
}
}

resource queueService 'Microsoft.Storage/storageAccounts/queueServices@2023-04-01' = {
resource queueService 'Microsoft.Storage/storageAccounts/queueServices@2023-05-01' = {
name: 'default'
parent: storageAccount
}

resource requestQueue 'Microsoft.Storage/storageAccounts/queueServices/queues@2023-04-01' = {
resource requestQueue 'Microsoft.Storage/storageAccounts/queueServices/queues@2023-05-01' = {
name: requestQueueName
parent: queueService
}

resource resultQueue 'Microsoft.Storage/storageAccounts/queueServices/queues@2023-04-01' = {
resource resultQueue 'Microsoft.Storage/storageAccounts/queueServices/queues@2023-05-01' = {
name: resultQueueName
parent: queueService
}
Expand Down

0 comments on commit 74341f3

Please sign in to comment.