Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dao.SWC.AppHost/AppHost.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Azure.Provisioning.Sql;
using Dao.SWC.Core;

var builder = DistributedApplication.CreateBuilder(args);
Expand All @@ -13,7 +14,9 @@
// Codify BillOverUsage so azd provision doesn't revert it to AutoPause
foreach (var db in infra.GetProvisionableResources().OfType<Azure.Provisioning.Sql.SqlDatabase>())
{
db.FreeLimitExhaustionBehavior = Azure.Provisioning.Sql.FreeLimitExhaustionBehavior.BillOverUsage;
var sqlDb = infra.GetProvisionableResources().OfType<SqlDatabase>().Single();
sqlDb.Sku = new SqlSku { Name = "Basic", Tier = "Basic", Capacity = 5 };
sqlDb.UseFreeLimit = false;
}
});
swcDb = azureSql.AddDatabase(Constants.ProjectNames.Database);
Expand Down
Loading