Skip to content

Commit 29711f7

Browse files
committed
adding mysql Active Directory admin configuration
1 parent 8e0cadd commit 29711f7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

example/complete/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ module "mssql-server" {
3333
}
3434

3535
mysql_configuration = {
36-
interactive_timeout = "600"
36+
interactive_timeout = "600"
3737
}
3838
# SQL server extended auditing policy defaults to `true`.
3939
# To turn off set enable_sql_server_extended_auditing_policy to `false`
4040
# DB extended auditing policy defaults to `false`.
4141
# to tun on set the variable `enable_database_extended_auditing_policy` to `true`
4242
# To enable Azure Defender for database set `enable_threat_detection_policy` to true
43-
enable_threat_detection_policy = false
44-
#log_retention_days = 30
45-
#email_addresses_for_alerts = ["user@example.com", "firstname.lastname@example.com"]
43+
enable_threat_detection_policy = true
44+
log_retention_days = 30
45+
email_addresses_for_alerts = ["user@example.com", "firstname.lastname@example.com"]
4646

4747
/* # AD administrator for an Azure SQL server
4848
# Allows you to set a user or group as the AD administrator for an Azure SQL server

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ variable "firewall_rules" {
103103
default = null
104104
}
105105

106+
variable "ad_admin_login_name" {
107+
description = "The login name of the principal to set as the server administrator"
108+
default = null
109+
}
110+
106111
variable "tags" {
107112
description = "A map of tags to add to all resources"
108113
type = map(string)

0 commit comments

Comments
 (0)