diff --git a/infra/main.bicep b/infra/main.bicep index 899fe2b..6682985 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -57,6 +57,9 @@ param deployPrivateNetworking bool = false @description('Marketplace API base URL the core platform connects to (separate deployment)') param marketplaceUrl string = 'https://marketplace.agentbase.dev/api/v1' +@description('Azure region for PostgreSQL Flexible Server. Defaults to location but can be overridden per-environment when the subscription lacks quota in the primary region.') +param postgresLocation string = location + // ---------------------------------------------------------------------------- // Variables — naming & tags // ---------------------------------------------------------------------------- @@ -151,7 +154,7 @@ module postgres 'modules/postgres-flexible.bicep' = { name: 'postgres' params: { name: postgresName - location: location + location: postgresLocation tags: tags administratorPassword: postgresAdminPassword allowPublicAccess: !deployPrivateNetworking diff --git a/infra/main.parameters.staging.json b/infra/main.parameters.staging.json index 8d03dfb..3bc2518 100644 --- a/infra/main.parameters.staging.json +++ b/infra/main.parameters.staging.json @@ -6,6 +6,7 @@ "project": { "value": "agentbase" }, "owner": { "value": "platform-team" }, "appServicePlanSku": { "value": "B2" }, + "postgresLocation": { "value": "eastus2" }, "deployPrivateNetworking": { "value": false }, "marketplaceUrl": { "value": "https://marketplace-staging.agentbase.dev/api/v1" } }