You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,25 @@ only along with [Firewall rules](https://docs.microsoft.com/en-us/azure/sql-data
9
9
and [Diagnostic settings](https://docs.microsoft.com/en-us/azure/sql-database/sql-database-metrics-diag-logging)
10
10
enabled.
11
11
12
+
## Migration from 8.x.x to 8.3.x
13
+
14
+
The variable `allowed_cidr_list` variable has been renamed to `allowed_cidrs` and the resource `azurerm_mssql_firewall_rule.main` is now using a `for_each` loop to create the firewall rules (was using a `count` before).
15
+
In order to migrate your state without recreating the firewall rules, you can run :
16
+
17
+
```bash
18
+
tofu state rm module.sql.azurerm_mssql_firewall_rule.main
19
+
```
20
+
21
+
Then add to your IAC this code :
22
+
23
+
```hcl
24
+
import {
25
+
for_each = local.allowed_cidrs
26
+
to = module.sql.azurerm_mssql_firewall_rule.main[each.key]
27
+
id = "${nonsensitive(module.sql.resource.id)}/firewallRules/${each.key}"
28
+
}
29
+
```
30
+
12
31
<!-- BEGIN_TF_DOCS -->
13
32
## Global versioning rule for Claranet Azure modules
| alerting\_email\_addresses | List of email addresses to send reports for threat detection and vulnerability assessment. |`list(string)`|`[]`| no |
214
-
| allowed\_cidr\_list|Allowed IP addresses to access the server in CIDR format. Default to all Azure services. |`list(string)`| <pre>[<br/> "0.0.0.0/32"<br/>]</pre> | no |
240
+
| allowed\_cidrs|List/map of allowed CIDR ranges to access the SQL server. Default to all Azure services. |`any`| <pre>{<br/> "azure-services": "0.0.0.0/32"<br/>}</pre> | no |
215
241
| allowed\_subnets\_ids | List of Subnet ID to allow to connect to the SQL Instance. |`list(string)`|`[]`| no |
216
242
| azuread\_administrator | Azure AD Administrator configuration block of this SQL Server. | <pre>object({<br/> login_username = optional(string)<br/> object_id = optional(string)<br/> tenant_id = optional(string)<br/> azuread_authentication_only = optional(bool)<br/> })</pre> |`null`| no |
217
243
| backup\_retention | Definition of long term backup retention for all the databases in this SQL Server. | <pre>object({<br/> weekly_retention = optional(number)<br/> monthly_retention = optional(number)<br/> yearly_retention = optional(number)<br/> week_of_year = optional(number)<br/> })</pre> |`{}`| no |
description="Specifies the primary user managed identity id. Required if type within the identity block is set to either SystemAssigned, UserAssigned or UserAssigned and should be set at same time as setting identity_ids."
0 commit comments