@@ -31,10 +31,12 @@ module "mssql-server" {
31
31
32
32
# By default, this module will not create a resource group
33
33
# proivde a name to use an existing resource group, specify the existing resource group name,
34
- # and set the argument to `create_resource_group = false`. Location will be same as existing RG.
35
- resource_group_name = "rg-shared-westeurope-01"
36
- location = "westeurope"
37
- virtual_network_name = "vnet-shared-hub-westeurope-001"
34
+ # and set the argument to `create_resource_group = false`. Location will be same as existing RG.
35
+ create_resource_group = false
36
+ resource_group_name = "rg-shared-westeurope-01"
37
+ location = "westeurope"
38
+ virtual_network_name = "vnet-shared-hub-westeurope-001"
39
+ private_subnet_address_prefix = ["10.1.5.0/29"]
38
40
39
41
# SQL Server and Database details
40
42
# The valid service objective name for the database include S0, S1, S2, S3, P1, P2, P4, P6, P11
@@ -56,6 +58,13 @@ module "mssql-server" {
56
58
enable_vulnerability_assessment = false
57
59
email_addresses_for_alerts = ["[email protected] ", "[email protected] "]
58
60
61
+ # Sql failover group creation. required secondary locaiton input.
62
+ enable_failover_group = true
63
+ secondary_sql_server_location = "northeurope"
64
+
65
+ # enabling the Private Endpoints for Sql servers
66
+ enable_private_endpoint = true
67
+
59
68
# AD administrator for an Azure SQL server
60
69
# Allows you to set a user or group as the AD administrator for an Azure SQL server
61
70
ad_admin_login_name = "[email protected] "
@@ -81,8 +90,8 @@ module "mssql-server" {
81
90
]
82
91
83
92
# Create and initialize a database with custom SQL script
84
- # need sqlcmd utility to run this command
85
- # your desktop public IP must be added firewall rules to run this command
93
+ # need sqlcmd utility to run this command
94
+ # your desktop public IP must be added to firewall rules to run this command
86
95
initialize_sql_script_execution = true
87
96
sqldb_init_script_file = "../artifacts/db-init-sample.sql"
88
97
0 commit comments