Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(azure): ensure correct properties are used when adjusting SKU and storage for postgres #1514

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion .azure/infrastructure/prod.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ param postgresConfiguration = {
storage: {
storageSizeGB: 256
autoGrow: 'Enabled'
tier: 'P15'
type: 'Premium_LRS'
}
enableIndexTuning: false
Expand Down
1 change: 0 additions & 1 deletion .azure/infrastructure/yt01.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ param postgresConfiguration = {
storage: {
storageSizeGB: 256
autoGrow: 'Enabled'
tier: 'P15'
type: 'Premium_LRS'
}
enableIndexTuning: true
Expand Down
3 changes: 0 additions & 3 deletions .azure/modules/postgreSql/create.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ type StorageConfiguration = {
autoGrow: 'Enabled' | 'Disabled'
@description('The type of storage account to use. Default is Premium_LRS.')
type: 'Premium_LRS' | 'PremiumV2_LRS'
@description('Required when type is Premium_LRS or PremiumV2_LRS')
tier: 'P1' | 'P2' | 'P3' | 'P4' | 'P6' | 'P10' | 'P15' | 'P20' | 'P30' | 'P40' | 'P50' | 'P60' | 'P70' | 'P80' | null
}

@description('The storage configuration for the PostgreSQL server')
Expand Down Expand Up @@ -112,7 +110,6 @@ resource postgres 'Microsoft.DBforPostgreSQL/flexibleServers@2024-08-01' = {
storageSizeGB: storage.storageSizeGB
autoGrow: storage.autoGrow
type: storage.type
tier: storage.tier
}
dataEncryption: {
type: 'SystemManaged'
Expand Down
Loading