Skip to content

Commit

Permalink
Updated Postgres default values to "Basic" (#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
neelip authored Sep 16, 2020
1 parent 50008cd commit e569e16
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { IPostgresServerWizardContext } from '../IPostgresServerWizardContext';

export class PostgresServerCreateStep extends AzureWizardExecuteStep<IPostgresServerWizardContext> {
public priority: number = 150;
public postgresDefaultStorageSizeMB: number = 51200;

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

Expand All @@ -30,11 +31,11 @@ export class PostgresServerCreateStep extends AzureWizardExecuteStep<IPostgresSe
const options = {
location: locationName,
sku: {
name: "GP_Gen5_4",
tier: "GeneralPurpose",
capacity: 4,
name: "B_Gen5_1",
tier: "Basic",
capacity: 1,
family: "Gen5",
size: "102400"
size: `${this.postgresDefaultStorageSizeMB}`
},
properties: {
administratorLogin: nonNullProp(wizardContext, 'shortUserName'),
Expand All @@ -43,7 +44,7 @@ export class PostgresServerCreateStep extends AzureWizardExecuteStep<IPostgresSe
createMode: "Default",
version: "10",
storageProfile: {
storageMB: 102400
storageMB: this.postgresDefaultStorageSizeMB
}
},
};
Expand Down

0 comments on commit e569e16

Please sign in to comment.