Skip to content

Commit e569e16

Browse files
authored
Updated Postgres default values to "Basic" (#1712)
1 parent 50008cd commit e569e16

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/postgres/commands/createPostgresServer/steps/PostgresServerCreateStep.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { IPostgresServerWizardContext } from '../IPostgresServerWizardContext';
1313

1414
export class PostgresServerCreateStep extends AzureWizardExecuteStep<IPostgresServerWizardContext> {
1515
public priority: number = 150;
16+
public postgresDefaultStorageSizeMB: number = 51200;
1617

1718
public async execute(wizardContext: IPostgresServerWizardContext, progress: Progress<{ message?: string; increment?: number }>): Promise<void> {
1819

@@ -30,11 +31,11 @@ export class PostgresServerCreateStep extends AzureWizardExecuteStep<IPostgresSe
3031
const options = {
3132
location: locationName,
3233
sku: {
33-
name: "GP_Gen5_4",
34-
tier: "GeneralPurpose",
35-
capacity: 4,
34+
name: "B_Gen5_1",
35+
tier: "Basic",
36+
capacity: 1,
3637
family: "Gen5",
37-
size: "102400"
38+
size: `${this.postgresDefaultStorageSizeMB}`
3839
},
3940
properties: {
4041
administratorLogin: nonNullProp(wizardContext, 'shortUserName'),
@@ -43,7 +44,7 @@ export class PostgresServerCreateStep extends AzureWizardExecuteStep<IPostgresSe
4344
createMode: "Default",
4445
version: "10",
4546
storageProfile: {
46-
storageMB: 102400
47+
storageMB: this.postgresDefaultStorageSizeMB
4748
}
4849
},
4950
};

0 commit comments

Comments
 (0)