From ce0a5119b52d2e64e00efc30938ded32a770d689 Mon Sep 17 00:00:00 2001 From: DeWitt Gibson Date: Sat, 20 Jun 2026 15:34:18 -0700 Subject: [PATCH] fix: deploy PostgreSQL to eastus2 to work around eastus quota restriction Add postgresLocation param to main.bicep (defaults to location so prod is unaffected) and override it to eastus2 in the staging parameter file. All other staging resources remain in eastus. --- infra/main.bicep | 5 ++++- infra/main.parameters.staging.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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" } }