Skip to content

Commit be2116c

Browse files
committed
Added terraform for SQL Managed Instance
1 parent 9c6461f commit be2116c

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

  • LearningHub.Nhs.MessageQueueProcessor/Terraform

LearningHub.Nhs.MessageQueueProcessor/Terraform/main.tf

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ resource "azurerm_network_security_group" "nsg" {
6565
destination_port_range = "1433"
6666
source_address_prefix = "*"
6767
destination_address_prefix = "*"
68-
},
69-
{
68+
}
69+
security_rule {
7070
name = "Microsoft.Sql-managedInstances_UseOnly_mi-healthprobe-in-10-0-1-0-24-v11"
7171
description = "Allow Azure Load Balancer inbound traffic"
7272
direction = "Inbound"
@@ -81,8 +81,8 @@ resource "azurerm_network_security_group" "nsg" {
8181
sourceAddressPrefixes = []
8282
sourcePortRange = "*"
8383
sourcePortRanges = []
84-
},
85-
{
84+
}
85+
security_rule {
8686
access = "Allow",
8787
description = "Allow MI internal inbound traffic",
8888
destinationAddressPrefix = "10.0.1.0/24",
@@ -102,8 +102,8 @@ resource "azurerm_network_security_group" "nsg" {
102102
sourcePortRange = "*",
103103
sourcePortRanges": [],
104104
type = "Microsoft.Network/networkSecurityGroups/securityRules"
105-
},
106-
{
105+
}
106+
security_rule {
107107
access = "Allow",
108108
description = "Allow communication with Azure Active Directory over https",
109109
destinationAddressPrefix = "AzureActiveDirectory",
@@ -123,8 +123,8 @@ resource "azurerm_network_security_group" "nsg" {
123123
sourcePortRange = "*",
124124
sourcePortRanges": [],
125125
type = "Microsoft.Network/networkSecurityGroups/securityRules"
126-
},
127-
{
126+
}
127+
security_rule {
128128
access = "Allow",
129129
description = "Allow communication with the One DS Collector over https",
130130
destinationAddressPrefix = "OneDsCollector",
@@ -144,8 +144,8 @@ resource "azurerm_network_security_group" "nsg" {
144144
sourcePortRange = "*",
145145
sourcePortRanges": [],
146146
type = "Microsoft.Network/networkSecurityGroups/securityRules"
147-
},
148-
{
147+
}
148+
security_rule {
149149
access = "Allow",
150150
description = "Allow MI internal outbound traffic",
151151
destinationAddressPrefix = "10.0.1.0/24",
@@ -165,8 +165,8 @@ resource "azurerm_network_security_group" "nsg" {
165165
sourcePortRange = "*",
166166
sourcePortRanges": [],
167167
type = "Microsoft.Network/networkSecurityGroups/securityRules"
168-
},
169-
{
168+
}
169+
security_rule {
170170
access = "Allow",
171171
description = "Allow outbound communication with storage over HTTPS",
172172
destinationAddressPrefix = "Storage.uksouth",
@@ -186,8 +186,8 @@ resource "azurerm_network_security_group" "nsg" {
186186
sourcePortRange = "*",
187187
sourcePortRanges": [],
188188
type = "Microsoft.Network/networkSecurityGroups/securityRules"
189-
},
190-
{
189+
}
190+
security_rule {
191191
access = "Allow",
192192
description = "Allow outbound communication with storage over HTTPS",
193193
destinationAddressPrefix = "Storage.ukwest",
@@ -207,8 +207,8 @@ resource "azurerm_network_security_group" "nsg" {
207207
sourcePortRange = "*",
208208
sourcePortRanges": [],
209209
type = "Microsoft.Network/networkSecurityGroups/securityRules"
210-
},
211-
{
210+
}
211+
security_rule {
212212
access = "Allow",
213213
description = "Allow AzureCloud outbound https traffic",
214214
destinationAddressPrefix = "AzureCloud",

0 commit comments

Comments
 (0)