Skip to content

Commit

Permalink
Update to latest (#2999)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr authored Mar 23, 2023
1 parent 1c4e94b commit e31cc84
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 169 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,6 @@ module testDeployment '../../deploy.bicep' = {
storageSizeGB: 64
storageIOPS: 400
backupRetentionDays: 10
configurations: [
{
name: 'audit_log_enabled'
source: 'user-override'
value: 'ON'
}
]
databases: [
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@ module testDeployment '../../deploy.bicep' = {
storageIOPS: 400
backupRetentionDays: 20
availabilityZone: '1'
configurations: [
{
name: 'audit_log_enabled'
source: 'user-override'
value: 'ON'
}
]
databases: [
{

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions modules/Microsoft.DBforMySQL/flexibleServers/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,6 @@ param version string = '5.7'
@description('Optional. The databases to create in the server.')
param databases array = []

@description('Optional. The configurations to create in the server.')
param configurations array = []

@description('Optional. The firewall rules to create in the MySQL flexible server.')
param firewallRules array = []

Expand Down Expand Up @@ -381,17 +378,6 @@ module flexibleServer_firewallRules 'firewallRules/deploy.bicep' = [for (firewal
}
}]

module flexibleServer_configurations 'configurations/deploy.bicep' = [for (configuration, index) in configurations: {
name: '${uniqueString(deployment().name, location)}-MySQL-Configurations-${index}'
params: {
name: configuration.name
flexibleServerName: flexibleServer.name
source: contains(configuration, 'source') ? configuration.source : ''
value: contains(configuration, 'value') ? configuration.value : ''
enableDefaultTelemetry: enableReferencedModulesTelemetry
}
}]

resource flexibleServer_diagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(diagnosticWorkspaceId)) || (!empty(diagnosticEventHubAuthorizationRuleId)) || (!empty(diagnosticEventHubName))) {
name: !empty(diagnosticSettingsName) ? diagnosticSettingsName : '${name}-diagnosticSettings'
properties: {
Expand Down
34 changes: 0 additions & 34 deletions modules/Microsoft.DBforMySQL/flexibleServers/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ This module deploys DBforMySQL FlexibleServers.
| `Microsoft.Authorization/locks` | [2020-05-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2020-05-01/locks) |
| `Microsoft.Authorization/roleAssignments` | [2022-04-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2022-04-01/roleAssignments) |
| `Microsoft.DBforMySQL/flexibleServers` | [2021-12-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2021-12-01-preview/flexibleServers) |
| `Microsoft.DBforMySQL/flexibleServers/configurations` | [2021-12-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2021-12-01-preview/flexibleServers/configurations) |
| `Microsoft.DBforMySQL/flexibleServers/databases` | [2021-12-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2021-12-01-preview/flexibleServers/databases) |
| `Microsoft.DBforMySQL/flexibleServers/firewallRules` | [2021-12-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.DBforMySQL/2021-12-01-preview/flexibleServers/firewallRules) |
| `Microsoft.Insights/diagnosticSettings` | [2021-05-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Insights/2021-05-01-preview/diagnosticSettings) |
Expand Down Expand Up @@ -56,7 +55,6 @@ This module deploys DBforMySQL FlexibleServers.
| `backupRetentionDays` | int | `7` | | Backup retention days for the server. |
| `cMKKeyName` | string | `''` | | The name of the customer managed key to use for encryption. |
| `cMKKeyVersion` | string | `''` | | The version of the customer managed key to reference for encryption. If not provided, the latest key version is used. |
| `configurations` | _[configurations](configurations/readme.md)_ array | `[]` | | The configurations to create in the server. |
| `createMode` | string | `'Default'` | `[Default, GeoRestore, PointInTimeRestore, Replica]` | The mode to create a new MySQL server. |
| `databases` | _[databases](databases/readme.md)_ array | `[]` | | The databases to create in the server. |
| `delegatedSubnetResourceId` | string | `''` | | Delegated subnet arm resource ID. Used when the desired connectivity mode is "Private Access" - virtual network integration. Delegation must be enabled on the subnet for MySQL Flexible Servers and subnet CIDR size is /29. |
Expand Down Expand Up @@ -318,13 +316,6 @@ module flexibleServers './Microsoft.DBforMySQL/flexibleServers/deploy.bicep' = {
tier: 'GeneralPurpose'
// Non-required parameters
backupRetentionDays: 10
configurations: [
{
name: 'audit_log_enabled'
source: 'user-override'
value: 'ON'
}
]
databases: [
{
name: 'testdb1'
Expand Down Expand Up @@ -397,15 +388,6 @@ module flexibleServers './Microsoft.DBforMySQL/flexibleServers/deploy.bicep' = {
"backupRetentionDays": {
"value": 10
},
"configurations": {
"value": [
{
"name": "audit_log_enabled",
"source": "user-override",
"value": "ON"
}
]
},
"databases": {
"value": [
{
Expand Down Expand Up @@ -509,13 +491,6 @@ module flexibleServers './Microsoft.DBforMySQL/flexibleServers/deploy.bicep' = {
cMKKeyName: '<cMKKeyName>'
cMKKeyVaultResourceId: '<cMKKeyVaultResourceId>'
cMKUserAssignedIdentityResourceId: '<cMKUserAssignedIdentityResourceId>'
configurations: [
{
name: 'audit_log_enabled'
source: 'user-override'
value: 'ON'
}
]
databases: [
{
name: 'testdb1'
Expand Down Expand Up @@ -626,15 +601,6 @@ module flexibleServers './Microsoft.DBforMySQL/flexibleServers/deploy.bicep' = {
"cMKUserAssignedIdentityResourceId": {
"value": "<cMKUserAssignedIdentityResourceId>"
},
"configurations": {
"value": [
{
"name": "audit_log_enabled",
"source": "user-override",
"value": "ON"
}
]
},
"databases": {
"value": [
{
Expand Down

0 comments on commit e31cc84

Please sign in to comment.