Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions quickstarts/microsoft.sql/sqlmi-new-vnet/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"resources": [
{
"type": "Microsoft.Network/networkSecurityGroups",
"apiVersion": "2021-08-01",
"apiVersion": "2025-05-01",
"name": "[variables('networkSecurityGroupName')]",
"location": "[parameters('location')]",
"properties": {
Expand All @@ -137,20 +137,6 @@
"direction": "Inbound"
}
},
{
"name": "allow_redirect_inbound",
"properties": {
"description": "Allow inbound redirect traffic to Managed Instance inside the virtual network",
"protocol": "Tcp",
"sourcePortRange": "*",
"destinationPortRange": "11000-11999",
"sourceAddressPrefix": "VirtualNetwork",
"destinationAddressPrefix": "*",
"access": "Allow",
"priority": 1100,
"direction": "Inbound"
}
},
{
"name": "deny_all_inbound",
"properties": {
Expand Down Expand Up @@ -184,7 +170,7 @@
},
{
"type": "Microsoft.Network/routeTables",
"apiVersion": "2021-08-01",
"apiVersion": "2025-05-01",
"name": "[variables('routeTableName')]",
"location": "[parameters('location')]",
"properties": {
Expand All @@ -193,7 +179,7 @@
},
{
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2021-08-01",
"apiVersion": "2025-05-01",
"name": "[parameters('virtualNetworkName')]",
"location": "[parameters('location')]",
"properties": {
Expand Down Expand Up @@ -232,7 +218,7 @@
},
{
"type": "Microsoft.Sql/managedInstances",
"apiVersion": "2021-11-01-preview",
"apiVersion": "2025-01-01",
"name": "[parameters('managedInstanceName')]",
"location": "[parameters('location')]",
"sku": {
Expand Down
22 changes: 4 additions & 18 deletions quickstarts/microsoft.sql/sqlmi-new-vnet/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ param licenseType string = 'LicenseIncluded'
var networkSecurityGroupName = 'SQLMI-${managedInstanceName}-NSG'
var routeTableName = 'SQLMI-${managedInstanceName}-Route-Table'

resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2021-08-01' = {
resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2025-05-01' = {
name: networkSecurityGroupName
location: location
properties: {
Expand All @@ -77,20 +77,6 @@ resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2021-08-0
direction: 'Inbound'
}
}
{
name: 'allow_redirect_inbound'
properties: {
description: 'Allow inbound redirect traffic to Managed Instance inside the virtual network'
protocol: 'Tcp'
sourcePortRange: '*'
destinationPortRange: '11000-11999'
sourceAddressPrefix: 'VirtualNetwork'
destinationAddressPrefix: '*'
access: 'Allow'
priority: 1100
direction: 'Inbound'
}
}
{
name: 'deny_all_inbound'
properties: {
Expand Down Expand Up @@ -123,15 +109,15 @@ resource networkSecurityGroup 'Microsoft.Network/networkSecurityGroups@2021-08-0
}
}

resource routeTable 'Microsoft.Network/routeTables@2021-08-01' = {
resource routeTable 'Microsoft.Network/routeTables@2025-05-01' = {
name: routeTableName
location: location
properties: {
disableBgpRoutePropagation: false
}
}

resource virtualNetwork 'Microsoft.Network/virtualNetworks@2021-08-01' = {
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2025-05-01' = {
name: virtualNetworkName
location: location
properties: {
Expand Down Expand Up @@ -165,7 +151,7 @@ resource virtualNetwork 'Microsoft.Network/virtualNetworks@2021-08-01' = {
}
}

resource managedInstance 'Microsoft.Sql/managedInstances@2021-11-01-preview' = {
resource managedInstance 'Microsoft.Sql/managedInstances@2025-01-01' = {
name: managedInstanceName
location: location
sku: {
Expand Down
Loading