File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
hostedss - ef/AspireApp1.AppHost Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 66// var sqlSrv = builder.AddSqlServer("sqlsrv", port:1435).
77// WithLifetime(ContainerLifetime.Persistent);
88
9- // If you plan to deploy in Azure SQL Server
9+ // If you plan to deploy in Azure SQL Server specifying the database SKU
10+ // var sqlSrv = builder.AddAzureSqlServer("sqlsrv")
11+ // .ConfigureInfrastructure(infra => {
12+ // var azureResources = infra.GetProvisionableResources();
13+ // var azureDb = azureResources.OfType<SqlDatabase>().Single();
14+ // azureDb.Sku = new SqlSku() { Name = "GP_Gen5_2" };
15+ // })
16+ // .RunAsContainer();
17+
18+ // If you plan to deploy in Azure SQL Server using the free Azure SQL DB offer
1019var sqlSrv = builder . AddAzureSqlServer ( "sqlsrv" )
11- . ConfigureInfrastructure ( infra => {
12- var azureResources = infra . GetProvisionableResources ( ) ;
13- var azureDb = azureResources . OfType < SqlDatabase > ( ) . Single ( ) ;
14- azureDb . Sku = new SqlSku ( ) { Name = "GP_Gen5_2" } ;
15- } )
1620 . RunAsContainer ( ) ;
1721
1822var db = sqlSrv . AddDatabase ( "db" , "aspiredb" ) ;
You can’t perform that action at this time.
0 commit comments