Skip to content

Commit

Permalink
sync with PR 3325
Browse files Browse the repository at this point in the history
  • Loading branch information
krbar committed Oct 2, 2024
1 parent 30a3d42 commit e5b9a43
Show file tree
Hide file tree
Showing 17 changed files with 70 additions and 70 deletions.
8 changes: 4 additions & 4 deletions avm/res/sql/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ module server 'br/public:avm/res/sql/server:<version>' = {
backupShortTermRetentionPolicy: {
retentionDays: 14
}
capacity: 0
collation: 'SQL_Latin1_General_CP1_CI_AS'
diagnosticSettings: [
{
Expand All @@ -288,7 +289,6 @@ module server 'br/public:avm/res/sql/server:<version>' = {
licenseType: 'LicenseIncluded'
maxSizeBytes: 34359738368
name: 'sqlsmaxdb-001'
skuCapacity: 0
skuName: 'ElasticPool'
skuTier: 'GeneralPurpose'
}
Expand Down Expand Up @@ -438,6 +438,7 @@ module server 'br/public:avm/res/sql/server:<version>' = {
"backupShortTermRetentionPolicy": {
"retentionDays": 14
},
"capacity": 0,
"collation": "SQL_Latin1_General_CP1_CI_AS",
"diagnosticSettings": [
{
Expand All @@ -456,7 +457,6 @@ module server 'br/public:avm/res/sql/server:<version>' = {
"licenseType": "LicenseIncluded",
"maxSizeBytes": 34359738368,
"name": "sqlsmaxdb-001",
"skuCapacity": 0,
"skuName": "ElasticPool",
"skuTier": "GeneralPurpose"
}
Expand Down Expand Up @@ -857,6 +857,7 @@ module server 'br/public:avm/res/sql/server:<version>' = {
backupShortTermRetentionPolicy: {
retentionDays: 14
}
capacity: 0
collation: 'SQL_Latin1_General_CP1_CI_AS'
diagnosticSettings: [
{
Expand All @@ -875,7 +876,6 @@ module server 'br/public:avm/res/sql/server:<version>' = {
licenseType: 'LicenseIncluded'
maxSizeBytes: 34359738368
name: 'sqlswafdb-001'
skuCapacity: 0
skuName: 'ElasticPool'
skuTier: 'GeneralPurpose'
}
Expand Down Expand Up @@ -988,6 +988,7 @@ module server 'br/public:avm/res/sql/server:<version>' = {
"backupShortTermRetentionPolicy": {
"retentionDays": 14
},
"capacity": 0,
"collation": "SQL_Latin1_General_CP1_CI_AS",
"diagnosticSettings": [
{
Expand All @@ -1006,7 +1007,6 @@ module server 'br/public:avm/res/sql/server:<version>' = {
"licenseType": "LicenseIncluded",
"maxSizeBytes": 34359738368,
"name": "sqlswafdb-001",
"skuCapacity": 0,
"skuName": "ElasticPool",
"skuTier": "GeneralPurpose"
}
Expand Down
8 changes: 4 additions & 4 deletions avm/res/sql/server/audit-settings/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "2456263707393734456"
"version": "0.29.47.4906",
"templateHash": "4165841300638093382"
},
"name": "Azure SQL Server Audit Settings",
"description": "This module deploys an Azure SQL Server Audit Settings.",
Expand Down Expand Up @@ -144,8 +144,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "13956215614091387428"
"version": "0.29.47.4906",
"templateHash": "17251889896692066430"
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "10064519186693398262"
"version": "0.29.47.4906",
"templateHash": "2778016138108001251"
},
"name": "SQL Server Database Long Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Long-Term Backup Retention Policy.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "10836519140305169908"
"version": "0.29.47.4906",
"templateHash": "8635162595153731245"
},
"name": "Azure SQL Server Database Short Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Short-Term Backup Retention Policy.",
Expand Down
12 changes: 6 additions & 6 deletions avm/res/sql/server/database/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "1982363525852346649"
"version": "0.29.47.4906",
"templateHash": "1805182723135951408"
},
"name": "SQL Server Database",
"description": "This module deploys an Azure SQL Server Database.",
Expand Down Expand Up @@ -487,8 +487,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "10836519140305169908"
"version": "0.29.47.4906",
"templateHash": "8635162595153731245"
},
"name": "Azure SQL Server Database Short Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Short-Term Backup Retention Policy.",
Expand Down Expand Up @@ -597,8 +597,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "10064519186693398262"
"version": "0.29.47.4906",
"templateHash": "2778016138108001251"
},
"name": "SQL Server Database Long Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Long-Term Backup Retention Policy.",
Expand Down
2 changes: 1 addition & 1 deletion avm/res/sql/server/elastic-pool/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ resource elasticPool 'Microsoft.Sql/servers/elasticPools@2023-08-01-preview' = {
properties: {
highAvailabilityReplicaCount: highAvailabilityReplicaCount
licenseType: licenseType
maintenanceConfigurationId: maintenanceConfigurationId
maintenanceConfigurationId: !empty(maintenanceConfigurationId) ? maintenanceConfigurationId : null
maxSizeBytes: maxSizeBytes
minCapacity: minCapacity
perDatabaseSettings: {
Expand Down
6 changes: 3 additions & 3 deletions avm/res/sql/server/elastic-pool/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "1486548652639885128"
"version": "0.29.47.4906",
"templateHash": "16491495841511408666"
},
"name": "SQL Server Elastic Pool",
"description": "This module deploys an Azure SQL Server Elastic Pool.",
Expand Down Expand Up @@ -142,7 +142,7 @@
"properties": {
"highAvailabilityReplicaCount": "[parameters('highAvailabilityReplicaCount')]",
"licenseType": "[parameters('licenseType')]",
"maintenanceConfigurationId": "[parameters('maintenanceConfigurationId')]",
"maintenanceConfigurationId": "[if(not(empty(parameters('maintenanceConfigurationId'))), parameters('maintenanceConfigurationId'), null())]",
"maxSizeBytes": "[parameters('maxSizeBytes')]",
"minCapacity": "[parameters('minCapacity')]",
"perDatabaseSettings": {
Expand Down
4 changes: 2 additions & 2 deletions avm/res/sql/server/encryption-protector/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "11473914706327458055"
"version": "0.29.47.4906",
"templateHash": "6914924378490463775"
},
"name": "Azure SQL Server Encryption Protector",
"description": "This module deploys an Azure SQL Server Encryption Protector.",
Expand Down
4 changes: 2 additions & 2 deletions avm/res/sql/server/firewall-rule/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "6449556555046717103"
"version": "0.29.47.4906",
"templateHash": "7779473510493338097"
},
"name": "Azure SQL Server Firewall Rule",
"description": "This module deploys an Azure SQL Server Firewall Rule.",
Expand Down
4 changes: 2 additions & 2 deletions avm/res/sql/server/key/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "17839617504395216689"
"version": "0.29.47.4906",
"templateHash": "5863771213375512760"
},
"name": "Azure SQL Server Keys",
"description": "This module deploys an Azure SQL Server Key.",
Expand Down
58 changes: 29 additions & 29 deletions avm/res/sql/server/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "7186417096805880461"
"version": "0.29.47.4906",
"templateHash": "10504263612709234516"
},
"name": "Azure SQL Servers",
"description": "This module deploys an Azure SQL Server.",
Expand Down Expand Up @@ -842,8 +842,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "1982363525852346649"
"version": "0.29.47.4906",
"templateHash": "1805182723135951408"
},
"name": "SQL Server Database",
"description": "This module deploys an Azure SQL Server Database.",
Expand Down Expand Up @@ -1324,8 +1324,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "10836519140305169908"
"version": "0.29.47.4906",
"templateHash": "8635162595153731245"
},
"name": "Azure SQL Server Database Short Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Short-Term Backup Retention Policy.",
Expand Down Expand Up @@ -1434,8 +1434,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "10064519186693398262"
"version": "0.29.47.4906",
"templateHash": "2778016138108001251"
},
"name": "SQL Server Database Long Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Long-Term Backup Retention Policy.",
Expand Down Expand Up @@ -1630,8 +1630,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "1486548652639885128"
"version": "0.29.47.4906",
"templateHash": "16491495841511408666"
},
"name": "SQL Server Elastic Pool",
"description": "This module deploys an Azure SQL Server Elastic Pool.",
Expand Down Expand Up @@ -1767,7 +1767,7 @@
"properties": {
"highAvailabilityReplicaCount": "[parameters('highAvailabilityReplicaCount')]",
"licenseType": "[parameters('licenseType')]",
"maintenanceConfigurationId": "[parameters('maintenanceConfigurationId')]",
"maintenanceConfigurationId": "[if(not(empty(parameters('maintenanceConfigurationId'))), parameters('maintenanceConfigurationId'), null())]",
"maxSizeBytes": "[parameters('maxSizeBytes')]",
"minCapacity": "[parameters('minCapacity')]",
"perDatabaseSettings": {
Expand Down Expand Up @@ -2616,8 +2616,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "6449556555046717103"
"version": "0.29.47.4906",
"templateHash": "7779473510493338097"
},
"name": "Azure SQL Server Firewall Rule",
"description": "This module deploys an Azure SQL Server Firewall Rule.",
Expand Down Expand Up @@ -2724,8 +2724,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "4969955763304077350"
"version": "0.29.47.4906",
"templateHash": "7859066741604114060"
},
"name": "Azure SQL Server Virtual Network Rules",
"description": "This module deploys an Azure SQL Server Virtual Network Rule.",
Expand Down Expand Up @@ -2846,8 +2846,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "15406914222375641032"
"version": "0.29.47.4906",
"templateHash": "6025191760768766090"
},
"name": "Azure SQL Server Security Alert Policies",
"description": "This module deploys an Azure SQL Server Security Alert Policy.",
Expand Down Expand Up @@ -3007,8 +3007,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "11004049200994426011"
"version": "0.29.47.4906",
"templateHash": "5682596516926040129"
},
"name": "Azure SQL Server Vulnerability Assessments",
"description": "This module deploys an Azure SQL Server Vulnerability Assessment.",
Expand Down Expand Up @@ -3110,8 +3110,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "13956215614091387428"
"version": "0.29.47.4906",
"templateHash": "17251889896692066430"
}
},
"parameters": {
Expand Down Expand Up @@ -3203,8 +3203,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "17839617504395216689"
"version": "0.29.47.4906",
"templateHash": "5863771213375512760"
},
"name": "Azure SQL Server Keys",
"description": "This module deploys an Azure SQL Server Key.",
Expand Down Expand Up @@ -3326,8 +3326,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "11473914706327458055"
"version": "0.29.47.4906",
"templateHash": "6914924378490463775"
},
"name": "Azure SQL Server Encryption Protector",
"description": "This module deploys an Azure SQL Server Encryption Protector.",
Expand Down Expand Up @@ -3459,8 +3459,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "2456263707393734456"
"version": "0.29.47.4906",
"templateHash": "4165841300638093382"
},
"name": "Azure SQL Server Audit Settings",
"description": "This module deploys an Azure SQL Server Audit Settings.",
Expand Down Expand Up @@ -3598,8 +3598,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "13956215614091387428"
"version": "0.29.47.4906",
"templateHash": "17251889896692066430"
}
},
"parameters": {
Expand Down
4 changes: 2 additions & 2 deletions avm/res/sql/server/security-alert-policy/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "15406914222375641032"
"version": "0.29.47.4906",
"templateHash": "6025191760768766090"
},
"name": "Azure SQL Server Security Alert Policies",
"description": "This module deploys an Azure SQL Server Security Alert Policy.",
Expand Down
4 changes: 2 additions & 2 deletions avm/res/sql/server/tests/e2e/max/main.test.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata description = 'This instance deploys the module with most of its featur
@maxLength(90)
param resourceGroupName string = 'dep-${namePrefix}-sql.servers-${serviceShort}-rg'

// Enforce uksouth to avoid redundancy availability issues in certain regions
// Enforce uksouth to avoid restrictions around zone redundancy in certain regions
#disable-next-line no-hardcoded-location
var enforcedLocation = 'uksouth'

Expand Down Expand Up @@ -126,7 +126,7 @@ module testDeployment '../../../main.bicep' = {
collation: 'SQL_Latin1_General_CP1_CI_AS'
skuTier: 'GeneralPurpose'
skuName: 'ElasticPool'
skuCapacity: 0
capacity: 0
maxSizeBytes: 34359738368
licenseType: 'LicenseIncluded'
diagnosticSettings: [
Expand Down
Loading

0 comments on commit e5b9a43

Please sign in to comment.