Skip to content

Commit

Permalink
update db version in bicep (#532)
Browse files Browse the repository at this point in the history
* update db version in bicep

* updat database template versions

---------

Co-authored-by: Hammerbeck <andreas.hammerbeck@digdir.no>
  • Loading branch information
Andreass2 and Hammerbeck authored Aug 27, 2024
1 parent 0c9ebec commit c5d669f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .azure/modules/postgreSql/AddAdministrationAccess.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ param tenantId string
param appName string
param namePrefix string

resource databaseServer 'Microsoft.DBforPostgreSQL/flexibleServers@2022-12-01' existing = {
resource databaseServer 'Microsoft.DBforPostgreSQL/flexibleServers@2023-12-01-preview' existing = {
name: '${namePrefix}-dbserver'
}
resource databaseAccess 'Microsoft.DBforPostgreSQL/flexibleServers/administrators@2022-12-01' = {
Expand Down
4 changes: 2 additions & 2 deletions .azure/modules/postgreSql/create.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ module saveMigrationConnectionString '../keyvault/upsertSecret.bicep' = {
}
}

resource postgres 'Microsoft.DBforPostgreSQL/flexibleServers@2022-12-01' = {
resource postgres 'Microsoft.DBforPostgreSQL/flexibleServers@2023-12-01-preview' = {
name: '${namePrefix}-dbserver'
location: location
properties: {
version: '15'
version: '16'
administratorLogin: databaseUser
administratorLoginPassword: administratorLoginPassword
storage: {
Expand Down

0 comments on commit c5d669f

Please sign in to comment.