@Søren Pedersen Thank you for reaching out.
Unfortunately, you cannot initialize properties like ServiceTier, Database size from EF6.
Are you deploying the database using a release pipeline? Your best bet would be to execute an SQL statement after the deployment depending on the environment
ALTER DATABASE [YourDBName] MODIFY(EDITION = 'Standard', SERVICE_OBJECTIVE = 'S1', MAXSIZE = 20 GB);
EF Core 3.1 has support to configure these while creating the Model
Protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.HasServiceTier("Standard");
modelBuilder.HasPerformanceLevel("S1");
modelBuilder.HasDatabaseMaxSize("20 GB");
}
Please let me know if you have any further questions.
--
If an answer is helpful, please "Accept answer" or "Up-Vote" for the same which might be beneficial to other community members reading this thread.