From 746a985e4f5788f13f9f3b53ce32e1bfd9772850 Mon Sep 17 00:00:00 2001 From: Alex Schouls Date: Thu, 19 Dec 2024 08:38:16 +0100 Subject: [PATCH] updated postgres params in Bicep --- infrastructure/modules/postgres.bicep | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/infrastructure/modules/postgres.bicep b/infrastructure/modules/postgres.bicep index 27938b5..38c870f 100644 --- a/infrastructure/modules/postgres.bicep +++ b/infrastructure/modules/postgres.bicep @@ -2,6 +2,7 @@ import { appendHash } from '../utilities.bicep' param skuName string = 'Standard_B1ms' param skuTier string = 'Burstable' +param storage int = 20 @secure() param sqlPassword string param databaseName string @@ -17,6 +18,18 @@ resource postgres 'Microsoft.DBforPostgreSQL/flexibleServers@2024-08-01' = { administratorLogin: 'postgresadmin' administratorLoginPassword: sqlPassword version: '14' + highAvailability: { + mode: 'Disabled' + } + storage: { + type: 'PremiumV2_LRS' + storageSizeGB: storage + autoGrow: 'Enabled' + } + backup: { + geoRedundantBackup: 'Disabled' + backupRetentionDays: 7 + } } }